@first_frame, @keyframe_1, and @last_frame.resolution sets the frame size and dynamic_range sets SDR or HDR; the two are set independently.resolution | dynamic_range | Output (16:9, MP4) |
|---|---|---|
720p | sdr | 1280Γ720 |
1080p | sdr | 1920Γ1080 |
4k | sdr | 3840Γ2160, H.264 8-bit |
1080p | hdr | 1920Γ1080, HEVC 10-bit, BT.2020, HLG |
4k | hdr | 3840Γ2160, HEVC 10-bit, BT.2020, HLG |
720p | hdr | Not supported, returns a parameter error |
4k or hdr task cannot get a result at that spec, the task fails; it never falls back to 1080p SDR.callBackUrl parameter to receive automatic notifications when generation completes, rather than polling the status endpoint.curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "kling-4.0/keyframe-to-video",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "The girl in @first_frame walks out, passes the street in @keyframe_1, and arrives at the party in @last_frame",
"duration": 10,
"resolution": "720p",
"dynamic_range": "sdr",
"first_frame_url": "https://example.com/first.png",
"keyframe_urls": [
"https://example.com/street.png"
],
"last_frame_url": "https://example.com/party.png"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_kling-4.0-keyframe-to-video_abc123"
}
}