¥0.08 起 / 张
近 24 小时成功率加载中
—
按提示词生成创意场景、商品展示和营销图片,也可用参考图编辑。
图片会按你生成前选的时长保留。
1K · 1:1,各模型实测结果,左右滑动对比,点击查看原图。








1K · 1:1,各模型实测结果,左右滑动对比,点击查看原图。








1K · 1:1,各模型实测结果,左右滑动对比,点击查看原图。








同一提示词 · 16:9 · 无参考图 · 1K 档积分。左右滑动对比,点击查看原图。
| 型号 / API 标识 | 分辨率 | 本站价格 / 张 | 官网参考 / 张 | 比官网优惠 |
|---|---|---|---|---|
Banana 2nano-banana-2 | 1K | ¥0.066 积分 | ↓ 87% | |
Banana 2nano-banana-2 | 2K | ¥0.088 积分 | ↓ 89% | |
Banana 2nano-banana-2 | 4K | ¥0.1010 积分 | ↓ 91% |
核对日期:2026-11-16。按 Google Standard 图像输出价比较;美元按固定参考汇率 1 USD = ¥7 换算,非实时汇率。参考价不含提示词、参考图、文本及 Thinking 等费用;优惠按展示的人民币参考价计算,不代表完整请求的总费用差额。
| 规格 | 限制 |
|---|---|
| 参考图张数 | 最多 12 张 |
| 参考图文件格式 | JPG / PNG / WebP |
| 参考图单张体积上限 | 10 MB |
| 输出分辨率档位 | 1K / 2K / 4K |
| 参数 | 类型 | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
key | string | 必填 | — | 控制台中的 16 位 API Key。 |
model | string | 必填 | — | 填写 nano-banana-2。 |
prompt | string | 必填 | — | 图片描述,最多 10,000 个字符。 |
resolution | string | 可选 | 2K | 可选 1K / 2K / 4K,输出宽高以实际图片为准。 |
quality | string | 可选 | auto | 推荐填写 auto,其他质量值的效果尚未验证。 |
aspectRatio | string | 可选 | auto | auto 使用模型默认构图。可选 1:1、3:2、2:3、16:9、9:16、4:3、3:4、21:9、9:21、1:3、3:1、2:1、1:2。 |
urls | string[] | 图生图必填 | — | 字符串数组,每个元素是一张参考图的链接或完整 Base64 数据 URI。最多 12 张,例如 ["https://example.com/reference.png"]。文生图可省略或传空数组。 |
storageDays | string | 可选 | 0 | 可选 0、7、30。保存 7 天或 30 天,每张分别加收 1 或 2 积分。 |
webhook | string | 可选 | — | 接收任务完成通知的 HTTP 或 HTTPS 地址。省略时请主动查询。 |
curl --request POST 'https://imgapi.vip/prod-api/tool/imgapi/draw/Async' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "你的16位Key",
"model": "nano-banana-2",
"prompt": "白底运动鞋商品主图,柔和棚拍光线",
"aspectRatio": "1:1",
"quality": "auto",
"resolution": "2K"
}'
{
"id": "示例任务ID",
"task_id": "示例任务ID",
"status": "submitted",
"code": 200,
"used_points": 8
}
curl --request POST 'https://imgapi.vip/prod-api/tool/gptimage2/query' \
--header 'Content-Type: application/json' \
--data-raw '{
"key": "你的16位Key",
"id": "提交接口返回的任务 ID"
}'
{
"id": "示例任务ID",
"status": "processing",
"image": ""
}
{
"id": "示例任务ID",
"status": "succeeded",
"image": "https://example.com/generated.png",
"code": 200,
"image_expires_at": "2026-11-17 16:00:00"
}
{
"id": "示例任务ID",
"status": "failed",
"image": "",
"failure_reason": "示例错误说明"
}
{
"id": "示例任务ID",
"status": "refunded",
"image": "",
"code": 400,
"failure_reason": "图片生成超时",
"refunded_points": 8
}
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 任务 ID,保存后用于查询。 |
task_id | string | 提交示例中与 id 相同。 |
status | string | submitted 表示服务端已受理。 |
code | number | 业务状态码,受理示例为 200。 |
used_points | number | 本次提交扣除的积分数,随型号和设置变化。 |
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 原任务 ID。 |
status | string | 任务状态,可为 submitted、processing、succeeded、failed、refunded。 |
image | string | 成功时为图片链接。链接可能过期,请及时下载。未出图时示例为 ""。 |
code | number | 业务状态码。示例中成功为 200,退款可能为 400。轮询应根据任务 status 判断是否结束。 |
image_expires_at | string 或 null | 图片链接的到期时间,示例格式 YYYY-MM-DD HH:mm:ss。 |
failure_reason | string 或 null | 失败或退款的原因说明。无可用说明时可能为空。 |
refunded_points | number | 该任务退回的积分数。 |
可选 1K / 2K / 4K,输出宽高以实际图片为准。
最多 12 张,支持 JPG、PNG 和 WebP,单张最大 10 MB。API 的 urls 里可填图片直链或完整的 Base64 数据 URI。
推荐填写 auto,其他质量值的效果尚未验证。
可以,给 aspectRatio 传 "21:9" 或 "9:21"。Banana 2.1 的当前接入选项不含这两个比例。
auto 使用模型默认构图。可选 1:1、3:2、2:3、16:9、9:16、4:3、3:4、21:9、9:21、1:3、3:1、2:1、1:2。