Skip to main content
POST
Submit an image generation task

Callback Notification

After the video generation task is processed, the service will send a POST request to the callback_url provided in the initiation request.

Structure

integer
Response status code. 0 indicates a successful callback transmission.
string
Response message, usually “ok”.
string
The type of the task. Enum: image_generate.
object
The payload containing the generation results.

Callback Example

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

Text prompt for image generation (required).

Maximum string length: 1000
reference_images
string<uri>[]

Optional list of reference image URLs. Max 5 images, each under 20MB. Supported formats: JPG, JPEG, PNG, BMP, WebP, GIF. Excess items are silently truncated to 5.

Maximum array length: 5
module
enum<string>
default:std

Generation mode. std = Standard Model (default), pro = Pro Model.

Available options:
std,
pro
generate_count
integer
default:1

Number of images to generate. Each produces a separate task ID.

Required range: 1 <= x <= 8
image_quality
enum<string>
default:2K

Output image quality / resolution tier.

Available options:
1K,
2K,
4K
image_ratio
enum<string>
default:9:16

Output image aspect ratio.

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

Response

Task submitted successfully, or a business-level error occurred.

code
integer
required

Business status code. 0 indicates success; non-zero indicates an error.

msg
string
required

Status message. ok on success; error description on failure.

data
object

Business data payload. Omitted or null on error responses.