Flexible parameters
Configure 3 documented parameters, including prompt, source_audio_url, source_image_url.
1080p enhanced lip-sync + facial micro-expressions
curl -X POST https://runapi.ai/api/v1/kling/ai_avatar \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-ai-avatar-pro",
"image_url": "https://cdn.runapi.ai/public/samples/portrait.jpg",
"text": "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
}'
import { KlingClient } from "@runapi.ai/kling";
const client = new KlingClient();
const result = await client.aiAvatar.run({
model: "kling-ai-avatar-pro",
image_url: "https://cdn.runapi.ai/public/samples/portrait.jpg",
text: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/kling/ai_avatar",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"kling-ai-avatar-pro","image_url":"https://cdn.runapi.ai/public/samples/portrait.jpg","text":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/kling/ai_avatar");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'kling-ai-avatar-pro',
'image_url' => 'https://cdn.runapi.ai/public/samples/portrait.jpg',
'text' => 'Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.aiAvatar().run({"model":"kling-ai-avatar-pro","image_url":"https://cdn.runapi.ai/public/samples/portrait.jpg","text":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."});
task.waitForResult();
require "runapi/kling"
client = RunApi::Kling::Client.new
result = client.ai_avatar.run(
model: "kling-ai-avatar-pro",
image_url: "https://cdn.runapi.ai/public/samples/portrait.jpg",
text: "Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.aiAvatar.Run({"model":"kling-ai-avatar-pro","image_url":"https://cdn.runapi.ai/public/samples/portrait.jpg","text":"Create a 10-second video of a person walking through an autumn forest, leaves falling, cinematic camera pan."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model kling-ai-avatar-pro \
--endpoint ai_avatar \
--wait
18 versions available
Pick any model and generate in seconds.
Pick any model and generate in seconds.
| Provider | Kuaishou |
| Model ID | kling-ai-avatar-pro |
| Modality | Video |
| Task types | Asynchronous |
| API endpoint | /api/v1/kling/ai_avatar |
| Billing unit | second |
| Input parameters | callback_url, model, prompt, source_audio_url, source_image_url |
| Catalog status | Operational |
Sign up for free and create an API key for kling-ai-avatar-pro from the dashboard.
POST to /api/v1/kling/ai_avatar with the kling-ai-avatar-pro model slug and your parameters.
Poll the task or follow the callback to retrieve the completed kling-ai-avatar-pro result.
Configure 3 documented parameters, including prompt, source_audio_url, source_image_url.
Exposes 1 public endpoint(s): ai_avatar.
Asynchronous tasks accept a callback URL for completion notifications.
Metered by second with no subscription requirement.
promptDescription of the avatar.
callback_urlWebhook URL for async notifications.
source_audio_urlAudio URL for lip sync.
source_image_urlFace image URL.
Generate product launch clips and short-form ads from a text brief, cutting production from weeks to hours.
Convert lesson scripts into animated explainer videos at scale without a camera or crew.
Produce viral short-form content for social platforms directly from a prompt.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us