# Seedream 4.0 Text to Image > High-resolution image generator with 2K default and up to 4K output, supports up to 10 reference images, batch creation of 15 images, natural language editing, and multi-image fusion for professional-grade visuals. ## Overview - **Model ID**: `seedream-4` - **Category**: image - **Provider**: byteplus - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/fbaaf79e-08ed-4464-bd6d-2aee33651b39.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): The text prompt for the type of image you want to generate - Type: textarea - **`aspect_ratio`** (required): - Type: select (options: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9) - **`model_id`** (optional): Model ID - Type: text ## 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": "seedream-4", "prompt": "Cinematic shot of a speeding boat cutting through the water, dramatic splashes rising high, crystal-clear droplets glistening in the sunlight, ultra-realistic, wide-angle lens, high definition, dynamic motion blur, golden hour lighting, immersive ocean atmosphere, epic cinematic style.", "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": "seedream-4", "prompt": "Cinematic shot of a speeding boat cutting through the water, dramatic splashes rising high, crystal-clear droplets glistening in the sunlight, ultra-realistic, wide-angle lens, high definition, dynamic motion blur, golden hour lighting, immersive ocean atmosphere, epic cinematic style.", "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": "seedream-4", "prompt": "Cinematic shot of a speeding boat cutting through the water, dramatic splashes rising high, crystal-clear droplets glistening in the sunlight, ultra-realistic, wide-angle lens, high definition, dynamic motion blur, golden hour lighting, immersive ocean atmosphere, epic cinematic style.", "aspect_ratio": "1:1" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/seedream-4.0-t2i/seedream-4) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)