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": "vibrantlysharp style, animeniji, 3pic vist4, a female dragonborn sentinel clad in ancient obsidian armor carved from her own scales, with a ceremonial wrap lined in glowing red runes flowing from her waist, towering under a broken moon, blue embers curling off her horned crown, her golden eyes glowing softly through the shadows of a craggy battlefield.","aspect_ratio": "1920:1080","model_id": "gen4_image","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 | prompt |
| Aspect ratio | aspect_ratio | The proportional relationship between the width and height of an image. It's expressed as width:height (e.g., 16:9). It helps determine how the output will appear — square, vertical, or widescreen. |
| Model | model_id | Model |
