現已上線
Google
gemini-3.1-flash-image-preview
Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...
ImageFilesVision131.1KCacheWebSearch
每次請求$0.55
類型Image
端點openai, gemini
能力
視覺快取結構化網路搜尋系統訊息6張圖輸入
模態
輸入
imagetext
輸出
imagetext
快速統計
上下文視窗131.1K
最大輸出32.8K
模式image_generation
分詞器Gemini
效能
正在載入效能資料...
支援的參數
| 參數 | 始終 | 預設值 |
|---|---|---|
| frequency_penalty | - | (不傳送) |
| include_reasoning | - | |
| max_tokens | - | |
| presence_penalty | - | (不傳送) |
| reasoning | - | |
| repetition_penalty | - | (不傳送) |
| response_format | - | |
| seed | - | |
| stop | - | - |
| structured_outputs | - | - |
| temperature | (不傳送) | |
| top_k | - | (不傳送) |
| top_p | (不傳送) |
§ 01
價格
| 每次請求價格 | $0.55/次請求 |
| 上下文視窗 | 131.1K tokens |
| 相容端點 | openai, gemini |
| 供應商 |
§ 02
從您的程式碼呼叫 gemini-3.1-flash-image-preview
將任何 OpenAI 相容 SDK 指向 UnoRouter,並以名稱請求模型。請將 YOUR_API_KEY 換成您儀表板上的真實金鑰。
bash
curl https://api.unorouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
常見問題
gemini-3.1-flash-image-preview 每次請求的費用是多少?
gemini-3.1-flash-image-preview 採每次請求固定收費 $0.55。
我要如何透過 API 使用 gemini-3.1-flash-image-preview?
將請求送至 UnoRouter 的 /v1/chat/completions 端點,並將 model 設為 gemini-3.1-flash-image-preview。任何 OpenAI 相容的用戶端程式庫都可使用。驗證採用標準 Bearer token。
gemini-3.1-flash-image-preview 的上下文視窗是多少?
gemini-3.1-flash-image-preview 支援 131.1K tokens 的上下文視窗,由您的提示詞與模型回應共用。
§ 04