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

Required string length: 1 - 5000
Example:

"A cozy flower shop with elegant windows, a beautiful wooden door, and flowers on display"

size
string
default:2K

Output resolution. Preset: 1K, 2K, 4K (4K only for text-to-image, non-sequential). Or custom pixels (format: widthheight, range [768768, 4096*4096])

Example:

"2K"

n
integer

Number of images. Default mode (enable_sequential=false): 1-4, default 4. Sequential mode (enable_sequential=true): 1-12, default 12. Directly affects cost

Required range: 1 <= x <= 12
Example:

1

seed
integer

Random seed for reproducible results

Required range: 0 <= x <= 2147483647
thinking_mode
boolean
default:true

Enable thinking mode for enhanced reasoning and image quality. Only effective when enable_sequential=false (no image input). Increases generation time

enable_sequential
boolean
default:false

Enable sequential mode for generating multiple coherent images (e.g., comic panels, step-by-step illustrations)

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.