Skip to content

Gemini 3.1 Flash Image (Nano Banana 2) API price

by Google

You pay · per image
Standard image$0.02Large image$0.03
One amount by size; quality does not change it.
Context window64K tokens
Inputs and outputsText · ImagesText · Images
Added to 5abeerOctober 14, 2026

Short answer: Gemini 3.1 Flash Image (Nano Banana 2) images start at $0.02 each on 5abeer, against $0.067 on Google's official pricing page (checked October 13, 2026). Call it at https://api.5abeer.ai/v1beta with the model id gemini-3.1-flash-image.

Price checked on October 13, 2026 · Source: Google

Pricing

One amount for each image generated, by its size, in US dollars.

SizeYou pay per imageFrom plan limitsOfficial price
Standard imageUp to 1024 px on the longest side$0.02$0.20$0.067
Large imageUp to 2048 px on the longest side$0.03$0.20$0.101
Extra-large imageOver 2048 px$0.06$0.30$0.151
  • The amount comes off your balance for each image generated.
  • In the plans, each image counts against your plan limits (the 5-hour and the weekly limit) at this value.
  • Quality does not change our amount: a low- and a high-quality image cost the same; the official price changes with it.
  • A request that names no size, or names it in a form we do not recognise, is billed as a Large image.
  • The size is the one the request asks for.
  • The × 0.3 rule and the saving do not apply to images: compare an image's price with the official price beside it.
  • Official price checked on October 13, 2026.

How the size you ask for is billed

Size in the requestBilled as
1KStandard image
0.5KLarge image
2KLarge image
4KExtra-large image

Official pricing page

Capabilities

What this model actually does, as its maker publishes it.

  • Reads images
  • Reads files
  • Structured JSON output
  • Searches the web
  • Prompt caching
  • Generates images

Works overGemini GenerateContent

Code

The code you already use: change the base URL and add your key.

curl --request POST "https://api.5abeer.ai/v1beta/models/gemini-3.1-flash-image:generateContent" \
  --header "x-goog-api-key: $KHABEER_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"contents":[{"role":"user","parts":[{"text":"Write a product idea in one sentence."}]}],"generationConfig":{"responseModalities":["TEXT","IMAGE"]}}'

Your key is read from the KHABEER_API_KEY variable, so it never appears in the code. You create the key in the dashboard.

Works in

This model works through the API only: from your code or any app that accepts an API key.

In plans

This model is included in the Bundle subscriptions; its use counts against your plan limits.

See the plans

FAQ

How much is Gemini 3.1 Flash Image (Nano Banana 2) on 5abeer?

$ 0.02 per standard image and $ 0.03 per large image, off your balance; quality does not change it. Google's official price per standard image is $ 0.067.

How large is Gemini 3.1 Flash Image (Nano Banana 2)'s context window?

Up to 64K tokens per request.

How do I call Gemini 3.1 Flash Image (Nano Banana 2) from my code?

Compatible with the Gemini generateContent API for the models that support it. The base URL is https://api.5abeer.ai/v1beta and the model id is gemini-3.1-flash-image.

Is 5abeer part of Google?

5abeer is an independent service, not affiliated with OpenAI, Anthropic or Google.

Ready to start?

Create a key and send your first request to Gemini 3.1 Flash Image (Nano Banana 2).