Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text

Minimum string length: 1
Example:

"A colorful abstract painting with flowing shapes"

aspectRatio
enum<string>
default:1:1

Image aspect ratio (14 options supported)

Available options:
1:1,
1:4,
1:8,
2:3,
3:2,
3:4,
4:1,
4:3,
4:5,
5:4,
8:1,
9:16,
16:9,
21:9
Example:

"1:1"

imageSize
enum<string>

Output image resolution (Flash Lite supports 1K only)

Available options:
1K
Example:

"1K"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.