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
{"model_id": "imagen-3","prompt": "A spooky Halloween-themed burger designed with a carved jack-o’-lantern pumpkin as the bun, glowing with fiery light inside. The burger contains multiple juicy beef patties, melted glowing cheese resembling fire, and fresh lettuce. Dark moody background with glowing orange bokeh lights, a wine glass, and a bottle adding to the eerie Halloween atmosphere. Highly detailed, cinematic, dramatic lighting, photorealistic style.","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 |
|---|---|---|
| Model | model_id | Model to use for generation |
| Prompt | prompt | Text description of the image you want to generate |
