Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用 Google 基于 Gemini 3.1 Flash Image 的 Nano Banana 2,根据文字提示词生成图片,可在网页使用,也可通过 API 调用。


translation of all the text to Hindi.

Triptych infographic comparing three types of clouds: Cumulus, Stratus, and Cirrus. Each panel shows the cloud type in a dramatic sky with a bold label. High-contrast comic style.

High-quality flat lay photography creating a DIY infographic that simply explains how the water cycle works, arranged on a clean, light gray textured background. The visual story flows from left to right in clear steps. Simple, clean black arrows are hand-drawn onto the background to guide the viewer's eye. The overall mood is educational, modern, and easy to understand. The image is shot from a top-down, bird's-eye view with soft, even lighting that minimizes shadows and keeps the focus on the process.
Nano Banana 2 是 Google 的图片生成模型,基于 Gemini 3.1 Flash Image。Google 对它的介绍强调生成速度快、图中文字清晰可读,以及主体保持一致。
在 UniRoute 上,Nano Banana 2 接受文字提示词,并提供把分辨率和宽高比合在一起的尺寸选项。每次请求在运行前先报价,价格取决于所选尺寸。
Nano Banana 2 是原版 Nano Banana(基于 Gemini 2.5 Flash Image)的后续版本,与 Nano Banana Pro 并列。Google 介绍称,它在画质和速度上优于原版,并支持更高分辨率的输出;Nano Banana Pro 则追求最高保真度和更深入的推理。可按速度、质量和成本在两者之间选择。
目前通过 UniRoute 使用 Nano Banana 2 可以做什么。
在提示词里描述主体、风格、版式以及需要出现在图中的文字,选择尺寸后运行。信息图、海报等带文字的版式很适合用来检验这个模型。

Nano Banana 2 的其他模式(基于参考图的修图与合成)及更多宽高比暂未在 UniRoute 开放。目前 UniRoute 接受文字提示词和尺寸选项。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Nano Banana 2 | nano-banana-2 | 文生图 | 文字提示词和尺寸选项 | 分辨率:1K、2K、4K;宽高比:1:1、16:9 | $0.05 至 $0.11 / 次请求 |
按请求计价,所选规格决定价格。
| 规格 | 官方 API | UniRoute | 节省 |
|---|---|---|---|
| 1K · 1:1 | $0.067 | $0.05 | 省 25% |
| 1K · 16:9 | $0.067 | $0.05 | 省 25% |
| 2K · 1:1 | $0.101 | $0.075 | 省 26% |
| 2K · 16:9 | $0.101 | $0.075 | 省 26% |
| 4K · 1:1 | $0.151 | $0.1125 | 省 25% |
| 4K · 16:9 | $0.151 | $0.1125 | 省 25% |
官方价格:aistudio.google.com
价格更新于 2026-11-08。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Nano Banana 2。
# 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='nano-banana-2'OPTION='1K: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 | 请求体 | 该模型提供的规格之一:1K:1:1, 1K:16:9, 2K:1:1, 2K:16:9, 4K:1:1, 4K:16:9。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Nano Banana 2 的常见用法。
根据一句简短需求生成广告图、横幅和社交配图,并在定稿前对比不同尺寸。
生成海报、标签和标题卡等需要文字清晰可读的画面,再调整提示词措辞直到版式合适。
用平实的语言描述一张图表或分步流程,先得到一版可继续打磨的画面。
通过 API 按需生成图片。每次请求先报价,之后可以轮询任务状态,直到结果就绪。
关于 Nano Banana 2 的常见问题。
Nano Banana 2 是 Google 的图片生成模型,基于 Gemini 3.1 Flash Image。在 UniRoute 上,你可以在本页或通过 API 使用它,根据文字提示词生成图片。
Google 介绍称,Nano Banana 2 侧重快速生成并保持较高质量,Nano Banana Pro 则追求最高保真度和更深入的推理。两者都已在 UniRoute 上线,可以对比输出效果和价格。
通过 UniRoute 可用的尺寸选项及各自的价格,列在本页的规格与价格表中。表格内容读取自实时的模型目录,因此始终与你能运行的规格一致。
$0.05 起 / 张。尺寸越大,单次请求价格越高。完整价格表见“价格”一节(价格更新于 2026-11-08)。
暂时不可以。Google 介绍称,模型支持图片编辑,但 UniRoute 目前只接受文字提示词和尺寸选项。本页“API”一节列出了当前可用的输入。
使用媒体 API:先对所选模型和规格请求报价,再带上 Idempotency-Key 和最高费用创建任务,然后轮询任务直到结果就绪。“API”一节给出了完整示例和参数说明。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。