Content updated: 2026-09-18
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.
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.