| 1K | 2K | 4K | |
|---|---|---|---|
| 官方, 每張 | US$0.0336 | US$0.0504 | US$0.1134 |
| HaryAI, 每張 | US$0.0168 | US$0.0252 | US$0.0567 |
以美元計,失敗嘅請求唔收錢。
出圖效果






規格
- 模型名
- gemini-nano-banana-2.1
- 尺寸
- 1K、2K、4K,常見比例都支援
- 調用格式
- OpenAI 圖片接口(POST /v1/images/generations)、Gemini 原生接口(generateContent),或者 OpenAI 對話接口(/v1/chat/completions)
開始使用
直接調用 API
curl https://api.haryai.com/v1beta/models/gemini-nano-banana-2.1:generateContent \
-H "x-goog-api-key: $HARYAI_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"role": "user", "parts": [{"text": "A cup of green tea on a wooden table by a window, morning light"}]}],
"generationConfig": {"responseModalities": ["IMAGE"], "imageConfig": {"aspectRatio": "16:9", "imageSize": "2K"}}
}'curl https://api.haryai.com/v1/images/generations \
-H "Authorization: Bearer $HARYAI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-nano-banana-2.1",
"prompt": "A cup of green tea on a wooden table by a window, morning light",
"size": "1536x1024"
}'curl https://api.haryai.com/v1/images/edits \
-H "Authorization: Bearer $HARYAI_KEY" \
-F model=gemini-nano-banana-2.1 \
-F "prompt=Make the cup bright red, keep everything else the same." \
-F "image=@tea.png"
原圖

改完
常見問題
點解實際扣錢比表入面高少少?
Nano Banana 2.1 出圖之前會先諗,諗嘢用嘅 token 按文字輸出計錢。2K 嘅圖大約多圖片價嘅一成。
用 Nano Banana 2.1 定 2?
新用嘅話揀 2.1。佢係 Google 用嚟接替 2 嘅模型,每個尺寸都比 2 平。Nano Banana 2 留畀已經用緊嘅人。







