Skip to main content
Content updated: 2026-09-18
Do you need to submit and return immediately, then poll later for the image URL? This model supports async image generation: For Gemini, change the path suffix to :asyncGenerateContent; for OpenAI, add the Prefer: respond-async header. The request body does not need to be changed at all.

Nano Banana 2

nano-banana-2 is the public alias for nano-banana-2. On the user side, the OpenAI Images compatible protocol is used uniformly; on the server side, unified parameters such as output_format, output_compression, resolution, aspect_ratio are converted to native Gemini / Vertex requests.
nano-banana-2 belongs to a long-running image model. For production integration, please prioritize using the main receiving line https://api.crazyrouter.com/v1, and the full generation endpoint is https://api.crazyrouter.com/v1/images/generations. Account login, recharge, and control panel still use https://crazyrouter.com.

Model Names

It is recommended to use nano-banana-2 in your client code. If your system has already directly written nano-banana-2, you can continue to use the same /v1/images/generations entry.

Request Parameters

Do not pass Gemini native fields in client requests, such as generationConfig, imageConfig, imageOutputOptions, image_output_options. These fields are automatically generated by Crazyrouter on the server side according to the current upstream protocol.

Text-to-Image Example

Reference Image Editing Example

cURL

Response

The response maintains the OpenAI Images style. By default, data[0].url is preferred for reading; certain compatible channels may return data[0].b64_json.

Migration Instructions

If old code directly calls:
It is recommended to migrate to:
And change Gemini native parameters to unified parameters: