Skip to main content
Content updated: 2026-06-06

Gemini Image Generation

Crazyrouter provides a unified OpenAI Images-compatible entry point for the Gemini image models. Users do not need to call the native Gemini generateContent directly, nor do they need to provide the native Gemini generationConfig.imageConfig.
Gemini image generation is a long-running request. For production integration, please prioritize using the primary routing line https://api.crazyrouter.com/v1, with the complete generation endpoint being https://api.crazyrouter.com/v1/images/generations.
It is recommended to use nano-banana, nano-banana-pro, and nano-banana-2 in your client code. If your system already directly uses nano-banana, nano-banana-pro, or nano-banana-2, you can also continue calling through the same Images API entry.

Request Parameters

Do not send these upstream private fields: generationConfig, imageConfig, imageOutputOptions, image_output_options.

Request Example

The response maintains the OpenAI Images style:

Reference Image Editing

If you do need the native Gemini API format, please refer to Gemini Native Format. But for image generation and editing, we recommend clients consistently use the Images API described on this page.