Skip to content

Google nano-banana Image Generation Model

  • 2026.03.04 This site now supports gemini-3.1-flash-image-preview, gemini-3.1-flash-image-preview-2k, and gemini-3.1-flash-image-preview-4k
  • 2025.09.21 This site now supports Google's image generation model nano-banana via the dall-e interface
  • Supports multi-image reference via /v1/images/edits; also supports chat mode — using no more than 2 reference images yields better results

Billing Rules

  • nano-banana: 1000 credits/image
  • nano-banana-hd: 1600 credits/image — HD version of nano-banana, generates 4K high-resolution images
  • fal-ai format: 2000 credits/image (exchange rate 5)
  • 2025.10.11 Due to account risk control issues, fal-ai, ideogram, and replicate prices increased to a 1:5 exchange rate
  • 2025.11.21 Now supports nano-banana-2, nano-banana-2-2k, nano-banana-2-4k at 2400 credits/image
  • 2026.03.04 Now supports gemini-3.1-flash-image-preview at 1000 credits/image, gemini-3.1-flash-image-preview-2k at 1500 credits/image, gemini-3.1-flash-image-preview-4k at 2000 credits/image
  • 2026.04.15 To ensure banana stability, a temporarily higher-cost solution is in use — prices for related models have doubled
ModelCredits/imageAdjusted
nano-banana10002000
nano-banana-hd16003200
nano-banana-224004800
nano-banana-2-2k24004800
nano-banana-2-4k24004800
gemini-3.1-flash-image-preview10002000
gemini-3.1-flash-image-preview-2k15003000
gemini-3.1-flash-image-preview-4k20004000

curl Examples

Text to Image

  • size supports 4x3, 3x4, 16x9, 9x16, 2x3, 3x2 (these are aspect ratios)
  • model supports nano-banana, nano-banana-hd, nano-banana-2, nano-banana-2-2k, nano-banana-2-4k
  • 2026.03.04 New models added: gemini-3.1-flash-image-preview, gemini-3.1-flash-image-preview-2k, gemini-3.1-flash-image-preview-4k
shell
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-replace-with-your-key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana",
    "prompt": "a white siamese cat",
    "n": 1,
    "size": "9x16",
    "quality": "low"
  }'
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-replace-with-your-key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nano-banana",
    "prompt": "a white siamese cat",
    "n": 1,
    "size": "9x16",
    "quality": "low"
  }'

Image to Image

shell
curl -X POST "https://api.openai-hk.com/v1/images/edits" \
  -H "Authorization: Bearer hk-replace-with-your-key" \
  -F "model=nano-banana" \
  -F "image[]=@body-lotion.png" \
  -F "image[]=@bath-bomb.png" \
  -F "image[]=@incense-kit.png" \
  -F "image[]=@soap.png" \
  -F 'prompt=Generate a photorealistic image of a gift basket on a white background labeled "Relax & Unwind" with a ribbon and handwriting-like font, containing all the items in the reference pictures'
curl -X POST "https://api.openai-hk.com/v1/images/edits" \
  -H "Authorization: Bearer hk-replace-with-your-key" \
  -F "model=nano-banana" \
  -F "image[]=@body-lotion.png" \
  -F "image[]=@bath-bomb.png" \
  -F "image[]=@incense-kit.png" \
  -F "image[]=@soap.png" \
  -F 'prompt=Generate a photorealistic image of a gift basket on a white background labeled "Relax & Unwind" with a ribbon and handwriting-like font, containing all the items in the reference pictures'

nano-banana

fal-ai Format (Async)

  • fal-ai/banana, fal-ai/banana/hd, fal-ai/banana/v2, fal-ai/banana/v2/2k, fal-ai/banana/v2/4k — these 5 models are reverse-engineered via the dall-e format
  • The above 2 models are priced at 800 credits/image and 1600 credits/image respectively
  • 2025.10.20 Price adjustment: 1000 credits/image and 1600 credits/image
  • The reverse-engineered 2 models only support num_images = 1
  • Other models such as fal-ai/nano-banana/edit are billed strictly according to fal-ai's exchange rate
  • 2026.03.04 Now supports fal-ai/banana/v3.1/flash at 1000 credits/image, fal-ai/banana/v3.1/flash/2k at 1500 credits/image, fal-ai/banana/v3.1/flash/4k at 2000 credits/image
  • 2026.04.15 To ensure banana stability, a temporarily higher-cost solution is in use — prices for related models have doubled
ModelCredits/imageAdjusted
fal-ai/banana10002000
fal-ai/banana-hd16003200
fal-ai/banana/v224004800
fal-ai/banana/v2/2k24004800
fal-ai/banana/v2/4k24004800
fal-ai/banana/v3.1/flash10002000
fal-ai/banana/v3.1/flash/2k15003000
fal-ai/banana/v3.1/flash/4k20004000
shell
curl --request POST \
  --url https://api.openai-hk.com/fal-ai/nano-banana/edit \
  --header "Authorization: Bearer hk-your-key" \
  --header "Content-Type: application/json" \
  --data '{
  "prompt": "make a photo of the man driving the car down the california coastline",
  "image_urls": [
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png",
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input-2.png"
  ],
  "num_images": 1,
  "aspect_ratio": "3:2",
  "webhook":"https://www.openai-hk.com/test/2025/fal"
}'
curl --request POST \
  --url https://api.openai-hk.com/fal-ai/nano-banana/edit \
  --header "Authorization: Bearer hk-your-key" \
  --header "Content-Type: application/json" \
  --data '{
  "prompt": "make a photo of the man driving the car down the california coastline",
  "image_urls": [
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png",
    "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input-2.png"
  ],
  "num_images": 1,
  "aspect_ratio": "3:2",
  "webhook":"https://www.openai-hk.com/test/2025/fal"
}'

Response

json
{
  "status": "IN_QUEUE",
  "request_id": "551a32da-52b2-4be8-bf2f-bfb7cce2b324",
  "response_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324",
  "status_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324/status",
  "cancel_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324/cancel",
  "queue_position": 0
}
{
  "status": "IN_QUEUE",
  "request_id": "551a32da-52b2-4be8-bf2f-bfb7cce2b324",
  "response_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324",
  "status_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324/status",
  "cancel_url": "https://queue.fal.run/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324/cancel",
  "queue_position": 0
}
  • Retrieve result
shell
curl --request GET \
  --url https://api.openai-hk.com/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324 \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'
curl --request GET \
  --url https://api.openai-hk.com/fal-ai/nano-banana/requests/551a32da-52b2-4be8-bf2f-bfb7cce2b324 \
  --header 'Authorization: Bearer hk-your-key' \
  --header 'Content-Type: application/json'

Response

json
{
  "images": [
    {
      "url": "https://v3.fal.media/files/rabbit/aQEmU4lEKKIIr9cDOChUB.png"
    }
  ]
}
{
  "images": [
    {
      "url": "https://v3.fal.media/files/rabbit/aQEmU4lEKKIIr9cDOChUB.png"
    }
  ]
}

Online Testing

Note

  1. Visit https://banana.ddaiai.com/ (if blocked, try changing the subdomain prefix to suibian)
    2. If it is blocked, you can change the address yourself: https://suibian.ddaiai.com — replace suibian with something else, e.g. https://2025.ddaiai.com

Setup

  • Configure in the corresponding fields shown below
  • OpenAI API Base URL: https://api.openai-hk.com
  • OpenAI API KEY: hk-your-apiKey

cover

Result

Enter your prompt in the input box

Abstractify, optimize the style

Upload a reference image using the image+ button

nano-banana