XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateDigital HumansCreative AgentModel catalogueMarketTopicsPriceDocs
Model catalogueNano Banana 2

Nano Banana 2

NEW

Model ID

Put this value in the request body's `model` field — not the display name above.

Image generationClosed source

by Google · Google Gemini 3.1 Flash Image (Nano Banana 2). Text-to-image and image-to-image (reference-image editing).

Try it now

Quick start

EndpointPOST /v1/images/generations
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://api.dflop.top/v1
cURL
curl https://api.dflop.top/v1/images/generations \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana-2",
    "prompt": "一只在竹林里喝茶的熊猫,水彩风格",
    "size": "2048x2048",
    "n": 1
  }'

# 图生图:再加 "image": ["https://.../ref.jpg"](参考图按张另计费)
# 返回的图片 URL 是上游预签名链接,约 24 小时过期 —— 请尽快转存

Pricing

Billed per output image: a request generating n images is billed at unit price × n.

Rates
per image 18Credits
Settlement
Settled once on success against the images actually returned (no hold, no difference to refund)
  • Before submitting we only check that your balance covers unit price × n — nothing is held. You are charged once, on success, for the images actually returned; failures are not billed.
  • Returned image URLs are upstream presigned links that expire in about 24 hours — re-host them promptly.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Image generation
Endpoint family
Image generation (Images)
Released
2025-11-01
License
Closed source

Try it

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 workbench

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Nano Banana 2→✓ nano-banana-2

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The 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

More models from this vendor

Gemini 3.1 Progemini-3.1-pro-lowGemini 3.1 Pro Preview 1020gemini-3.1-pro-preview-1020Gemini 3.8 Flashgemini-3.8-flashGemini 3.8 Flash-nxgemini-3.8-flash-nxGemini 4 Argongemini-4-argonGemini 4 Argon-nxgemini-4-argon-nx
Try it

Nano Banana 2 FAQ

How do I call Nano Banana 2?
Set the model field of the request body to nano-banana-2, send it to https://api.dflop.top/v1/images/generations, and put your key (it starts with sk-gpushare-) in the Authorization: Bearer header. This is not a chat SKU; submit tasks to the dedicated endpoint above.
How much does the Nano Banana 2 API cost?
  • ·Per output image: 18 credits (≈ ¥0.3 / ≈ $0.045)
  • ·Prices are in credits: 60 credits = ¥1. Each call first holds the most it could cost, then settles on actual usage and refunds the difference.
What can Nano Banana 2 do?
Image generation.

Markdown version of this page (Chinese): /models/nano-banana-2.md

Related

  • All Google models