跳转到主要内容
厂商: Google Model ID: nano-banana-v2 能力: 2048² · 写实 · 锐利文字渲染 · 改善的解剖学 价格: 按张计费,写实旗舰级 (实时费率) Nano Banana 2 是 Google 写实家族的当前迭代。相对 Pro 明显改进的两块: 图内文字渲染(书籍封面、招牌、屏幕内容),以及那两个老问题 —— 手部数量和小尺度面部比例。纯材质 / 打光保真上 Pro 和 2 相当; 任何涉及可读图内文字或人物主体的 brief,2 是更稳的选择。

Request

curl https://llm.bytespike.ai/v1/images/generations \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana-v2",
    "prompt": "A cafe storefront with a chalk-board menu reading PASTEL DE NATA and AMERICANO",
    "size": "2048x2048"
  }'

Body 参数

FieldTypeRequiredDefaultNotes
modelstringyesnano-banana-v2
promptstringyes针对英文调优。
sizestringno2048x2048支持:1024x10242048x20482048x15361536x2048
nintegerno11–2 张。
seedintegerno可复现性。
aspect_ratiostringno1:1 / 9:16 / 16:9 / 4:3 / 3:4
qualitystringno"standard""standard" / "hd"

Response

{
  "created": 1715174400,
  "data": [{"url": "https://cdn.bytespike.ai/img/...", "revised_prompt": "..."}]
}
URL 预签名,24h 有效。

代码示例

curl https://llm.bytespike.ai/v1/images/generations \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "nano-banana-v2", "prompt": "A cafe storefront chalk-board menu", "size": "2048x2048"}'

错误

Code触发条件计费?
400 / 401 / 402 / 403标准不计费
451prompt 被上游安全过滤拦截不计费
5xx上游问题不计费(自动重试)

何时选用

  • 图内文字(招牌、包装、书籍封面、UI mockup)。
  • 人物主体 —— 手部 / 面部解剖在缩放下必须立得住。
  • 上一代旗舰摄影,见 Nano Banana Pro
  • 廉价迭代,见 Nano Banana
  • 2048² 美学 / 插画,见 Seedream V4.5

限制

限制
最大输出分辨率2048×2048
单次最大张数(n2
支持 init image(img2img)
支持 quality 修饰是(standard / hd
支持 seed 可复现
同步?是(≤45s)
2048² standard 平均延迟14-22s