Nano Banana 2 via the Tokenator API
What the model is for
Gemini 3.1 Flash Image Preview, a.k.a. Nano Banana 2, is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed.
Specification
| Full name | Nano Banana 2 |
| API ID | nano-banana-2 |
| Model vendor | Gemini |
| Type | Image generation |
| Context window | — |
| Max output | — |
| Image input | no |
| Tokenator usage multiplier | 1× |
| Input modalities | text |
| Supported API formats | /v1/images/generations |
| Upstream providers | 1 |
| Current status | available |
| Data updated | 2026-08-04 |
Upstream providers
| Provider | Multiplier |
|---|---|
| Media Group #1 | 1× |
A request goes to the first available provider by priority; if it fails, Tokenator switches to the next one.
Example request
curl https://api.tokenator.top/v1/images/generations \ -H "Authorization: Bearer sk-your-tokenator-key" \ -H "Content-Type: application/json" \ -d '{ "model": "nano-banana-2", "prompt": "an isometric illustration of a server rack", "n": 1 }'
See also
FAQ about Nano Banana 2
What is the API ID of Nano Banana 2?
nano-banana-2 — put this into the model field of your request.
What does a generation request look like?
POST to /v1/images/generations with model, prompt and optionally n and size. The format matches the OpenAI Images API — only the base URL and the key change.
How do I set the image size?
With the size field, for example 1024x1024. The available set depends on the model; 2048x2048 is not supported everywhere, and even there the result sometimes comes back smaller — check the actual image.
What does one image cost?
Generations are taken from the key's image quota: one picture — 1×, and with n images per request it is n × the multiplier. See the documentation for details.
Can I edit an existing image?
No — this model only generates images from a prompt.
What comes back in the response?
A data array where each item holds a link to the finished image in the url field. Download the picture and store it on your side — the link is not meant for permanent hosting.