Endpoint
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 containing the task information.Authorizations
API key for authentication
Body
application/json
Text prompt for image generation (1-8192 characters)
Required string length:
1 - 8192Callback URL for task completion notifications
Response
200
Task created successfully