支持模型与参数图片模型
Nano Banana Pro
nano-banana-pro 的参数说明、枚举、示例和接入建议。
nano-banana-pro 在结构上和 nano-banana-2 很接近,但更适合质量优先、精修图和参考图编辑场景。
模型速览
| 项 | 说明 |
|---|---|
| 模型 ID | nano-banana-pro |
| 类型 | 图片 |
| 区域 | Global / CN |
| 推荐场景 | 更高质量生成、营销图、参考图编辑 |
| 推荐优先级 | 中,更关注质量时优先 |
推荐请求写法
这个模型仍然统一走 POST /v1/generations。
{
"model": "nano-banana-pro",
"prompt": "Keep the bag shape, change the material to brushed metal, luxury campaign lighting",
"reference_images": [
"https://cdn.example.com/source/bag-front.png"
],
"aspect_ratio": "1:1",
"resolution": "4K"
}字段说明
| 字段 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
model | string | 是 | - | 固定传 nano-banana-pro |
prompt | string | 是 | - | 图片描述 |
reference_images | string[] | 否 | - | 参考图 URL 列表 |
aspect_ratio | string | 否 | auto | 输出宽高比 |
resolution | string | 否 | 2K | 输出分辨率 |
n | integer | 否 | 1 | 生成数量 |
可选枚举
| 字段 | 支持值 |
|---|---|
aspect_ratio | auto 21:9 16:9 3:2 4:3 1:1 3:4 2:3 9:16 |
resolution | 2K 4K |
nano-banana-pro 接入建议
- 它的参数结构几乎和
nano-banana-2一样。 - 更适合质量敏感的营销图和精修编辑场景。
高质量示例
{
"model": "nano-banana-pro",
"prompt": "A premium perfume campaign visual, reflective black stone, dramatic side light",
"aspect_ratio": "4:3",
"resolution": "4K"
}
