KlingAI Avatar 2.0 Pro
KlingAI Avatar 2.0 Pro builds on the Standard version with higher visual fidelity, smoother motion, and improved expressivity. It generates up to five-minute avatar videos from a single image and audio track, with enhanced detail and production-ready results for varied character types.
API Options
Platform-level options for task execution and delivery.
-
taskType
string required value: videoInference -
Identifier for the type of task being performed
-
taskUUID
string required UUID v4 -
UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.
-
outputType
string default: URL -
Video output type.
Allowed values 1 value
-
outputFormat
string default: MP4 -
Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.
- `MP4`: Widely supported video container (H.264), recommended for general use.
- `WEBM`: Optimized for web delivery.
- `MOV`: QuickTime format, common in professional workflows (Apple ecosystem).
Allowed values 3 values
-
outputQuality
integer min: 20 max: 99 default: 95 -
Compression quality of the output. Higher values preserve quality but increase file size.
-
webhookURL
string URI -
Specifies a webhook URL where JSON responses will be sent via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.
Learn more 1 resource
- Webhooks PLATFORM
- Webhooks
-
deliveryMethod
string default: async -
Determines how the API delivers task results.
Allowed values 1 value
- Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.
Learn more 1 resource
- Task Polling PLATFORM
-
uploadEndpoint
string URI -
Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.
Common use cases:
- Cloud storage: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- CDN integration: Upload to content delivery networks for immediate distribution.
// S3 presigned URL for secure upload https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600 // Google Cloud Storage presigned URL https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789 // Custom storage endpoint https://storage.example.com/uploads/generated-image.jpgThe content data will be sent as the request body to the specified URL when generation is complete.
-
safety
object -
Content safety checking configuration for video generation.
Properties 2 properties
-
safety»checkContentcheckContent
boolean default: false -
Enable or disable content safety checking. When enabled, defaults to
fastmode.
-
safety»modemode
string default: none -
Safety checking mode for video generation.
Allowed values 3 values
- Disables checking.
- Checks key frames.
- Checks all frames.
-
-
ttl
integer min: 60 -
Time-to-live (TTL) in seconds for generated content. Only applies when
outputTypeisURL.
-
includeCost
boolean default: false -
Include task cost in the response.
-
numberResults
integer min: 1 max: 4 default: 1 -
Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
Inputs
Input resources for the task (images, audio, etc). These must be nested inside the inputs object.
inputs object. Generation Parameters
Core parameters for controlling the generated content.
-
model
string required value: klingai:avatar@2.0-pro -
Identifier of the model to use for generation.
Learn more 3 resources
-
positivePrompt
string min: 1 max: 2500 -
Text prompt describing elements to include in the generated output.
Learn more 2 resources
Midnight Broadcast Chess Commentator
{
"taskType": "videoInference",
"taskUUID": "f3dc68b4-022e-4c23-bb4f-00e7095f2ed1",
"model": "klingai:avatar@2.0-pro",
"positivePrompt": "Photoreal talking-head avatar video of a charismatic chess commentator hosting a late-night strategy segment, vertical studio composition, refined broadcast look, precise lip sync, lively but controlled facial expressions, subtle head movement, natural blinking, confident presenter posture, premium camera clarity, smooth motion, detailed skin texture, polished cinematic lighting with cool highlights and warm accent rim light, engaging professional delivery, elegant dark background with softly glowing analysis screens and abstract chess diagrams",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/66fceed7-ae79-4ecd-9433-58b43024a937.jpg",
"audio": "https://assets.runware.ai/assets/inputs/7f471422-0739-4fc7-9e98-6b85f406f4a0.mp3"
}
}{
"taskType": "videoInference",
"taskUUID": "f3dc68b4-022e-4c23-bb4f-00e7095f2ed1",
"videoUUID": "267a2bde-25e5-48bc-9c2d-2823a2abe887",
"videoURL": "https://vm.runware.ai/video/os/a15d18/ws/5/vi/267a2bde-25e5-48bc-9c2d-2823a2abe887.mp4",
"cost": 1.20634
}Eccentric Clockmaker Studio Portrait
{
"taskType": "videoInference",
"taskUUID": "372818f9-3159-4661-b351-c96da48be132",
"model": "klingai:avatar@2.0-pro",
"positivePrompt": "A production-quality talking avatar video of an eccentric clockmaker delivering a reflective monologue directly to camera. Preserve the reference character identity with sharp facial detail, natural lip sync, nuanced eye movement, believable blinking, gentle head turns, slight shoulder shifts, and restrained hand gestures near the torso. Background shows a richly detailed workshop filled with antique clocks, pinned engineering sketches, brass tools, and warm practical lighting. Mood is intelligent, whimsical, and intimate, with polished realism and smooth motion suitable for a premium character performance.",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/f787f548-b2f4-47be-acec-df0838d8f02f.jpg",
"audio": "https://assets.runware.ai/assets/inputs/d63abb07-9256-4740-b07a-3e15593d1628.mp3"
}
}{
"taskType": "videoInference",
"taskUUID": "372818f9-3159-4661-b351-c96da48be132",
"videoUUID": "24b248cc-455f-4646-9246-b7895f5222a4",
"videoURL": "https://vm.runware.ai/video/os/a15d18/ws/5/vi/24b248cc-455f-4646-9246-b7895f5222a4.mp4",
"cost": 1.29917
}Weathered Radio Host Portrait
{
"taskType": "videoInference",
"taskUUID": "ede6f291-faa4-495c-a596-77e4c0d58102",
"model": "klingai:avatar@2.0-pro",
"positivePrompt": "Create a premium vertical avatar video of a seasoned radio presenter speaking directly to camera. Preserve the identity from the source portrait with realistic skin detail, precise lip synchronization, nuanced eyebrow motion, natural blinking, subtle head turns, and relaxed shoulder movement. Maintain a polished broadcast aesthetic with warm amber highlights, crisp focus on the face, gentle falloff in the background, and professional presenter energy. The performance should feel intelligent, engaging, slightly dry-humored, and production-ready.",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/95ce742a-2fdd-4b60-ac0c-8d0a591981a4.jpg",
"audio": "https://assets.runware.ai/assets/inputs/75505355-198c-42d6-bd8d-57d26d64af02.mp3"
}
}{
"taskType": "videoInference",
"taskUUID": "ede6f291-faa4-495c-a596-77e4c0d58102",
"videoUUID": "160d3084-08f8-4bfe-8e45-be0e1e2febaa",
"videoURL": "https://vm.runware.ai/video/os/a12d13/ws/5/vi/160d3084-08f8-4bfe-8e45-be0e1e2febaa.mp4",
"cost": 1.29917
}Brass Clockmaker Portrait Study
{
"taskType": "videoInference",
"taskUUID": "f7d8bc1a-6e56-430f-86d4-284efd32412d",
"model": "klingai:avatar@2.0-pro",
"positivePrompt": "A refined talking-avatar performance of a meticulous old-world clockmaker addressing the viewer directly. Preserve the exact identity, wardrobe, and workshop setting from the source image. Emphasize precise lip sync, subtle eyebrow motion, natural blinking, gentle head tilts, small shoulder shifts, and believable breathing. Rich facial texture, polished brass highlights, crisp focus on the face, smooth professional motion, authentic eye contact, dignified and intelligent demeanor, warm handcrafted atmosphere, premium cinematic realism.",
"inputs": {
"image": "https://assets.runware.ai/assets/inputs/bb7bb8f2-0f77-48ca-bc0e-a9188da519b3.jpg",
"audio": "https://assets.runware.ai/assets/inputs/ad36f542-2eb0-412e-b3a6-a1b4a3b50e52.mp3"
}
}{
"taskType": "videoInference",
"taskUUID": "f7d8bc1a-6e56-430f-86d4-284efd32412d",
"videoUUID": "890e103b-e714-4571-a10d-daa1e30a2c53",
"videoURL": "https://vm.runware.ai/video/os/a20d05/ws/5/vi/890e103b-e714-4571-a10d-daa1e30a2c53.mp4",
"cost": 1.9488
}