Use Gemini / Nano Banana image editing features through the OpenAI Images API
Content updated: 2026-09-28
Gemini Image Editing
POST /v1/images/generations
Gemini / Nano Banana image editing is standardized on Crazyrouter via the OpenAI Images compatible entry. The image_input URL is used by default; accounts specified for grayscale also support dataURL, raw Base64, and /v1/images/edits multipart three-image editing.
Requests such as image editing and multiple reference images usually take longer. For production integration, please use the primary supported routing, https://api.crazyrouter.com/v1, with the complete endpoint being https://api.crazyrouter.com/v1/images/generations.
Current Recommendations
New integrations should preferably use nano-banana-2 or nano-banana-pro
For image input, use image_input, submitting a URL or an array of URLs
Do not submit native Gemini fields, such as generationConfig, imageConfig, imageOutputOptions
It is recommended to set client timeout to 180 seconds or more
Request Template
Below is the minimal request for editing a reference image via the unified Images API: