# Nano banana Text To Image > Generate and edit high-resolution images instantly using natural language—enjoy fast 1-2 second outputs, 95%+ character consistency, advanced style transfer, real-time editing, and mobile-friendly efficiency for creative and professional workflows. ## Overview - **Model ID**: `nano-banana-t2i` - **Category**: image - **Provider**: google - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/3b150969-673b-4e9a-8e8b-85210e8a89e7.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/text-to-image` - **Method**: POST ### Parameters - **`prompt`** (required): Describe in text how the image that need to be generated should appear. - Type: textarea ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/images/text-to-image \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "nano-banana-t2i", "prompt": "A spooky Halloween-themed burger designed with a carved jack-o’-lantern pumpkin as the bun, glowing with fiery light inside. The burger contains multiple juicy beef patties, melted glowing cheese resembling fire, and fresh lettuce. Dark moody background with glowing orange bokeh lights, a wine glass, and a bottle adding to the eerie Halloween atmosphere. Highly detailed, cinematic, dramatic lighting, photorealistic style." }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/images/text-to-image", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "nano-banana-t2i", "prompt": "A spooky Halloween-themed burger designed with a carved jack-o’-lantern pumpkin as the bun, glowing with fiery light inside. The burger contains multiple juicy beef patties, melted glowing cheese resembling fire, and fresh lettuce. Dark moody background with glowing orange bokeh lights, a wine glass, and a bottle adding to the eerie Halloween atmosphere. Highly detailed, cinematic, dramatic lighting, photorealistic style." } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/images/text-to-image", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "nano-banana-t2i", "prompt": "A spooky Halloween-themed burger designed with a carved jack-o’-lantern pumpkin as the bun, glowing with fiery light inside. The burger contains multiple juicy beef patties, melted glowing cheese resembling fire, and fresh lettuce. Dark moody background with glowing orange bokeh lights, a wine glass, and a bottle adding to the eerie Halloween atmosphere. Highly detailed, cinematic, dramatic lighting, photorealistic style." }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/banana-text-to-image/nano-banana-t2i) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)