curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.6",
"prompt": "Cyberpunk city night, slow camera push-in, cinematic",
"seconds": "5",
"metadata": {
"output_config": {
"resolution": "720P",
"aspect_ratio": "16:9"
}
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "kling-2.5-720p",
"status": "queued",
"progress": 0,
"created_at": 1780891541
}Create video
Create a Kling video task.
Path: POST https://api.omniall.ai/v1/videos
Text-to-video vs image-to-video: if image / images / input_reference / metadata.last_frame_* / reference video is present → image-to-video; else text-to-video.
Auth: Authorization: Bearer sk-...
curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-2.6",
"prompt": "Cyberpunk city night, slow camera push-in, cinematic",
"seconds": "5",
"metadata": {
"output_config": {
"resolution": "720P",
"aspect_ratio": "16:9"
}
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "kling-2.5-720p",
"status": "queued",
"progress": 0,
"created_at": 1780891541
}Headers
Bearer API key, e.g. Bearer sk-....
"Bearer sk-..."
Body
Kling create-video body.
Model alias (case-insensitive). Generation: kling-1.0 … kling-3.0-omni, kling-o1. Specialty: kling-identify-face, kling-avatar-720p, kling-avatar-1080p.
"kling-2.5"
Text prompt (required for most scenarios).
Duration in seconds as string, e.g. "5", "10". Highest priority for duration.
"5"
Duration in seconds; ignored if top-level seconds is set.
Size shortcut, e.g. 720x1280, 720P, 1080P. Can imply resolution + aspect ratio.
"720x1280"
Single reference image URL.
Multi reference image URLs (max 3). Prefer images for Omni referenced billing.
3Reference image URL (similar to image).
e.g. pro for motion-control Pro tier.
"pro"
OpenAI-style multimodal content. Text is taken from type=text parts.
Show child attributes
Show child attributes
Kling extended options.
Show child attributes
Show child attributes
Response
Task accepted
"video"
Concrete billing tier name.
queued / pending / processing / in_progress / completed / failed / cancelled
Show child attributes
Show child attributes