Text to Image
Image Generation
Text to Image
Generate images from text prompts
POST
Text to Image
Headers
| Header | Type | Required | Description |
|---|---|---|---|
x-api-key | string | Yes | Your API key |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text prompt for image generation (1-8192 characters) |
callback | string | No | Callback URL for task completion notifications |
Example Request
Response
Returns a task object with status “pending”. The task will be processed asynchronously.Use the
job_id to check task status and retrieve the generated images when the task is completed.