Kling
Kling models are called through one unified, asynchronous job API. Start a task with POST /api/generate, then poll GET /api/generate/{taskId} until it finishes. This family exposes 15 endpoints.
Overview
Every endpoint shares the same envelope — only model and the input fields change. Run any from the Models Market playground.
Authentication
Create an API key at /api-keys, then send it as a Bearer token. Requests from the browser while logged in also work via the session cookie.
Authorization: Bearer <YOUR_API_KEY>Create Task
POST https://api.lithovas.com/api/generateBody: { "model": "<slug>", "input": { … } }
Response: { "taskId": "<id>", "state": "waiting" }
Query Result
GET https://api.lithovas.com/api/generate/<taskId>Response: { "taskId", "state": "waiting" | "success" | "fail", "resultUrls": [ … ], "creditsConsumed", "failMsg", "balance" }
state becomes success or fail. Failed tasks are not billed.Endpoints
| Model | Task | model slug |
|---|---|---|
| Kling | Text to Video | kling/text-to-video |
| Kling | Image to Video | kling/image-to-video |
| Kling V25 Turbo | Image to Video | kling/v25-turbo-image-to-video-pro |
| Kling V25 Turbo | Text to Video | kling/v25-turbo-text-to-video-pro |
| Kling | Lip Sync | kling/ai-avatar-standard |
| Kling | Lip Sync | kling/ai-avatar-pro |
| Kling V2 1 Master | Image to Video | kling/v2-1-master-image-to-video |
| Kling V2 1 Master | Text to Video | kling/v2-1-master-text-to-video |
| Kling V2 1 Pro | Image to Video | kling/v2-1-pro |
| Kling V2 1 Standard | Image to Video | kling/v2-1-standard |
| Kling | Image to Video | kling/motion-control |
| Kling | Image to Video | kling/motion-control-v3 |
| Kling 3.0 | Image to Video | kling/kling-3-0 |
| Kling V3 Turbo | Text to Video | kling/v3-turbo-text-to-video |
| Kling V3 Turbo | Image to Video | kling/v3-turbo-image-to-video |
Kling · Text to Video
kling/text-to-videopromptstringrequiredText prompt for video generation (max 1000 chars)
soundbooleanrequiredSpecifies whether the generated video contains audio
aspect_ratioenum<string>requiredDefines the video aspect ratio
durationenum<string>requiredVideo duration in seconds
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/text-to-video",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"sound": false,
"aspect_ratio": "1:1",
"duration": "5"
}
}'Kling · Image to Video
kling/image-to-videopromptstringrequiredText prompt for video generation (max 1000 chars)
image_urlsarray<string>requiredImage URLs for video generation; max 1 file, JPEG/PNG, max 10MB
soundbooleanrequiredSpecifies whether the generated video contains audio
durationenum<string>requiredVideo duration in seconds
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_urls": [
"https://example.com/input.jpg"
],
"sound": false,
"duration": "5"
}
}'Kling V25 Turbo · Image to Video
kling/v25-turbo-image-to-video-propromptstringrequiredText prompt describing the video to generate (max 2500 chars)
image_urlstringrequiredURL of the image to be used for the video (max 10MB)
tail_image_urlstringoptionalTail frame image of video (max 10MB)
durationenum<string>optionalThe duration of the generated video in seconds
negative_promptstringoptionalElements to exclude from the video (max 500 chars)
cfg_scalenumberoptionalCFG scale controlling adherence to prompt (0-1, step 0.1)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v25-turbo-image-to-video-pro",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"tail_image_url": "https://example.com/input.jpg",
"duration": "5",
"negative_prompt": "example",
"cfg_scale": 0.5
}
}'Kling V25 Turbo · Text to Video
kling/v25-turbo-text-to-video-propromptstringrequiredText description of video to generate (max 2500 chars)
durationenum<string>optionalGenerated video length in seconds
aspect_ratioenum<string>optionalVideo frame aspect ratio
negative_promptstringoptionalElements to avoid in generation (max 2500 chars)
cfg_scalenumberoptionalGuidance scale controlling prompt adherence (0-1, step 0.1)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v25-turbo-text-to-video-pro",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "example",
"cfg_scale": 0.5
}
}'Kling · Lip Sync
kling/ai-avatar-standardimage_urlstringrequiredURL of the image to use as your avatar (JPEG/PNG, max 10MB)
audio_urlstringrequiredURL of the audio file (MP3/WAV/AAC/M4A/OGG, max 100MB, 5min)
promptstringrequiredText direction for video generation (max 5000 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/ai-avatar-standard",
"input": {
"image_url": "https://example.com/input.jpg",
"audio_url": "https://example.com/reference.mp3",
"prompt": "A cinematic red panda surfing through neon rain at dusk."
}
}'Kling · Lip Sync
kling/ai-avatar-proimage_urlstringrequiredURL of image file to use as avatar (JPEG/PNG, max 10MB)
audio_urlstringrequiredURL of audio file for speech (MP3/WAV/AAC/MP4/OGG, max 100MB, 5min)
promptstringrequiredText prompt for video generation (max 5000 chars)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/ai-avatar-pro",
"input": {
"image_url": "https://example.com/input.jpg",
"audio_url": "https://example.com/reference.mp3",
"prompt": "A cinematic red panda surfing through neon rain at dusk."
}
}'Kling V2 1 Master · Image to Video
kling/v2-1-master-image-to-videopromptstringrequiredText describing the video to generate (max 5000 chars)
image_urlstringrequiredURL of image for video generation (JPEG/PNG, max 10MB)
durationenum<string>optionalDuration of generated video in seconds
negative_promptstringoptionalElements to exclude from video generation (max 500 chars)
cfg_scalenumberoptionalGuidance scale controlling prompt adherence (0-1, step 0.1)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v2-1-master-image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"duration": "5",
"negative_prompt": "example",
"cfg_scale": 0.5
}
}'Kling V2 1 Master · Text to Video
kling/v2-1-master-text-to-videopromptstringrequiredText describing the video to generate (max 5000 chars)
durationenum<string>optionalGenerated video length in seconds
aspect_ratioenum<string>optionalVideo frame aspect ratio
negative_promptstringoptionalElements to avoid in video (max 500 chars)
cfg_scalenumberoptionalGuidance scale adherence to prompt (0-1, step 0.1)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v2-1-master-text-to-video",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "example",
"cfg_scale": 0.5
}
}'Kling V2 1 Pro · Image to Video
kling/v2-1-propromptstringrequiredText prompt describing the video to generate (max 5000 chars)
image_urlstringrequiredURL of the image to be used for the video (max 10MB)
durationstringoptionalDuration of the generated video in seconds
negative_promptstringoptionalTerms to avoid in the generated video (max 500 chars)
cfg_scalenumberoptionalCFG scale measuring adherence to prompt (0-1, step 0.1)
tail_image_urlstringoptionalURL of the image for the end of the video (max 10MB)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v2-1-pro",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"duration": "5",
"negative_prompt": "example",
"cfg_scale": 0.5,
"tail_image_url": "https://example.com/input.jpg"
}
}'Kling V2 1 Standard · Image to Video
kling/v2-1-standardpromptstringrequiredText prompt describing the desired video content (max 5000 chars)
image_urlstringrequiredURL of the image to be used for the video (max 10MB)
durationstringoptionalLength of generated video in seconds
negative_promptstringoptionalElements to avoid in the generated video (max 500 chars)
cfg_scalenumberoptionalGuidance scale controlling prompt adherence (0-1, step 0.1)
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v2-1-standard",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_url": "https://example.com/input.jpg",
"duration": "5",
"negative_prompt": "example",
"cfg_scale": 0.5
}
}'Kling · Image to Video
kling/motion-controlpromptstringoptionalText description of desired output (max 2500 chars)
input_urlsarray<string>requiredSingle image URL showing subject's head, shoulders, torso
video_urlsarray<string>requiredSingle video URL (3-30s) showing subject's head, shoulders, torso
character_orientationstringrequiredCharacter orientation: image for picture pose or video for video pose
modestringrequiredOutput resolution: 720p or 1080p
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/motion-control",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"input_urls": [
"https://example.com/file"
],
"video_urls": [
"https://example.com/reference.mp4"
],
"character_orientation": "image",
"mode": "720p"
}
}'Kling · Image to Video
kling/motion-control-v3promptstringoptionalText prompt (0-2500 chars) to guide animation generation
input_urlsarray<string>requiredURL of the reference image showing the subject
video_urlsarray<string>requiredURL of the motion video defining the motion pattern
modestringoptionalVideo quality: std (720p) or pro (1080p)
character_orientationstringoptionalReference for character orientation (video recommended)
background_sourcestringoptionalBackground source selection
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/motion-control-v3",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"input_urls": [
"https://example.com/file"
],
"video_urls": [
"https://example.com/reference.mp4"
],
"mode": "std",
"character_orientation": "video",
"background_source": "input_video"
}
}'Kling 3.0 · Image to Video
kling/kling-3-0promptstringoptionalVideo generation prompt (single-shot mode)
image_urlsarray<string>optionalFirst/last frame image URLs for reference
soundbooleanoptionalEnable/disable sound effects for video
durationstringrequiredTotal video duration in seconds (3-15)
aspect_ratiostringoptionalVideo aspect ratio; auto-adapts if images provided
modestringoptionalGeneration mode controlling resolution output
multi_shotsbooleanoptionalEnable multi-shot mode for multiple shots
multi_promptarray<object>optionalShot array with prompt/duration (multi-shot mode)
kling_elementsarray<object>optionalReferenced elements (images/video/audio) max 3
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/kling-3-0",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_urls": [
"https://example.com/input.jpg"
],
"sound": false,
"duration": 5,
"aspect_ratio": "16:9",
"mode": "pro",
"multi_shots": false,
"multi_prompt": [],
"kling_elements": []
}
}'Kling V3 Turbo · Text to Video
kling/v3-turbo-text-to-videopromptstringrequiredText description of the video to generate (max 2500 chars)
durationstringrequiredDuration of generated video in seconds (3s-15s range)
aspect_ratiostringrequiredAspect ratio of the generated video frame
resolutionstringrequiredResolution of the generated video
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v3-turbo-text-to-video",
"input": {
"prompt": "A cinematic red panda surfing through neon rain at dusk.",
"duration": 5,
"aspect_ratio": "16:9",
"resolution": "720p"
}
}'Kling V3 Turbo · Image to Video
kling/v3-turbo-image-to-videopromptstringrequiredText prompt describing the video to generate (max 2500 chars)
image_urlsarray<string>requiredURL of image for video (JPEG/PNG, max 10MB)
durationstringoptionalVideo duration in seconds (3s-15s range)
resolutionstringoptionalOutput video resolution
curl -X POST https://api.lithovas.com/api/generate \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v3-turbo-image-to-video",
"input": {
"prompt": "Animate the image with natural motion, subtle camera movement, and cinematic lighting.",
"image_urls": [
"https://example.com/input.jpg"
],
"duration": 5,
"resolution": "720p"
}
}'