| 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. |
output_format is gif. For svg, send svg.model instead. Do not send mask_url with gif or svg.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-image-to-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "restyle as cinematic still",
"input_urls": [
"https://example.com/a.png"
],
"resolution": "1K",
"output_format": "png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "c5d6e7f8091a2b3c4d5e6f708192a3b4"
}
}