Skip to main content
POST
Poll the returned task URL to retrieve the image. See Query Task Result.

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
skill
enum<string>
required

Select ecommerce for a product detail page or webpage for a webpage design.

Available options:
ecommerce,
webpage
images
(string<uri> | object)[]
required

For webpage, every image must be an object with image_url and reference_type. Use style_refer_image to guide the page's visual style or subject_refer_image for its subject. For ecommerce, each image can be a URL string or an image object. Use public HTTP(S) URLs without credentials, query strings, or fragments.

Minimum array length: 1
prompt
string

Instructions for the layout, style, or content. Provide non-blank text when you include this field.

Pattern: \S
resolution
enum<string>

Output resolution.

Available options:
2k,
4k
length
enum<string>

Optional length for ecommerce.

Available options:
short,
medium,
long

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.