Gemini Image Series
Nano Banana Economy
Nano Banana (Gemini Image) economy routes: fixed per-image pricing for text-to-image and multi-reference editing
POST
Nano Banana Economy
Nano Banana is Google’s Gemini image model line. This page covers the four economy models. They share one set of request parameters and one billing model (a fixed price per successful image) and differ only in aspect ratios, resolutions and line-specific parameters — switching tiers means changing
A successful submission returns a
See Submit a task for
Generated images come back in
model and nothing else. To be billed from actual token usage instead, use Nano Banana Official.
The economy line is not Google’s official API, and the two lines never switch automatically: the model ID selects the line.
Quick start
task_id. Retrieve the result with GET /v1/tasks/{task_id}, wait inline with Prefer: wait, or configure a webhook.
Request parameters
string
required
One of
gemini-3-pro-image-rev, gemini-3.1-flash-image-rev, gemini-3.1-flash-lite-image-rev or gemini-2.5-flash-image-preview-rev.string
default:"generate"
generate— generate from textedit— rewrite from reference images;image_urlsis required
edit; the only difference is how many entries image_urls carries.string
required
Image description or editing instruction, in English or Chinese.
string[]
Reference image URLs. Required for
edit, up to 14 on all four tiers. Reference images carry no extra charge.string
default:"1:1"
Frame ratio. Eleven are shared by all four tiers:
auto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9.gemini-3.1-flash-image-rev additionally supports 1:4, 4:1, 1:8 and 8:1.auto lets the model decide: it picks from the prompt for text-to-image, and follows the input image for edits. On gemini-2.5-flash-image-preview-rev, omitting the parameter also leaves the ratio to the model.string
default:"1k"
Output resolution; the default is
1k on all three tiers that accept it. The tiers each model offers are listed under “Available models”: 1k, 2k and 4k on the flagship tier, 0.5k, 1k, 2k and 4k on the fast tier, and 1k only on the previous-generation tier.gemini-3.1-flash-lite-image-rev does not support this parameter and always outputs 1K; sending it returns 400.integer
default:"1"
Number of images to generate. Value:
1. Each request returns one image.boolean
default:"false"
Search the web for text context before generating. Only
gemini-3.1-flash-image-rev accepts this parameter.boolean
default:"false"
Search the web for reference images; requires
google_search: true. Only gemini-3.1-flash-image-rev accepts this parameter.callback_url, callback_events, Prefer: wait, Idempotency-Key and the maximum-cost header.
Limits
Pricing
Billed at a fixed price per successfully generated image.generate and edit cost the same, reference images add no fee, and aspect ratio, prompt length and web search have no effect on the price — resolution is the only billing dimension, so the cost of a call is known before it is submitted.
The tiers price differently:
Rates are in
price_config on GET /v1/models and in the console’s Model Market. A resolution that price_config.image_prices does not list separately settles at the default price alongside it. What a single call actually cost is the cost field on the task response — an integer quota at 500,000 quota = 1 USD, not dollars.
You are only billed for a successfully generated image. Failed and cancelled tasks, and tasks that return no usable image, are refunded in full.
Response
Completed task
result.images, where url is an array and expires_at is when the link stops working. See Query Task Status for the full field list.
Available models
All four do text-to-image and reference-image editing, one image per request.
- The 11 shared aspect ratios:
auto1:12:33:23:44:34:55:49:1616:921:9 - The fast tier adds four extreme ratios:
1:44:11:88:1, for long horizontal and vertical banners - The lightest tier does not accept
resolutionand always outputs 1K - Up to 14 reference images, the same on all four tiers