API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/images/text-to-image
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"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","model_id": "seedream-4","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | The text prompt for the type of image you want to generate |
| Aspect Ratio | aspect_ratio | Aspect ratio of the generated image |
| Model | model_id | Model ID |
