Authorizations
Please use your API Token for authentication
Body
application/json
Task parameters
Size (required) - Image aspect ratio, must be one of the supported formats
Available options:
1:1, 3:2, 2:3 Example:
"1:1"
File URL list (optional) - File URL list, max 5 images
Example:
[""]Enable enhancement (optional) - Prompt enhancement, default false
Example:
false
Mask URL (optional) - Mask image URL for editing, black areas will be replaced/modified
Example:
""
Number of variants (optional) - Image variant count, options 1, 2 or 4, default 1
Available options:
1, 2, 4 Example:
1
Prompt (optional) - Describe what you want GPT-4o to generate
Example:
"A beautiful sunset over the mountains"
Response
OK
Task ID
Example:
"01234567-89ab-cdef-0123-456789abcdef"