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, supports Chinese and English with text rendering

Required string length: 1 - 800
Example:

"A futuristic city with neon lights at night"

size
string
default:1024*1536

Image size (format: width*height). Freely selectable within constraints

Example:

"1024*1536"

seed
integer

Random seed for reproducible results

Required range: 0 <= x <= 2147483647
Example:

42

prompt_extend
boolean
default:false

Enable intelligent prompt rewriting to enrich the description

Example:

false

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.