Model ID
Put this value in the request body's `model` field — not the display name above.
by Google · Google Gemini 3 Pro Image (Nano Banana Pro).
POST /v1/images/generationshttps://usapi.dflop.top/v1curl https://usapi.dflop.top/v1/images/generations \
-H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana-pro",
"prompt": "一只在竹林里喝茶的熊猫,水彩风格",
"size": "2048x2048",
"n": 1
}'
# 图生图:再加 "image": ["https://.../ref.jpg"](参考图按张另计费)
# 返回的图片 URL 是上游预签名链接,约 24 小时过期 —— 请尽快转存Billed per output image: a request generating n images is billed at unit price × n.
Sign in and any personal discount on your account will show up here. Sign in
Models like this bill for real per image / per second / per call and are mostly async tasks, so there is no one-click test here. Use the sample code above, or generate in the matching workbench (which has a parameter panel and a cost estimate).
Open the workbench404 model_not_foundYou passed the display name instead of the model ID.✗ Nano Banana Pro→✓ nano-banana-pro
→ Copy the Model ID at the top of this page
402 quota_exceededInsufficient account balance. All your API keys share one balance.
401 / 403The API key is invalid, or it has a model allowlist that doesn't include this ID.
→ Check the key's status and allowed models
400 invalid_request`size` is below this SKU's minimum, or `n` exceeds the limit of 10.
→ Check your request body against the sample code above
本页的 Markdown 版本:/models/nano-banana-pro.md