Loading model…正在加载模型详情…
Loading model…正在加载模型详情…
用 Google 的 Nano Banana 2 Lite 把文字创意变成视觉草稿,探索不同设计方向,可在网页使用,也可通过 API 调用。


Create a beautiful travel lifestyle image of a woman in a light linen dress standing on a sunlit Mediterranean terrace. The background includes blue sea, white coastal houses, flowering bougainvillea, terracotta steps, and warm afternoon light. Use a soft travel-magazine aesthetic, natural colors, realistic facial and clothing details, and a balanced composition that feels bright, graceful, and shareable.

Keep the same woman’s face, hairstyle, expression, pose, and clothing, but replace the plain studio background with a beautiful Mediterranean seaside terrace. Add blue ocean water, white coastal buildings, soft flowers, warm sunlight, and a refined travel-lifestyle atmosphere. Preserve the subject’s identity clearly and make the final image feel elegant, bright, and natural.

Create a charming editorial illustration of an outdoor breakfast table under a lemon tree. Include croissants, honey, tea, fresh fruit, wildflowers, ceramic plates, linen napkins, and soft morning sunlight. Use warm hand-painted textures, tasteful color harmony, and a polished storybook-meets-lifestyle-magazine style. The composition should feel cozy, beautiful, and visually refined.
Nano Banana 2 Lite 是 Google 的 Gemini 3.1 Flash-Lite Image 模型。Google 将它定位于快速图片生成、创意迭代和应用中的视觉功能。
在 UniRoute 上,它接受文字提示词和宽高比选项。描述主体、构图与风格,选择画面比例,查看报价后即可生成。
Google 将 Lite 定位为 Nano Banana 系列中侧重速度的成员,而 Nano Banana 2 提供更灵活的输出分辨率选择。UniRoute 为 Lite 开放了宽高比选项,具体可用规格见本页表格。
目前通过 UniRoute 使用 Nano Banana 2 Lite 可以做什么。
用自然语言描述场景、产品概念或插画,选择宽高比后生成图片。调整提示词中的主体、光线和视觉风格,探索不同创作方向。

Nano Banana 2 Lite 的其他模式(参考图片和按提示词编辑图片)暂未在 UniRoute 开放,目前仅提供文字提示词与宽高比选择。
可调用的版本,以及各自的选项和价格。
| 版本 | 模型 ID | 模式 | 输入 | 输出 | 价格 |
|---|---|---|---|---|---|
| Nano Banana 2 Lite | nano-banana-2-lite | 文生图 | 文字提示词和宽高比选项 | 宽高比:1:1、16:9、9:16 | $0.03 / 次请求 |
按请求计价,所选规格决定价格。
| 规格 | 官方 API | UniRoute | 节省 |
|---|---|---|---|
| 1:1 | $0.0336 | $0.025 | 省 26% |
| 16:9 | $0.0336 | $0.025 | 省 26% |
| 9:16 | $0.0336 | $0.025 | 省 26% |
官方价格:aistudio.google.com
价格更新于 2026-11-08。
按用量计费,统一使用一个美元钱包余额。每次请求前都会先看到报价。
用媒体 API 在你自己的代码里调用 Nano Banana 2 Lite。
# 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-lite'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, 16:9, 9:16。 |
prompt | 请求体 | 描述要生成内容的文字提示词。 |
max_cost_usd | 请求体 | 本次任务的最高费用(美元),取自报价。 |
Idempotency-Key | 请求头 | 每个任务唯一的键;重复请求会返回原任务,不会重复扣费。 |
Nano Banana 2 Lite 的常见用法。
在确定设计方向之前,先把视觉想法做成草图,通过提示词比较不同场景、配色和构图。
起草社交配图、缩略图和活动视觉,选择适合发布位置的画面比例。
把文字场景变成故事或文章的配图,在提示词中写明画风和需要呈现的细节。
通过 API 根据用户提示词生成图片,提交前先获取报价,再轮询任务状态取得结果。
关于 Nano Banana 2 Lite 的常见问题。
Nano Banana 2 Lite 是 Google 的 Gemini 3.1 Flash-Lite Image 模型。在 UniRoute 上,你可以通过网页或 API,根据文字提示词生成图片。
Google 在介绍中强调 Lite 的生成速度和创意迭代定位,而 Nano Banana 2 提供更多输出分辨率选择。可先比较各自模型页上的可用规格和价格,再决定使用哪一个。
工作区和规格表列出了 UniRoute 当前支持的宽高比。这些选项读取自网关模型目录,决定生成图片的画面比例。
$0.03 起 / 张。每次图片请求在提交前先报价。“价格”一节列出了可用选项及其价格(价格更新于 2026-11-08)。
暂时不可以。UniRoute 目前为该模型开放文字提示词和宽高比选项。部分 Google 示例使用了参考图片,但本页工作区及对应 API 请求尚未开放这类输入。
先对所选模型和规格请求报价,再带上 Idempotency-Key 和最高费用创建媒体任务,最后轮询取得结果。本页“API”一节给出了请求顺序和可用参数。
没有。生成费用从你的钱包余额中扣除。你可以直接打开工作区查看价格,注册账号后可看到针对当前设置的实时报价,只有被接受的请求才会计费。