Skip to main content
POST
Text to Image

Headers

Request Body

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.

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
text
string
required

Text prompt for image generation (1-8192 characters)

Required string length: 1 - 8192
callback
string<uri>

Callback URL for task completion notifications

Response

Task created successfully