Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用 Google 的 Nano Banana 根据文字创作图片,在原版和 Pro 版之间选择,探索视觉创意与细致版式。


Create a minimalist black-and-white typographic illustration of the scene riding a bicycle using only the letters in the phrase '{{appName}} Nano Banana API'. Each letter should be creatively shaped or positioned to form the rider, the bicycle, and a sense of motion.tes with the text.

Create a character figure of Iron Man. Behind it, place a box with the character’s image printed on it, and a computer showing the Blender modeling process on its screen. In front of the box, add a round plastic base with the character figure standing on it. Set the scene indoors if possible.

A single comic book panel in a gritty, noir art style with high-contrast black and white inks. In the foreground, a detective in a trench coat stands under a flickering streetlamp, rain soaking his shoulders. In the background, the neon sign of a desolate bar reflects in a puddle. A caption box at the top reads "The city was a tough place to keep secrets." The lighting is harsh, creating a dramatic, somber mood. Landscape.
Nano Banana 是 Google 的图片模型系列。Google 将原版描述为注重速度与效率的选择,将 Nano Banana Pro 定位于注重画面保真度、文字呈现和复杂指令的创作。
本页包含原版 google/nano-banana 和 nano-banana-pro。在 UniRoute 上,两者都接受文字提示词,并提供这里显示的正方形宽高比选项。Nano Banana Pro 另有专属页面;Nano Banana 2 则是不同版本。
原版 Nano Banana 是这一模型系列的起点。Google 将 Pro 版定位于要求更高的图片任务;后续 Nano Banana 版本可通过下方链接单独查看。
目前通过 UniRoute 使用 Nano Banana 可以做什么。
描述图片的主体、风格、构图以及需要呈现的文字,选择可用规格,查看报价后再运行。

Nano Banana 的其他模式(参考图编辑、照片合成和多轮修改)暂未在 UniRoute 开放。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Nano Banana 原版 | google/nano-banana | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1 | $0.02 / 次请求 |
| Nano Banana Pro | nano-banana-pro | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1 | $0.11 / 次请求 |
按请求计价,所选规格决定价格。
| Nano Banana 原版 | |
|---|---|
| 1:1 | $0.02 |
| Nano Banana Pro | |
|---|---|
| 1:1 | $0.11 |
金额四舍五入到分;工作区中的实时报价显示精确金额。价格更新于 2026-11-08。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Nano Banana。
# Requires bash, curl and jq. Set API_KEY to your own unified UniRoute Key.set -euo pipefail: "${API_KEY:?Set API_KEY first}"BASE='https://api.uniroute.app/v1/media'MODEL='google/nano-banana'OPTION='1:1'PROMPT='A calm sunrise over a mountain lake'curl -fsS --max-time 60 "$BASE/catalog" -H "Authorization: Bearer $API_KEY" | jq -e '.data.models'BODY=$(jq -n --arg model "$MODEL" --arg option "$OPTION" --arg prompt "$PROMPT" '{model:$model,option:$option,prompt:$prompt}')QUOTE_BODY=$(printf '%s' "$BODY" | jq '{model,option}')QUOTE=$(curl -fsS --max-time 60 "$BASE/quote" -H "Authorization: Bearer $API_KEY" -H 'Content-Type: application/json' -d "$QUOTE_BODY")CAP=$(printf '%s' "$QUOTE" | jq -er '.data.quoted_usd')BODY=$(printf '%s' "$BODY" | jq --arg cap "$CAP" '. + {max_cost_usd:$cap}')IDEMPOTENCY="example-$(date +%s)-$$"create() { curl -fsS --max-time 60 "$BASE/tasks" -H "Authorization: Bearer $API_KEY" -H "Idempotency-Key: $IDEMPOTENCY" -H 'Content-Type: application/json' -d "$BODY"; }TASK_ID=$(create | jq -er '.data.task_id')# The same request and idempotency key must return the original task without charging again.REPLAY_ID=$(create | jq -er '.data.task_id')[ "$TASK_ID" = "$REPLAY_ID" ]for attempt in $(seq 1 120); do TASK=$(curl -fsS --max-time 60 "$BASE/tasks/$TASK_ID" -H "Authorization: Bearer $API_KEY") printf '%s' "$TASK" | jq -e '.data | {task_id,status,billing}' if printf '%s' "$TASK" | jq -e '.data.status == "success" and .data.billing.state == "charged"' >/dev/null; then index=0 while IFS= read -r url; do index=$((index+1)) curl -fL --max-time 120 "$url" -o "$TASK_ID-$index.bin" done < <(printf '%s' "$TASK" | jq -er '.data.urls[].url') break fi if printf '%s' "$TASK" | jq -e '.data.status == "failed" and .data.billing.state == "released"' >/dev/null; then exit 1; fi if [ "$attempt" = 120 ]; then echo "Polling limit reached. Keep task ID $TASK_ID and query it later; do not create a new task." >&2 exit 1 fi sleep 5donecurl -fsS --max-time 60 "$BASE/tasks?limit=20" -H "Authorization: Bearer $API_KEY" | jq -e '.data'# Check this task and the caller Key in Console usage; billing.charged_usd is the actual USD charge.| 名称 | 位置 | 说明 |
|---|---|---|
model | 请求体 | 要运行的模型 ID。 |
option | 请求体 | 该模型提供的规格之一:1:1。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Nano Banana 的常见用法。
把简短想法转成图片草稿,用相同的文字需求比较原版和 Pro 版。
指定标题、插画风格和版式,探索海报或社交配图。
描述产品、背景和光照,无需提供参考照片即可探索视觉概念。
关于 Nano Banana 的常见问题。
Nano Banana 是 Google 的图片模型系列。Google 将原版描述为注重速度与效率的选择,将 Nano Banana Pro 定位于注重画面保真度、文字呈现和复杂指令的创作。
原版和 Pro 版可以在本页切换。Pro 另有专属模型页;Nano Banana 2 是另一个版本,有独立页面及对应的可用选项。
可以选择原版或 Pro 版。当前两者都提供正方形宽高比选项,未开放独立的分辨率控制或参考图输入。
$0.02 起 / 张。每次请求按所选版本和规格报价。完整请求价格见“价格”一节(价格更新于 2026-11-08)。
暂时不可以。UniRoute 当前的工作区接受文字提示词和上方列出的目录规格,本页所列版本尚未开放参考图片输入。
使用媒体 API:先对所选模型和规格请求报价,再带上 Idempotency-Key 和最高费用创建任务,然后轮询任务直到结果就绪。“API”一节给出了完整示例和参数说明。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。