
Create images from concise prompts
Collect a clear visual brief, select an aspect ratio and return the requested output format.
Build a compact generation and editing flow with up to ten references, automatic ratio selection, and PNG or JPEG output.
nano-bananaYour generated image will appear here.
Set your inputs, then generate.
Compare this model with endpoints that support the same operation, or continue to a workflow guide built around a specific product requirement.
Nano Banana is a Google image API route for text-to-image and image-to-image requests. Its compact schema focuses on prompt, aspect ratio, output format and reference image URLs, which suits applications that do not need to expose a separate resolution selector.


Collect a clear visual brief, select an aspect ratio and return the requested output format.

Send one or more supported image URLs with an instruction that states what to change and what to preserve.

Build around aspect ratio and output format when a separate resolution control is not part of the route.
Configure the published inputs, submit an authenticated task, and track the same task ID until the Nano Banana result is ready.
Start from text alone, or attach up to ten image URLs when visual context should guide the request.
Use auto or a published aspect ratio, then choose PNG or JPEG for the returned image.
Validate the prompt and URLs, review the live price, and track the resulting task from your server.
Choose Nano Banana when your interface needs straightforward generation and editing with a small set of output controls. Select Nano Banana 2.1 or Pro instead when the published resolution choices on those routes are required.
Compare published configurations and the calculated cost for one request. Video totals include the selected duration; image totals are calculated per output.
| Configuration | Unit price | One request | 100 requests |
|---|---|---|---|
| image to image · Standard | $0.028 / image | $0.028 | $2.8 |
| text to image · Standard | $0.028 / image | $0.028 | $2.8 |
Review the accepted values and requirements for every published operation before you build the request body.
| Parameter | Accepted values | Requirement |
|---|---|---|
prompt | Text, up to 20000 characters | Required |
aspect_ratio | 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto | Optional |
output_format | png, jpeg | Optional |
| Parameter | Accepted values | Requirement |
|---|---|---|
prompt | Text, up to 20000 characters | Required |
image_urls | Up to 10 URLs | Required |
aspect_ratio | 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto | Optional |
output_format | png, jpeg | Optional |
The current image-to-image route accepts up to ten image URLs with one editing prompt.
No explicit resolution field is published on this route. Compare Nano Banana 2.1 or Pro when 1K, 2K, or 4K selection is required.
Text to Image, Image to Image. The playground shows only priced configurations with a parameter definition. Live availability is checked before enabling submission.
Configure your request, open the API tab, and copy the example. It submits to our task API and polls the returned task ID. Keep your API key on your server.
Read the Nano Banana API reference →Base Nano Banana offers the smallest control surface. Nano Banana 2.1 and Pro add explicit resolution choices; compare their reference limits, aspect ratios, and live prices.
Swipe horizontally to compare every column.
| Model | Provider | Supported modes | Key controls | Published unit price |
|---|---|---|---|---|
| Nano BananaCurrent model | Text to Image, Image to Image | prompt, aspect ratio, output format, image urls | $0.028 / imageView API | |
| Nano Banana 2.1 | Text to Image, Image to Image | prompt, resolution, aspect ratio, output format, image urls | $0.028 / imageView API | |
| Nano Banana Pro | Text to Image, Image to Image | prompt, resolution, aspect ratio, output format, image urls | $0.126 / imageView API | |
| GPT Image 2 | OpenAI | Text to Image, Image to Image | prompt, quality, resolution, aspect ratio, output format | $0.0133 / imageView API |