Skip to main content
POST
Generate Image (Pro)

Important Notes

  • Task ID returned in response is used to query task status via the Get Task Details endpoint
  • Callback URL notifications are sent immediately upon task completion

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. Visit API Key Management Page to get your API Key

Usage: Add to request header: Authorization: Bearer YOUR_API_KEY

Note:

  • Keep your API Key secure and do not share it with others
  • If you suspect your API Key has been compromised, reset it immediately in the management page

Body

application/json
prompt
string
required

A text description of the image you want to generate

Example:

"A cute cat is eating."

imageUrls
string<uri>[]

Input images to transform or use as reference (supports up to 8 images)

Maximum array length: 8
Example:
resolution
enum<string>

Resolution of the generated image

Available options:
1K,
2K,
4K
Example:

"2K"

callBackUrl
string<uri>

Callback URL to receive task completion notifications (required)

Example:

"https://example-callback.com"

aspectRatio
enum<string>

Aspect ratio of the generated image

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

"16:9"

Response

200 - application/json

Request successful

code
integer

Response status code

Example:

200

message
string

Response message

Example:

"success"

data
object