# Imagen 4 Fast > Generates photorealistic 2K resolution images with superior text rendering, up to 10x faster speed, advanced diffusion architecture, and versatile style and composition controls. ## Overview - **Model ID**: `imagen-4.0-fast-generate` - **Category**: image - **Provider**: google - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/8915ef59-224d-417d-97e0-2f3fce8c34ee.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): Enter Prompt for image generation. Maximum input tokens: 480 tokens - Type: textarea - **`aspect_ratio`** (required): t tells you the shape of an image by comparing its width to its height. For example, 1:1 is square, 3:4 and 4:3 are slightly tall or wide, 9:16 is vertical, and 16:9 is wide - Type: select (options: 1:1, 3:4, 4:3, 9:16, 16:9) ## 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": "imagen-4.0-fast-generate", "prompt": "Ultra-realistic image of a professional office man in smart business attire, standing at the front of a modern conference room, giving a presentation to colleagues seated around a table. A large screen behind him displays charts and graphs, while attendees listen attentively with laptops and notebooks open. Bright daylight shines through tall glass windows, city skyline in the background, cinematic corporate atmosphere, hyper-detailed, 8K UHD, professional business setting", "aspect_ratio": "1:1" }' ``` ### 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": "imagen-4.0-fast-generate", "prompt": "Ultra-realistic image of a professional office man in smart business attire, standing at the front of a modern conference room, giving a presentation to colleagues seated around a table. A large screen behind him displays charts and graphs, while attendees listen attentively with laptops and notebooks open. Bright daylight shines through tall glass windows, city skyline in the background, cinematic corporate atmosphere, hyper-detailed, 8K UHD, professional business setting", "aspect_ratio": "1:1" } ) 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": "imagen-4.0-fast-generate", "prompt": "Ultra-realistic image of a professional office man in smart business attire, standing at the front of a modern conference room, giving a presentation to colleagues seated around a table. A large screen behind him displays charts and graphs, while attendees listen attentively with laptops and notebooks open. Bright daylight shines through tall glass windows, city skyline in the background, cinematic corporate atmosphere, hyper-detailed, 8K UHD, professional business setting", "aspect_ratio": "1:1" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/imagen-4.0-fast/imagen-4.0-fast-generate) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)