Skip to main content
POST

Introduction

Nano Banana maps to Google Gemini’s native image generation capability, including Nano Banana (gemini-2.5-flash-image), Nano Banana 2 (gemini-3.1-flash-image, gemini-3.1-flash-image-preview), and Nano Banana Pro (gemini-3-pro-image). When calling the MixRoute native API, use the endpoint POST /v1/models/<model>:generateContent and pass a JSON Payload that follows the Gemini native structure. It supports text-to-image, image-to-image, and multi-image fusion. For complete parameters and multi-model details, see Image generation.

Authentication

Bearer Token, such as Bearer sk-xxxxxxxxxx

Supported Models

Basic Examples

Request Parameters

string
required
The Gemini native (image) model identifier, located in the URL path, such as gemini-3.1-flash-image or gemini-3-pro-image.
array
required
Native conversation or image content list.
object
Generation configuration parameters.
For more parameters and model differences, see Image generation.

Response Format

The API returns a JSON response. Images are embedded in candidates as one or more Base64-encoded inlineData entries: