| 参数 | 默认 | 说明 |
|---|---|---|
frame_count | 9 | 整数 2–16。 |
frame_duration_ms | 200 | 每帧时长,整数毫秒,最小 20,按 10 ms 取整。 |
size | auto | 单帧像素尺寸,宽高为 16 的倍数;省略或传 auto 时当前为 512×512。不能传 1:1 等比例名。 |
output_format 为 gif 时提交以上字段。选 svg 时改用 svg.model。512x512 可用于全部 2–16 帧;768x768 最多 12 帧。1024x1024 即使只有 2 帧也会超出拼图单边上限。callBackUrl 参数,在任务完成时接收回调通知,而不是轮询任务状态。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/flare-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": "3f2b8c61d0e94a7b8c5d6e7f80912a3b"
}
}