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": "Ultra-realistic cinematic scene of a man standing on top of a flying airplane, strong wind motion, dramatic clouds, intense action moment. The man is holding and launching a missile from his hands, bright ignition flames, smoke trail, shockwave lighting on his face, detailed clothing movement, photoreal textures, 4K sharpness, dynamic perspective, heroic composition, powerful atmosphere, volumetric light, high-speed realism, dramatic sky, ultra-detailed cinematic action shot.","aspect_ratio": "1:1","model_id": "seedream-4.5","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 |
