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": "A cinematic, photorealistic portrait of a linneafoxx in her early 30s, camping alone in the northern wilderness during early autumn. She sits beside a small, smoldering campfire in a clearing surrounded by golden birch trees and lichen-covered rocks. The sky is overcast, casting a soft, moody light over the scene. Her blonde hair is tied back loosely, a few strands falling naturally around her face. \nHer face is serene but weathered from the elements — ice-blue eyes reflecting the flames, soft freckles dusted across her nose and cheeks, and a natural matte finish on her skin with visible texture from cold air and wind. \nShe wears layered modern camping gear with artisanal detail: a thick earth-toned wool sweater, a waxed canvas jacket in slate grey, and soft cargo trousers tucked into worn hiking boots. Around her shoulders, a neutral-toned blanket scarf flutters in the breeze. Beside her, a weathered backpack leans against a mossy log, and a tin coffee mug rests on a flat stone, steam rising slowly.","model_id": "seedream-t2i","width": "768","height": "1024","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 |
| Model | model_id | Models ID |
| Width | width | Width of the image |
| Height | height | Height of the image |
