Google Nano Banana Lite テキストから画像生成 API
google/nano-banana-2-lite/text-to-image
Google Nano Banana 2 Lite Text to Image は、テキストのプロンプトから高品質な画像を低レイテンシで生成できます。柔軟なアスペクト比に対応し、クリエイティブ制作や実運用のワークフローで素早く画像を作成できます。すぐに使える REST 推論 API、優れたパフォーマンス、コールドスタートなし、手頃な価格。
サンプル



パラメータ
| 名前 | 型 | 既定 | 制約 | 説明 |
|---|---|---|---|---|
| prompt *プロンプト | textarea | — | ≤ 5000 chars | 生成する画像を説明するテキストプロンプト。 |
| aspect_ratioアスペクト比 | select | 1:1 | 1:1 | 3:2 | 2:3 | 3:4 | 4:3 | 4:5 | 5:4 | 9:16 | … | 出力画像のアスペクト比。 |
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-lite/text-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "A cozy modern reading nook by a large rain-speckled window, soft morning light, overflowing bookshelf, green velvet armchair, knitted blanket, steaming cup of tea on a wooden side table, indoor plants, realistic interior photography, warm neutral tones, high detail",
"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-2-lite/text-to-image",
headers=HEADERS,
json={
"input": {
"prompt": "A cozy modern reading nook by a large rain-speckled window, soft morning light, overflowing bookshelf, green velvet armchair, knitted blanket, steaming cup of tea on a wooden side table, indoor plants, realistic interior photography, warm neutral tones, high detail",
"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-2-lite/text-to-image", {
method: "POST",
headers: { ...HEADERS, "Content-Type": "application/json" },
body: JSON.stringify({
"input": {
"prompt": "A cozy modern reading nook by a large rain-speckled window, soft morning light, overflowing bookshelf, green velvet armchair, knitted blanket, steaming cup of tea on a wooden side table, indoor plants, realistic interior photography, warm neutral tones, high detail",
"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 Lite Text to Image API
低レイテンシで高品質な画像生成を実現する、軽量なテキストから画像モデルです。
Google Nano Banana 2 Lite Text to Image は、自然言語のプロンプトから画像をすばやく生成できる軽量なテキストから画像モデルです。低レイテンシ、柔軟なアスペクト比、コールドスタートなし、そして手頃な価格を兼ね備えており、クリエイティブ制作から実運用まで幅広いワークフローに適しています。
🚀 主な特長
- 低レイテンシ生成:高速な画像生成に最適化されており、試行錯誤の多い制作フローでも快適にご利用いただけます。
- コールドスタートなし:待機時間を抑え、運用環境でも安定した応答性を期待できます。
- 柔軟なアスペクト比:正方形、縦向き、横向き、ワイドスクリーン、ウルトラワイドなどの一般的なレイアウトに対応します。
- 単一画像出力:1 回のリクエストで 1 枚の画像を生成するため、コストと挙動が予測しやすくなっています。
- 複数の出力形式:PNG、JPEG、WEBP に対応し、品質重視から軽量配信まで用途に応じて選択できます。
- シンプルな操作性:公開されている主要な設定は、プロンプト、アスペクト比、出力形式に集約されています。
🛠️ 技術仕様
| 項目 | 内容 |
|---|---|
| モデル名 | Google Nano Banana 2 Lite Text to Image |
| モデル ID | google/nano-banana-2-lite/text-to-image |
| モデル種別 | テキストから画像 |
| モデルアーキテクチャ | 軽量テキストから画像アーキテクチャ(Lite) |
| 入力 | プロンプト |
| 出力 | 1 枚の画像 |
| 生成枚数 | 1 |
| 対応アスペクト比 | 1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9 |
| デフォルトのアスペクト比 | 1:1 |
| 出力形式 | png、jpeg、webp |
| デフォルトの出力形式 | png |
| 性能特性 | 低レイテンシ、コールドスタートなし |
| 主なワークフロー | クリエイティブ生成、マーケティング素材、プロンプト検証、レイアウト別画像生成 |
サンプルプロンプト
A cinematic portrait of a young woman standing in neon rain, dramatic lighting, shallow depth of field, ultra detailedA minimalist product advertisement for a luxury skincare bottle on a marble surface, soft studio lighting, clean compositionA fantasy floating city above the clouds at sunrise, epic scale, concept art, highly detailed atmosphere
💰 価格
| 項目 | 価格 |
|---|---|
| 画像 1 枚生成 | $0.035 |
💡 最適なユースケース
- クリエイティブ企画:コンセプトアート、イラスト、サムネイル、ビジュアル案の作成に適しています。
- マーケティング素材制作:キャンペーン画像、SNS 用ビジュアル、ブログ用グラフィック、販促素材の生成に活用できます。
- プロンプト検証:表現、構図、スタイル、シーン設定の違いをすばやく比較・検証できます。
- レイアウト別アセット制作:正方形、縦向き、横向き、バナー、ワイド形式など、掲載先に応じた画像生成に適しています。
🔗 関連モデル
- Google Nano Banana 2 Lite Edit:既存画像の軽量な編集や調整に適した派生モデルです。
- Google Nano Banana 2 Text To Image:より広い比較検討や上位バリエーションを求める場合に有力な関連モデルです。
関連モデル
xAI Grok Imagine Image v2.0 テキストから画像生成
xAI Grok Imagine Image V2.0 Text-to-Image は、テキストプロンプトから高品質な画像を生成できます。アスペクト比、解像度、品質を設定でき、クリエイティブ制作、SNS コンテンツ、マーケティング素材、制作ワークフローに適しています。すぐに使える REST 推論 API を提供し、高性能、コールドスタートなし、手頃な価格で利用できます。
Qwen Image 3.0 Pro テキストから画像生成
Qwen Image 3.0 Pro は、優れた画質と高度なプロンプト理解を備えたプロ向けのテキストから画像生成モデルです。最大 2k に対応。すぐに使える REST inference API を提供し、高性能・コールドスタートなし・手頃な価格を実現しています。
OpenAI GPT Image 2 テキストから画像生成
OpenAI の GPT Image 2 テキストから画像生成モデルは、自然言語プロンプトから高品質な画像を生成します。すぐに使える REST 推論 API、最高のパフォーマンス、コールドスタートなし、手頃な価格。
OpenAI GPT Image 2 Edit 画像編集
OpenAI の GPT Image 2 Edit は、自然言語の指示と1枚以上の参照画像を使用して画像編集を可能にします。すぐに使える REST 推論 API、最高のパフォーマンス、コールドスタートなし、手頃な価格。
Nami Z-Image T2I Spicy
テキストプロンプトから画像を生成します。幅、高さ、プロンプト最適化、シードを設定できます。
Nano Banana テキストから画像
Gemini 2.5 Flash Image。軽量かつ高速。大量生成やプロトタイピングに最適な、最も手頃なモデル。
Nano Banana Pro テキストから画像
Gemini 3.0 Pro Image。4K 高画質、多言語テキスト描画、プロ仕様のカメラ制御に対応したハイエンドモデル。
Nano Banana Pro テキストから画像
Gemini 3.0 Pro Image。4K 高画質、多言語テキスト描画、プロ仕様のカメラ制御に対応したハイエンドモデル。