视觉方案迭代
创作一张咖啡店开业宣传图,暖色灯光、纸质菜单和木质桌面,主标题“OPEN TODAY”清晰可读。
通过明确场景与标题,比较多轮视觉方案。使用 Nano Banana 2,通过文字、图片输入创作图片。 支持 512 / 1k / 2k / 4k 分辨率。 在线调整参数、预览结果,并复用素材继续创作。
nano-banana2aspect_ratio: 16:9 · resolution: 2k · output_format: jpegnano-banana2aspect_ratio: 4:5 · resolution: 2k · output_format: jpegnano-banana2aspect_ratio: 4:5 · resolution: 2k · output_format: jpeg{
"model": "nano-banana2",
"input": {
"images": [],
"resolution": "2k",
"aspect_ratio": "16:9",
"output_format": "jpeg",
"prompt": "Cinematic product photograph of a sculptural white and graphite running shoe levitating above a wet black asphalt street at night, fine rain falling, cyan and magenta neon reflections rippling in puddles, shallow depth of field, crisp material detail on the knit upper and translucent sole, centered with generous negative space on both sides. Photorealistic, anamorphic film look. No text, no logos."
}
}代码示例与 Playground 当前参数保持同步。
curl --request POST 'https://newrouters.com/v1/tasks' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $MODEL_API_KEY" \
--data '{
"model": "nano-banana2",
"input": {
"images": [],
"resolution": "2k",
"aspect_ratio": "16:9",
"output_format": "jpeg",
"prompt": "Cinematic product photograph of a sculptural white and graphite running shoe levitating above a wet black asphalt street at night, fine rain falling, cyan and magenta neon reflections rippling in puddles, shallow depth of field, crisp material detail on the knit upper and translucent sole, centered with generous negative space on both sides. Photorealistic, anamorphic film look. No text, no logos."
}
}'在环境变量中设置 MODEL_API_KEY,请将密钥保存在服务端。 完整文档 ↗
POST /v1/tasks · Authorization: Bearer
curl 'https://newrouters.com/v1/tasks' \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MODEL_API_KEY" \
--data '{
"model": "nano-banana2",
"input": {
"images": [],
"resolution": "1k",
"aspect_ratio": "auto",
"output_format": "jpeg",
"prompt": "清晨的山间湖泊,柔和的晨光。"
}
}'const response = await fetch("https://newrouters.com/v1/tasks", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $MODEL_API_KEY"
},
body: JSON.stringify({
"model": "nano-banana2",
"input": {
"images": [],
"resolution": "1k",
"aspect_ratio": "auto",
"output_format": "jpeg",
"prompt": "清晨的山间湖泊,柔和的晨光。"
}
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import json
import requests
response = requests.post(
"https://newrouters.com/v1/tasks",
headers=json.loads("{\"Content-Type\":\"application/json\",\"Authorization\":\"Bearer $MODEL_API_KEY\"}"),
json=json.loads("{\"model\":\"nano-banana2\",\"input\":{\"images\":[],\"resolution\":\"1k\",\"aspect_ratio\":\"auto\",\"output_format\":\"jpeg\",\"prompt\":\"清晨的山间湖泊,柔和的晨光。\"}}"),
timeout=300,
)
response.raise_for_status()
print(response.text)使用返回的任务 ID 查询处理状态与产物。
curl -H "Authorization: Bearer $MODEL_API_KEY" "https://newrouters.com/v1/tasks/$TASK_ID"| 参数 | 类型 | 取值与约束 |
|---|---|---|
count | integer | 1 |
images | array | 默认: [] |
prompt * | string | |
resolution | JSON | "512" · "1k" · "2k" · "4k"默认: "1k" |
aspect_ratio | JSON | "auto" · "1:1" · "3:2" · "2:3" · "3:4" · "4:3" · "4:5" · "5:4" · "9:16" · "16:9" · "21:9" · "1:4" · "1:8" · "4:1" · "8:1"默认: "auto" |
ground_search | boolean | |
output_format | JSON | "png" · "jpeg" · "webp"默认: "jpeg" |
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"count": {
"enum": [
1
],
"type": "integer"
},
"images": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"default": []
},
"prompt": {
"type": "string",
"maxLength": 100000,
"minLength": 1
},
"resolution": {
"enum": [
"512",
"1k",
"2k",
"4k"
],
"default": "1k"
},
"aspect_ratio": {
"enum": [
"auto",
"1:1",
"3:2",
"2:3",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"21:9",
"1:4",
"1:8",
"4:1",
"8:1"
],
"default": "auto"
},
"ground_search": {
"type": "boolean"
},
"output_format": {
"enum": [
"png",
"jpeg",
"webp"
],
"default": "jpeg"
}
},
"additionalProperties": false
}先估算一次请求的费用,再选择适合工作流的预算。
| 用量 | 数量 | 单价 | 费用 |
|---|---|---|---|
| 1k | 1 次 | $0.03/ 次 | $0.03 |
按公开美元价格估算,实际费用以账号价格与最终用量回执为准。
| 规格 | 平台价格 | 官方参考 |
|---|---|---|
| 1k | $0.03 / 次 | $0.067 相比官方约省 55% |
| 2k | $0.04 / 次 | $0.101 相比官方约省 60% |
| 4k | $0.06 / 次 | $0.151 相比官方约省 60% |
官方能力示例与本站实际生成案例分别展示,可查看各自来源。
官方能力资料 ↗ · 2026-10-14
创作一张咖啡店开业宣传图,暖色灯光、纸质菜单和木质桌面,主标题“OPEN TODAY”清晰可读。
通过明确场景与标题,比较多轮视觉方案。以参考图中的原创角色为基础,改为雨天街景中的全身画面,保留脸部特征、服装设计和主色,只调整姿态与环境。
先上传角色参考图,再改变场景与姿态。



