| Parameter | Default | Notes |
|---|---|---|
frame_count | 9 | Integer 2–16. |
frame_duration_ms | 200 | Duration per frame in integer milliseconds. Minimum 20, rounded to 10 ms. |
size | auto | Per-frame pixel size. Width and height must be multiples of 16. Omit or pass auto for 512×512. Do not pass ratio names such as 1:1. |
512x512 works for all 2–16 frames; 768x768 supports at most 12 frames. 1024x1024 exceeds the per-side sheet limit even with only 2 frames.callBackUrl parameter so your service can receive completion notifications instead of polling for task status.curl --location 'https://api.kie.ai/api/v1/jobs/createTask' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2-6/sunburst-text-to-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "A cinematic product photo of a red maple leaf on dark stone, soft side light, shallow depth of field, with a small paper tag that reads \"BATCH 07\".",
"aspect_ratio": "16:9",
"resolution": "1K",
"quality": "medium",
"background": "auto",
"output_format": "png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "b84e1f27c6a3490d9e8f7a6b5c4d3e21"
}
}