Nano Banana 画像編集
google/nano-banana/edit
高速・低価格な編集。 マスキング不要で、直感的なオブジェクト置換やスタイル変換が可能。
サンプル
パラメータ
| 名前 | 型 | 既定 | 制約 | 説明 |
|---|---|---|---|---|
| images *入力画像 | image_upload | — | image/* · 0–10 items | 編集用に最大10枚の画像をアップロードしてください。AIがプロンプトに基づいてこれらの画像を修正します。 |
| prompt *プロンプト | textarea | — | ≤ 5000 chars | 画像をどのように編集したいかを説明してください。変更、スタイル調整、または修正について具体的に記述してください。 |
| aspect_ratioアスペクト比 | select | — | 1:1 | 3:2 | 2:3 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | … | 出力画像のアスペクト比を選択してください。指定しない場合、元のアスペクト比が維持されます。 |
出力フィールド
| フィールド | 型 | 説明 |
|---|---|---|
| images | array<string> | Generated image URLs |
API
統一 REST API でこのモデルを呼び出せます。API Keys ページでキーを取得してください。
cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/670617a106e7.jpeg"
],
"prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
"aspect_ratio": "4:5"
}
}'
# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
-H "Authorization: Bearer YOUR_API_KEY"Python
import time, requests
API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}
# 1) Submit
resp = requests.post(
"https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana/edit",
headers=HEADERS,
json={
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/670617a106e7.jpeg"
],
"prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
"aspect_ratio": "4:5"
}
},
)
resp.raise_for_status() # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()
# 2) Poll until a terminal state (completed / failed / cancelled).
# This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
if time.time() > deadline:
raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
time.sleep(3)
poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
poll.raise_for_status()
task = poll.json()
print(task["status"], task.get("output"))JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };
// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/google/nano-banana/edit", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://kaito-1328216764.cos.ap-tokyo.myqcloud.com/marketplace/thumbnails/2026-01-27/670617a106e7.jpeg"
],
"prompt": "Place the product on a sleek, polished concrete podium surrounded by tropical monstera leaves. Change the lighting to a warm, dappled sunlight effect, creating soft shadows that mimic a golden hour photoshoot. enhancing the texture of the material while maintaining the original brand colors. 8k resolution, commercial product photography.",
"aspect_ratio": "4:5"
}
}),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();
// 2) Poll until a terminal state (completed / failed / cancelled).
// This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
await new Promise((r) => setTimeout(r, 3000));
const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
task = await poll.json();
}
console.log(task.status, task.output);ドキュメント
Google Nano Banana Edit
インテリジェントな画像編集と変換: 高速、高精度、そして手頃な価格。
Google Nano Banana Edit は、直感的な画像操作のために設計された合理的な AI モデルです。開発者やクリエイターは、自然言語のプロンプトを使用して既存の画像を修正できます。手動でのマスキングや複雑なツールは不要で、インペインティング、アウトペインティング、背景の置換などの高度なタスクを実行できます。コールドスタートなしで、プロ品質の編集を非常に手頃な価格で提供します。
🚀 主な機能
- 自然言語による編集: シンプルなテキスト指示で画像を修正します。マスクやレイヤーを手動で作成する必要はなく、変更内容を記述するだけです。
- コンテキスト認識: モデルはシーンの構造とライティングを理解します。空を置き換えると、新しい背景に合わせて前景の照明も自動的に調整されます。
- シームレスなインペインティングと拡張: 不要なオブジェクトの削除、欠落した詳細の補完、またはキャンバスの拡張を行い、生成されたコンテンツを完全にブレンドします。
- スタイルとトーンの維持: 特定の変更を適用しながら、元の画像のテクスチャ、影、芸術的なスタイルを損なわず維持します。
- 高い効率性: スピードとコスト効率に最適化されており、大量の画像を処理する自動化ワークフローに最適です。
🛠️ 使用方法
| パラメータ | 詳細 |
|---|---|
| 入力 | 既存の画像 + テキストプロンプト |
| 出力 | JPEG / PNG / WEBP |
| 機能 | スタイル変換、リライティング、オブジェクト置換、背景交換 |
| レイテンシ | 即時 (コールドスタートなし) |
編集プロンプトの例:
- “曇り空を澄んだ夕焼けに置き換えて”
- “柔らかなスタジオ照明とモダンな背景を追加して”
- “モデルの服装をフォーマルなビジネススーツに変えて”
💰 料金プラン
| タイプ | 価格 |
|---|---|
| 標準編集 | $0.038 / 枚 |
💡 ユースケース
- Eコマース: 商品カタログ用に、背景の入れ替えや服の色の変更を瞬時に行う。
- マーケティング: 再撮影することなく、キャンペーンビジュアルを季節に合わせて更新する。
- コンテンツ制作: SNS 投稿用の画像バリエーションを簡単に生成する。
- デザインの自動化: API を介して画像をバッチ処理し、特定の視覚効果を適用する。
🔗 モデルファミリー
- Nano Banana (Standard): 画像をゼロから生成する場合。
- Nano Banana Pro Edit: 4K 解像度、画像内テキスト編集、高度なカメラコントロールが必要な場合。
注記: プロンプトは Google の安全ガイドラインに準拠している必要があります。制限されたコンテンツが含まれる場合、エラーが発生する可能性があります。
関連モデル
xAI Grok Imagine Image v2.0 画像編集
xAI Grok Imagine Image V2.0 Edit は、テキストによるプロンプトを使って入力画像を編集できるモデルです。解像度と品質を設定でき、精密な画像編集、ビジュアル調整、クリエイティブなバリエーション、SNS コンテンツ、マーケティング素材、制作ワークフローに適しています。すぐに使える REST 推論 API を提供し、高性能・コールドスタートなし・手頃な価格で利用できます。
Qwen Image 3.0 Pro Edit|高速画像編集
Qwen Image 3.0 Pro Edit は、優れた画質と高度な指示理解を備えたプロ向けの画像編集モデルです。最大 2k に対応。すぐに使える REST inference API を提供し、高性能、コールドスタートなし、手頃な価格で利用できます。
ヘッドスワップ(画像)
Swap the head in a photo with the head from a reference image. Upload the target photo first, then the head reference.
Nami Qwen I2I Spicy
自然言語の指示で参照画像を編集し、変更を指定していない部分をできるだけ保持します。
Nano Banana Pro 画像編集
4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。
Nano Banana 2 画像編集
4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。
Seedream V5.0 Pro Edit 画像編集・生成 API
ByteDance の Seedream V5.0 Pro Edit は、単一画像または複数の参照画像をもとに画像の編集・生成を行えます。最大 10 枚の参照画像に対応し、アスペクト比の選択と 1K / 2K の出力階層をサポートしています。すぐに使える REST 推論 API で、高性能、コールドスタートなし、手頃な価格です。
Seedream 5.0 Lite Edit Sequential
Seedream 5.0 Lite Edit Sequentialは、複数画像の編集を行いながら、キャラクターやオブジェクトの一貫性をショット間で維持します。主要な被写体を検出し、連続性を保ちながら制御された編集を適用し、最大4K出力に対応しています。すぐに使用可能なREST推論APIを提供し、最高のパフォーマンス、コールドスタートなし、手頃な価格を実現。