| 规格 | Nano Banana 2 | GPT Image 2 | GPT Image 2.5 Flare |
|---|---|---|---|
| 厂商 | OpenAI | OpenAI | |
| 输入 → 输出 | 文本图片图片 | 文本图片图片 | 文本图片图片 |
| 选择依据 | 当前模型 | 均声明文本、图片输入 · 计费单位一致 | 均声明文本、图片输入 · 计费单位一致 |
| 分辨率 | 512 / 1k / 2k / 4k | 1k / 2k / 4k | 1k / 2k / 4k |
| 参考图片 | 支持 | 20 | 20 |
| 起始价格 | $0.03 / 次 | $0.02 / 次 | $0.02 / 次 |
根据工作流需要的输入类型、输出规格和计费单位选择模型。使用同一提示词进行试用,可以更直接地比较模型在你实际场景中的表现。
使用 Nano Banana 2,通过文字、图片输入创作图片。 支持 512 / 1k / 2k / 4k 分辨率。 在线调整参数、预览结果,并复用素材继续创作。
Nano Banana 2 对应 Gemini 3.1 Flash Image,强调高效率图像生成与编辑,适合规模化视觉创作。
官方模型资料 ↗ · 2026-10-14
| 模型 ID | nano-banana2 |
|---|---|
| 模型厂商 | |
| 调用接口 | /v1/tasks |
| 分辨率 | 512 / 1k / 2k / 4k |
| 宽高比 | auto / 1:1 / 3:2 / 2:3 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9 / 1:4 / 1:8 / 4:1 / 8:1 |
| 输出格式 | png / jpeg / webp |
| 参考图片 | 支持,以输入校验为准 |
了解模型的价格、输入要求、接入方式和结果查询。
当前公开起价为 $0.03 / 次,各档位详见价格区。Playground 提交前会核对账号价格,最终费用以任务或调用回执为准。
登录后点击工作区上方的 Quick Start。选择或创建有权访问此模型的 Key,再复制请求示例。
当前支持的输入字段包括:count、images、prompt、resolution、aspect_ratio、ground_search、output_format。参数表列出可选值、默认值与组合约束。
可以。在参考模式中上传图片或输入 URL。参考图用于引导新的生成,不代表提供 mask 局部编辑功能。
保存返回的任务 ID,持续查询到成功或失败。History 标签页可以重新打开任务并复用参数。
页面保留原模型身份并显示“暂时关闭”,禁止发起新生成,已有任务记录仍可查看。上游临时故障会与后台主动关闭分开提示。