Request Headers
Enum:
application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
The prompt to generate an image from.
The images to generate an image from. Limit to a maximum of 4 images.
The guidance scale to use for the generation. Default is 3.5. Range [1.0 ~ 20.0].
The aspect ratio of the generated image.
Enum:
Enum:
21:9
, 16:9
, 4:3
, 3:2
, 1:1
, 2:3
, 3:4
, 9:16
, 9:21
The random seed to use for the generation. Default is -1. -1 means a random seed will be used. Range [-1 ~ 2147483647].
Only supported in text-to-image.
The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. Default is 2.
Enum:
The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive. Default is 2.
Enum:
1
, 2
, 3
, 4
, 5
Response
Use the task_id to request the Task Result API to retrieve the generated outputs.