Google DeepMind
Nano Banana 2
基于 Google Gemini 3.1 Flash Image 的文生图模型。能生成清晰易读的文字,遵循较长且包含多个部分的提示词,并一次生成最高 4096 x 4096 的图像,涵盖从逼真人像到带标注的示意图。
公开 API 价格
查看所有价格档位~$0.0845 / 1K (1024px)
1K (1024px)~$0.0845
2K (2048px)~$0.1372
4K (4096px)~$0.2229
API 模型 ID
图像 API 接口
nano-banana-2- 端点
POST /api/v2/run- 输入
- Text prompt
- 输出
- Image (PNG / WebP)
- 费率
- ~$0.0845 / 1K (1024px)
示例提示词“An overhead flat-lay photograph of a weekend breakfast spread on a scratched zinc table, shot from directly above with a slight wide-angle. A cast iron skillet holds a golden dutch baby pancake dusted with icing sugar an…”
适用场景
- 通过 POST /api/v2/run 从文本生成用于营销活动、广告和产品构思的图像
- 使用预付点数前可通过 POST /api/v2/quote 免费估价
- 一个 API 密钥即可获得合作伙伴旗舰图像质量,提交时执行支出限额
- API 模型 ID
nano-banana-2- 模型开发者
- Google DeepMind
- 模态
- 图像生成与编辑
- 输入
- Text prompt
- 输出
- Image (PNG / WebP)
- 端点列表
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- 基础设施
- 合作云算力
请求参数
modelstring · 必填Exact Runstage model slug (nano-banana-2).
promptstring · 必填Visual description of subject, composition, lighting, and medium.
width / heightinteger · 可选Output pixel dimensions (e.g. 1024×1024 or 1536×1024).
其他参数
qualityseedenhance_prompt
复制 Nano Banana 2 的 curl 示例
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"nano-banana-2","width":1024,"height":1024}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "nano-banana-2", "prompt": "An overhead flat-lay photograph of a weekend breakfast spread on a scratched zinc table, shot from directly above with a slight wide-angle. A cast iron skillet holds a golden dutch baby pancake dusted with icing sugar and torn figs, beside a chipped enamel jug of cream, a linen napkin in ochre, two speckled ceramic plates and a scattering of blueberries. Hard morning sun enters from the right, casting crisp geometric window shadows across the surface and lighting steam rising from a small espresso cup. Rich saturated colour, tactile textures, editorial food photography.", "width": 1024, "height": 1024, "seed": 42 }'
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'价格
| 计费单位和选项 | 费率(美元) |
|---|---|
| 1K · 1024×1024Standard square or portrait output (estimated) | ~$0.0845 |
| 2K · 2048×2048High-resolution editorial artwork (estimated) | ~$0.1372 |
| 4K · 4096×4096Ultra-high-resolution print master (estimated) | ~$0.2229 |
计费说明
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- 动用预付点数前,可通过 POST /api/v2/quote 免费估算运行费用。
- 任务完成或失败时按实际费用自动结算,并退回未使用的预留点数。
- 使用合作伙伴的外部算力,最终费用按报告的执行指标结算。
Runstage 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。
在完整目录中比较