Nano Banana 2 画像編集
google/nano-banana-2/edit
4K セマンティック編集。自然言語で画像を修正。文脈認識と画像内多言語テキスト編集に対応。
サンプル
パラメータ
| 名前 | 型 | 既定 | 制約 | 説明 |
|---|---|---|---|---|
| images *入力画像 | image_upload | — | image/* · 0–14 items | 編集用に最大14枚の画像をアップロードしてください。AIがプロンプトに基づいてこれらの画像を修正します。 |
| prompt *プロンプト | textarea | ≤ 5000 chars | 画像をどのように編集したいかを説明してください。変更、スタイル調整、または修正について具体的に記述してください。 | |
| aspect_ratioアスペクト比 | select | — | 1:1 | 3:2 | 2:3 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | … | 出力画像のアスペクト比を選択してください。指定しない場合、元のアスペクト比が維持されます。 |
| resolution解像度 | select | 1k | 512 | 1k | 2k | 4k | 出力画像の解像度を選択してください。高解像度はより詳細になりますが、処理に時間がかかります。 |
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-2/edit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-25/869ddd43c5a6.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/61fdd5b5c158.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/80647d8e9174.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/bea9401654ea.png"
],
"prompt": "Enhance the lighting in the image to create a dramatic effect, adjust the colors to make them more vibrant, and add subtle text overlays in multiple languages.",
"aspect_ratio": "16:9",
"resolution": "1k"
}
}'
# 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-2/edit",
headers=HEADERS,
json={
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-25/869ddd43c5a6.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/61fdd5b5c158.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/80647d8e9174.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/bea9401654ea.png"
],
"prompt": "Enhance the lighting in the image to create a dramatic effect, adjust the colors to make them more vibrant, and add subtle text overlays in multiple languages.",
"aspect_ratio": "16:9",
"resolution": "1k"
}
},
)
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-2/edit", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"images": [
"https://assets-public.namifusion.com/uploads/images/2026-03-25/869ddd43c5a6.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/61fdd5b5c158.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/80647d8e9174.png",
"https://assets-public.namifusion.com/uploads/images/2026-03-25/bea9401654ea.png"
],
"prompt": "Enhance the lighting in the image to create a dramatic effect, adjust the colors to make them more vibrant, and add subtle text overlays in multiple languages.",
"aspect_ratio": "16:9",
"resolution": "1k"
}
}),
});
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 2 Edit
4K対応の高速画像編集モデル
Google Nano Banana 2 Edit(Gemini 3.1 Flash Image)は、4K解像度の出力、迅速な応答性、そして正確な指示に従う能力を備えた最先端の画像編集モデルです。テキスト翻訳、画像内のローカライズをサポートし、編集中も対象の一貫性を維持します。コールドスタートなしで最高のパフォーマンスを発揮し、手頃な価格で利用可能です。
🚀 主な特徴
- 自然言語編集:簡単なテキスト指示で画像を編集可能。モデルは文脈や関係性を理解します。
- 複数画像参照対応:最大14枚の参照画像をアップロードして複雑な編集や合成が可能。
- 多解像度対応:1K、2K、4K解像度で画像を生成できます。
- 柔軟なアスペクト比:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9、1:4、4:1、1:8、8:1など多様なアスペクト比を選択可能。
- プロンプト強化ツール:編集指示を自動的に改善する内蔵ツール。
- 出力形式選択:PNGまたはJPEG形式で画像を出力可能。
🛠️ 技術仕様
| パラメータ | 説明 |
|---|---|
| 入力形式 | 画像(最大14枚の参照画像) |
| プロンプト | 希望する編集内容を記述する正のプロンプト |
| アスペクト比 | オプション:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9、1:4、4:1、1:8、8:1 |
| 解像度 | デフォルト:1K;オプション:0.5K、1K、2K、4K |
| ウェブ検索の有効化 | デフォルト:False;有効化するとリアルタイム情報で生成を強化 |
| 画像検索の有効化 | デフォルト:False;有効化するとリアルタイム画像情報で生成を強化 |
| 出力形式 | デフォルト:PNG;オプション:PNG、JPEG |
サンプルプロンプト
- 「男性を女性に変更してください。」
- 「背景をビーチの風景に置き換えてください。」
💰 価格
| 解像度 | 価格 |
|---|---|
| 0.5K | $0.045 |
| 1K | $0.07 |
| 2K | $0.105 |
| 4K | $0.14 |
| ウェブ検索 | +$0.014 |
| 画像検索 | +$0.014 |
💡 主な利用ケース
- キャラクター変更:性別、年齢、服装、外見などの属性を変更。
- オブジェクト置換:画像内の要素を交換しつつ文脈を維持。
- スタイル転送:既存の画像に異なる視覚スタイルを適用。
- テキスト編集:画像内のテキストをデザインの一貫性を保ちながら変更。
- シーン調整:背景、照明、環境要素を変更。
🔗 関連モデル
- Nano Banana 2 Text-to-Image:テキストプロンプトから画像を生成。
- Nano Banana Pro Edit:品質が向上したプロ版編集。
- Nano Banana Pro Text-to-Image:プロ版画像生成。
Google Nano Banana 2 Editは、プロフェッショナルな画像編集を簡単かつ効率的に実現します。
関連モデル
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 画像編集
高速・低価格な編集。 マスキング不要で、直感的なオブジェクト置換やスタイル変換が可能。
Nano Banana Pro 画像編集
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を提供し、最高のパフォーマンス、コールドスタートなし、手頃な価格を実現。