Images¶
Generate images from text prompts using AI image generation models.
Endpoint¶
Request Body¶
| Parameter | Type | Required | Description |
|---|---|---|---|
model |
string | Model ID (e.g. dall-e-3, dall-e-2). Default varies. |
|
prompt |
string | ✅ | Text description of the desired image |
n |
integer | Number of images to generate (1–10). Default: 1 | |
size |
string | Image size: 256x256, 512x512, 1024x1024, 1792x1024, 1024x1792 |
|
quality |
string | standard or hd (DALL·E 3 only) |
|
style |
string | vivid or natural (DALL·E 3 only) |
|
response_format |
string | url (default) or b64_json |
Example¶
Response¶
{
"created": 1723456789,
"data": [
{
"url": "https://...",
"revised_prompt": "A breathtaking futuristic city..."
}
]
}
Image URLs are temporary
Generated image URLs expire after approximately 1 hour. Download and store images if you need them long-term.