Nano Banana Pro API

Nano Banana Pro 的 Buble API 参数、mode、价格与调用示例。

Nano Banana Pro API

Nano Banana Pro 是更偏专业创意生产的高质量图片模型,适合商业视觉、专业素材和精细图像改造。

模型 key

  • google/nano-banana-pro — Nano Banana Pro

支持的 mode 与输入

模型Mode名称输入要求
google/nano-banana-protext_to_image文生图Prompt max 10000 chars
google/nano-banana-proimage_to_image图生图Prompt max 10000 chars
Images reference: 1-8 files, 30 MB, formats jpg, jpeg, png, webp

参数

模型参数默认值可选值适用 mode
google/nano-banana-proaspect_ratio1:11:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto全部 mode
google/nano-banana-proresolution1K1K, 2K, 4K全部 mode
google/nano-banana-prooutput_formatpngpng, jpg全部 mode

价格

模型价格
google/nano-banana-pro每张图片 2 credits

生产建议

  • 显式传入 mode
  • 只使用上表列出的参数值。
  • 媒体输入类 mode 请先用 POST /api/v1/files 上传素材。
  • 如果页面包含多个变体,请使用你真正需要的模型 key。

示例:文生图

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-pro",
    "mode": "text_to_image",
    "prompt": "A premium editorial product image of a minimalist ceramic coffee grinder on a warm walnut counter, soft studio lighting",
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "output_format": "png"
  }'

示例:图生图

Upload an image first, then pass the returned URL to image_urls.

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/nano-banana-pro",
    "mode": "image_to_image",
    "prompt": "Transform the source into a clean commercial product image while preserving the main object",
    "image_urls": ["https://example.com/source.png"],
    "aspect_ratio": "1:1",
    "resolution": "1K",
    "output_format": "png"
  }'