跳转至内容
Runstage

Google DeepMind

Nano Banana 2.1

根据文字提示词生成图像。描述主体、构图、光线、风格和画面中应出现的文字,然后选择尺寸。模型会从 14 种宽高比中选出最接近的一种,以 1K、2K 或 4K 输出。

公开 API 价格
~$0.0845 / 1K (1024px)
查看所有价格档位
1K (1024px)~$0.0845
2K (2048px)~$0.1372
4K (4096px)~$0.2229
API 模型 ID
图像 API 接口nano-banana-2.1
端点
POST /api/v2/run
输入
Text prompt · Reference images
输出
Image (PNG / WebP)
费率
~$0.0845 / 1K (1024px)
示例提示词

“A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of w…”

适用场景

API 参考

API 模型 ID
nano-banana-2.1
模型开发者
Google DeepMind
模态
图像生成与编辑
输入
Text prompt · Reference images
输出
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.1).

  • promptstring · 必填

    Visual description of subject, composition, lighting, and medium.

  • width / heightinteger · 可选

    Output pixel dimensions (e.g. 1024×1024 or 1536×1024).

其他参数

  • quality
  • seed
  • enhance_prompt

快速入门

复制使用模型 ID nano-banana-2.1 的请求示例。先免费获取运行前报价(最终费用在完成时结算),再使用 Runstage API 密钥运行。

打开工作室
# 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.1","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.1",   "prompt": "A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.",   "width": 1024,   "height": 1024,   "seed": 42 }'

# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=nano-banana-2.1' --form-string 'prompt=A high-speed wildlife photograph of a common kingfisher bursting out of a still river with a small silver fish in its beak, frozen at 1/8000 s. Wings swept back, every electric-blue and orange feather sharp, a crown of water droplets and a rising column of splash caught in mid-air, each droplet reflecting the sky. Low side light from the early morning sun, dark green out-of-focus reeds in the background, the bird'\''s reflection broken up in the rippled water below. Telephoto compression, shallow depth of field, natural colours.' -F "image=@input.png"

# 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 的实时目录价格。使用美元预付点数,每个密钥均有支出限额。

在完整目录中比较