kling/kling-2.6-i2v
Kling 2.6 image-to-video.
The body is Kling's own: contents[] with type prompt, first_frame (req; public image URL) and optional last_frame (first + last frame needs settings.resolution 1080p, so it is refused at the default 720p); settings.resolution 720p|1080p (def 720p); settings.duration 5|10 (def 5); settings.audio native|off (def off; native audio needs settings.resolution 1080p); options.watermark_info {enabled: false}. Not accepted: options.callback_url (poll instead), options.external_task_id (the gateway sets its own), options.watermark_info.enabled true (only false is accepted), contents[] types element and voice, bodies over 1 MiB (pass images as URLs).
Unknown fields are rejected.
Served via the relay: POST /v1/kling/generations, poll GET /v1/kling/generations/{job_id}. Per-second pricing by resolution and audio, billed by the relay.
| Slug | kling/kling-2.6-i2v |
| Kind | video |
| Vendor | kling |
| Endpoint | POST /v1/kling/generations |
Charged per job from what the generator reports it rendered — your Logs show the exact figure for each one; see balance and billing.
Calling it
curl https://api.sociaro.com/v1/kling/generations \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/kling-2.6-i2v",
"contents": [
{"type": "prompt", "text": "a paper boat drifts down a rain-soaked street"},
{"type": "first_frame", "url": "https://your-cdn.example.com/first.png"}
]
}'
# then poll the job id it returns:
curl https://api.sociaro.com/v1/kling/generations/JOB_ID \
-H "Authorization: Bearer $SOCIARO_API_KEY"Parameters
Types, ranges, defaults and what each field does — the list below is the names only.
contentssettings.resolutionsettings.durationsettings.audiooptions.watermark_info
Anything not listed here is refused rather than ignored, so a typo fails loudly instead of quietly producing something else.