Google: Gemini Nano Banana 2.1
gemini-nano-banana-2.1- 輸入 / 輸出-50%
- $1.50 / $7.50$0.75 / $3.75
- 上下文
- 128K
- 發布日期
- 2026年10月6日
- 最大輸出長度
- 32K
- 模態
- 圖片視覺辨識
入門指南
建立 API 金鑰
請至 Console 建立金鑰,即可在平台上使用各類模型。
發送您的第一個請求
複製您所選語言的範例,並針對端點執行它。
影像編輯圖片轉圖片文字生成圖片TokenLab 端點POST/v1/images/generationsAPI 格式:curl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "aspect_ratio": "1:1", "operation": "text-to-image", "resolution": "1k", "model": "gemini-nano-banana-2.1", "prompt": "A minimalist product photo of matte black headphones on a soft blue background." }'
參數設定
影像編輯
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | 未提供 | 未提供 |
async | 未提供 | 未提供 | 未提供 |
image | 未提供 | 未提供 | This operation accepts image inputs. The maximum total source-image count is not yet verified for this public operation. |
image_url | 未提供 | 未提供 | 未提供 |
image_urls | 未提供 | 未提供 | 未提供 |
images | 未提供 | 未提供 | 未提供 |
operation | 未提供 | 未提供 | 未提供 |
prompt | 未提供 | 未提供 | 未提供 |
resolution | 1k, 2k, 4k | 未提供 | 未提供 |
size | 未提供 | 未提供 | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
圖片轉圖片
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | 未提供 | 未提供 |
async | 未提供 | 未提供 | 未提供 |
image | 未提供 | 未提供 | This operation accepts image inputs. The maximum total source-image count is not yet verified for this public operation. |
image_url | 未提供 | 未提供 | 未提供 |
image_urls | 未提供 | 未提供 | 未提供 |
operation | 未提供 | 未提供 | 未提供 |
prompt | 未提供 | 未提供 | 未提供 |
resolution | 1k, 2k, 4k | 未提供 | 未提供 |
size | 未提供 | 未提供 | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
文字生成圖片
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
aspect_ratio | 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 | 未提供 | 未提供 |
async | 未提供 | 未提供 | 未提供 |
operation | 未提供 | 未提供 | 未提供 |
prompt | 未提供 | 未提供 | 未提供 |
resolution | 1k, 2k, 4k | 未提供 | 未提供 |
size | 未提供 | 未提供 | Use the declared resolution and aspect_ratio to select the corresponding output size. size follows the model-specific resolution table; arbitrary pixel dimensions are not declared as a public control. |
Public contract exposes `/v1/images/generations` for text-to-image and image-to-image (reference images through `image`, `image_url` or `image_urls`) and `/v1/images/edits` for image-edit. A request can complete inline or return a poll_url, so the contract stays `inline_or_task` with `/v1/tasks/{id}` as the fixed fallback status path.
定價
Verified 價格用於 Verified,多數模型更便宜;Official 價格是模型廠商公布的價格,用於更穩定的 Official。Auto 按最終完成請求的線路計價。
純文字
每 1M Token- Official 價格
- 輸入 $1.50 / 輸出 $7.50 / 純文字 輸入 $1.50 / 圖片 輸入 $1.50 / 純文字 輸出 $7.50
- Verified 價格
- 輸入 $0.75 / 輸出 $3.75 / 純文字 輸入 $0.75 / 圖片 輸入 $0.75 / 純文字 輸出 $3.75
- 折扣
- -50%
圖片
每 1M Token- Official 價格
- 輸入 $1.50 / 輸出 $30.00 / 純文字 輸入 $1.50 / 圖片 輸入 $1.50 / 純文字 輸出 $7.50 / 圖片 輸出 $30.00
- Verified 價格
- 輸入 $0.75 / 輸出 $15.00 / 純文字 輸入 $0.75 / 圖片 輸入 $0.75 / 純文字 輸出 $3.75 / 圖片 輸出 $15.00
- 折扣
- -50%
| Official 價格每 1M Token | Verified 價格每 1M Token | 折扣 | |
|---|---|---|---|
| 純文字 | 輸入 $1.50 / 輸出 $7.50 / 純文字 輸入 $1.50 / 圖片 輸入 $1.50 / 純文字 輸出 $7.50 | 輸入 $0.75 / 輸出 $3.75 / 純文字 輸入 $0.75 / 圖片 輸入 $0.75 / 純文字 輸出 $3.75 | -50% |
| 圖片 | 輸入 $1.50 / 輸出 $30.00 / 純文字 輸入 $1.50 / 圖片 輸入 $1.50 / 純文字 輸出 $7.50 / 圖片 輸出 $30.00 | 輸入 $0.75 / 輸出 $15.00 / 純文字 輸入 $0.75 / 圖片 輸入 $0.75 / 純文字 輸出 $3.75 / 圖片 輸出 $15.00 | -50% |
使用量與活動
成功率是請求完成的比例;延遲是一次完整回應所需的時間,P95 表示 95% 的請求在該時間內完成。
用量與可用性
過去 24 小時- 請求數
- 成功率
- P95 延遲
- 總 Token 用量
資料基於彙總的使用者請求,不包含狀態檢查。
直接在 Console 裡試
在 Console 中開啟 Gemini Nano Banana 2.1,並準備好編輯或發送提示詞。
協助我使用 gemini-nano-banana-2.1 透過 /v1/images/generations 執行 text-to-image 建立圖像,並顯示結果、成本與相關限制。
應用情境
適合場景- 文生圖
- 視覺辨識
商品視覺
用幾條提示詞生成活動圖、目錄場景與設計方向。
迭代編輯
基於現有圖片進行編輯與變體創作。
創意測試
比較提示詞結果、輸出數量與回應格式。
同台對比
並排比較回應品質、延遲與價格。
提示詞範例
在柔和藍色漸層背景上,為霧面黑耳機產生一張乾淨的商品圖。
把原圖改成帶自然陰影的高質感電商主視覺。
為開發者工具發布橫幅產生三種視覺方向。
此模型按條件計價,僅憑每月 token 總量無法可靠估算;請按請求規格、快取和適用時段查看詳細定價。
FAQ
Gemini Nano Banana 2.1 的費用是多少?
在 TokenLab 上,Gemini Nano Banana 2.1 價格為 輸入 $0.75 / 輸出 $3.75 每 1M Token。完整明細見上方價格表。 價格因計費單位、規格和用量而異。請在模型的詳細定價中比較相同條件下的費率;單一費率不代表總價。
Gemini Nano Banana 2.1 適合做什麼?
Gemini Nano Banana 2.1 支援 圖生圖, 文生圖, 視覺辨識,您可以直接在 Create 中開啟使用。
我該如何測試 Gemini Nano Banana 2.1?
在 Create 中開啟 Gemini Nano Banana 2.1,即可使用為 /v1/images/generations 準備的範例。
Gemini Nano Banana 2.1 應該使用哪一個端點?
請使用 https://api.tokenlab.sh/v1/images/generations 進行 Gemini Nano Banana 2.1 的呼叫。下方的請求範例展示了對應的程式碼格式。
接入前可以先測試 Gemini Nano Banana 2.1 嗎?
可以。開啟 Console 會為 Gemini Nano Banana 2.1 建立一個預先填好的草稿,登入後提示詞不會遺失,可以直接接著測試。
Gemini Nano Banana 2.1 支援哪些操作?
Gemini Nano Banana 2.1 支援 影像編輯, 圖片轉圖片, 文字生成圖片。請在上方選擇一項操作以查看其端點與請求範例。