Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Note: This model does NOT support: negative_prompt, image (single), image_reference, image_fidelity, human_fidelity, subject_image_list, scene_image, or style_image parameters. Use images for multiple image inputs instead.

prompt
string
required

Image description text, supports Chinese and English. Can use <<<image_1>>>, <<<image_2>>> etc. to reference images from images array

Required string length: 1 - 2500
Example:

"A serene landscape with mountains at sunset"

images
string[]

Reference image URLs or Base64 strings. Simplified flattened parameter. Maximum 10 items.

Maximum array length: 10

Image URL or Base64 encoded data

Minimum string length: 1
Example:
resolution
enum<string>
default:1k

Image resolution. Supports 1K and 2K

Available options:
1k,
2k
Example:

"2k"

aspect_ratio
enum<string>
default:auto

Image aspect ratio. Supports 'auto' for intelligent aspect ratio selection

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

"auto"

n
integer
default:1

Number of images to generate per request

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

1

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.