跳转到主要内容
nano-banana-v2 是 Google 的轻量级图像模型,在与 nano-banana 相同的协议入口和近似的成本档位上,叠加了图生图编辑能力。区分点是可选的 source_image 字段:当它存在时,模型把它当作参考(风格迁移、mask 编辑、背景替换),而不是纯文生图。 价格: $0.022 / 张(图生图与文生图同价,失败不计费)—— 见费率卡

Protocols

Protocol路径
OpenAI ImagesPOST https://llm.bytespike.ai/v1/images/generations

Quickstart

curl https://llm.bytespike.ai/v1/images/generations \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "nano-banana-v2",
    "prompt": "Same product, change the background to deep blue",
    "source_image": "https://example.com/source.png",
    "n": 1,
    "size": "1024x1024"
  }'
DOSIA 的 generate_image 工具会在你于对话中附了图片时,自动透传 source_image

Capabilities

能力支持
文生图
图生图(带 source_image
n ≥ 2 批量生成
size 1024×1024 / 1024×1792 / 1792×1024
response_format url / b64_json
Modalityimage
Capability bucketimage_generate

何时使用

  • DOSIA “编辑这张图”请求 —— 主脑在拿到权限时会带着对话中的图片路由到这里。
  • 背景替换、风格迁移、mask 编辑 —— 不用付 gpt-image-2 的价格。
  • 成本敏感的图生图流水线 —— 大规模程序化编辑。
适用的场景:
  • 纯文生图、不需要图生图 —— nano-banana 在同档位提供同等基线。
  • 顶级排版还原或营销主图 —— gpt-image-2

下一步