
模式: Text to Image
产品发布海报
建议测试配置: 1:1 · Standard output
示例与提示词
真实 Nano Banana 2 Lite 输出与对应提示词。复制提示词并在 Playground 中测试。

模式: Text to Image
建议测试配置: 1:1 · Standard output

模式: Text to Image
建议测试配置: 1:1 · Standard output
模式: Text to Image
建议测试配置: 1:1 · Standard output

模式: Text to Image
建议测试配置: 16:9 · Standard output
接入前先了解关键设置。
Topview API Platform 文档中 Nano Banana 2 Lite 设置的快速参考。各模式有各自的输入要求。
| 参数 | 取值 |
|---|---|
| 提供方 / 模型 | Google / Nano Banana 2 Lite |
| API 路由 | google/nano-banana-2-lite |
| 生成模式 | Text to Image · Image Editing |
| 分辨率 | 标准输出(无分辨率参数) |
| 宽高比 | 1:1 · 16:9 · 9:16 |
| Image Editing 输入 | 1 张 |
| 提示词长度 | 最多 4,000 字符 |
| 任务模式 | 异步提交 + 轮询 + 获取输出 |
| 价格 | 按生成图片计费;按实际用量结算 |
开发者快速开始
用 Platform API key 提交异步 prediction,再轮询返回的任务 ID 以获取输出。
# Set TOPVIEW_API_PLATFORM_KEY once. Preserve REQUEST_KEY and input for uncertain retries.
# For a NEW task only, unset REQUEST_KEY first. Save data.id to resume GET only.
: "${TOPVIEW_API_PLATFORM_KEY:?Set TOPVIEW_API_PLATFORM_KEY first}"
export REQUEST_KEY="${REQUEST_KEY:-$(uuidgen)}"
curl --fail-with-body 'https://platform-backend.topview.ai/api/v1/models/google/nano-banana-2-lite/text-to-image/predictions' \
-H "Authorization: Bearer $TOPVIEW_API_PLATFORM_KEY" \
-H "Idempotency-Key: $REQUEST_KEY" \
-H 'Content-Type: application/json' \
--data '{
"prompt": "A blue ceramic cup on a wooden table",
"aspect_ratio": "1:1"
}'
# Poll data.id until completed or failed.
curl --fail-with-body 'https://platform-backend.topview.ai/api/v1/predictions/REQUEST_ID' \
-H "Authorization: Bearer $TOPVIEW_API_PLATFORM_KEY"示例与 Platform 文档中的 Nano Banana 2 Lite 文生图请求一致。请仅在服务器端保存 TOPVIEW_API_PLATFORM_KEY。
步骤 1
登录 Topview API Platform,创建具备所需模型权限的 API key。请妥善保管密钥,并用它认证 API 请求。
步骤 2
提交文本提示词,或上传用于编辑的参考图。配置支持的图片设置,发送 API 请求,并保存返回的任务 ID。
步骤 3
检查任务状态直至生成完成。获取图片 URL,核对最终用量费用,并保存生成的图片。
面向生产工作流
Nano Banana 2 Lite 适合需要标准尺寸画面与简单编辑、而非 2K/4K 输出控制的应用。
为常规社交内容与推广帖生成简单的方形、竖版或横版概念图。
让用户上传一张图,通过编辑路由请求新背景、氛围或视觉处理。
在不需要高分辨率选择时,创建简洁的列表风视觉与产品呈现概念。
为不需要复杂多参考流程的应用,添加基于提示词的生成与单图编辑。
为什么选择 TOPVIEW API
使用 Topview,围绕 Lite 已文档化的有限控件构建,而不是展示模型未提供的分辨率或多图选项。
保持 UI 简单:Lite 没有分辨率参数,用户无需在 1K、2K、4K 间选择。
分别查看 Text to Image 与 Image Editing 的当前刊例价,而不是假定所有操作同一价格。
在 Playground 试用 1:1、16:9、9:16,并在产品中保留相同选项。
若后续需要更高分辨率或更多参考图,再对比 Nano Banana 2 与 2.1。
探索相关 API
下一张图片从这里开始
在 Playground 试用第一条提示词,对比当前价格,或按文档将 Nano Banana 2 Lite 集成到应用。
透明定价
对比 Topview 费率与 Topview API Platform 上列出的官方 Nano Banana 2 Lite 费率。价格每日更新。
Text to Image
Text to Image · 标准输出
Topview
$0.0200 /张
官方: $0.0400/张
较官方节省 50%
Image Editing
Image Editing · 标准输出
Topview
$0.0200 /张
官方: $0.0400/张
较官方节省 50%
按设置的单张图片费率。Topview 与官方费率来自 Topview API Platform。
正在查看 Text to Image · 1 种配置
| 配置 | Topview | 官方 | 节省 |
|---|---|---|---|
| Text to Image标准输出 · 生成图片 | $0.0200 /张 | $0.0400 /张 | 比官方低 50% |
费率为所列设置下每张生成图,且每张输出图单独计费。生产消耗前请确认 Platform 当前报价。