# Gemini 2.5 Flash (nano banana) > Generate photorealistic images and perform precise multi-image blending and natural language-driven edits with low latency and consistent character retention, supporting up to 3,000 images per prompt and multiple aspect ratios. ## Overview - **Model ID**: `nano-banana` - **Category**: image - **Provider**: google - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/38b2d021-1a46-4dd0-a385-926c46135312.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v7/images/image-to-image` - **Method**: POST ### Parameters - **`prompt`** (required): Describe in text how the image that need to be generated should appear. - Type: textarea - **`model_id`** (optional): Model id - Type: text - **`init_image`** (required): - Type: file - **`init_image_2`** (required): - Type: file ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/images/image-to-image \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "nano-banana", "prompt": "girl from image one wearing dress from image two", "init_image": "https://assets.modelslab.com/generations/15ef5a61-7afa-4a94-979b-74fc5ddba0db", "init_image_2": "https://assets.modelslab.com/generations/9f2ffdbc-2df3-49c3-b243-b1b8472ee7b8" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/images/image-to-image", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "nano-banana", "prompt": "girl from image one wearing dress from image two", "init_image": "https://assets.modelslab.com/generations/15ef5a61-7afa-4a94-979b-74fc5ddba0db", "init_image_2": "https://assets.modelslab.com/generations/9f2ffdbc-2df3-49c3-b243-b1b8472ee7b8" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/images/image-to-image", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "nano-banana", "prompt": "girl from image one wearing dress from image two", "init_image": "https://assets.modelslab.com/generations/15ef5a61-7afa-4a94-979b-74fc5ddba0db", "init_image_2": "https://assets.modelslab.com/generations/9f2ffdbc-2df3-49c3-b243-b1b8472ee7b8" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/image-editing/nano-banana) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)