This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the generation results.
Request Headers
Supports:
application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
The positive prompt for the generation.
The size of the generated media in pixels (width*height). Range [256 ~ 1536 per dimension]. Default is
1024*1024
.The random seed to use for the generation. -1 means a random seed will be used. Range [-1 ~ 2147483647]. Default is
-1
.Response
Use the task_id to request the Task Result API to retrieve the generated outputs.