Authorizations
Please use your API Token for authentication
Body
application/json
Task parameters
Prompt (required, max 5000 characters) - Text description for image generation
Maximum length:
5000Example:
"A surreal painting of a giant banana floating in space, stars and galaxies in the background, vibrant colors, digital art"
Callback URL (optional) - Callback URL for task completion notification
Example:
"https://example.com/callback"
Image size (optional, default 1:1) - Image aspect ratio
Available options:
1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto Example:
"1:1"
Output format (optional) - Image output format
Available options:
png, jpeg Example:
"png"
Response
OK
Task ID
Example:
"01234567-89ab-cdef-0123-456789abcdef"