
模式: 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 目前報價。