1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/kling-v2-standard-avatar";
const data = {
"image_url": "https://segmind-resources.s3.amazonaws.com/input/74bce37e-151d-4923-a56f-b5f9ce6e5134-601140c8-73e5-4490-8911-e6c7d3dc0e70-infinite_talk_ip.webp",
"audio_url": "https://segmind-resources.s3.amazonaws.com/input/ce1dcce7-c5b1-4cf6-a42f-65bed682a44a-news-reading-small.mp3",
"prompt": "news reporter speaking"
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();URL for video background; use high-res for quality. Ideal for both formal and vibrant settings.
URL for audio background; choose clear audio. Great for instructional or narrative content.
Direction for content creation; specify tone and style. Useful for marketing or storytelling tasks.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Kling Avatar v2 Standard is a generative avatar model that creates a talking-head style video from a source image and a driving audio track. You provide an image_url (the avatar/background frame) and an audio_url (speech or narration), and the model renders a video with lip-sync and expressive facial motion aligned to the audio. An optional prompt lets you steer tone, vibe, and overall presentation.
This model is built for teams who need fast, repeatable avatar video generation for product updates, instructional content, brand messaging, and social clips—without a full production pipeline. It’s especially useful when you want consistent on-camera delivery across many iterations (e.g., weekly release updates).
audio_urlimage_url, audio_url, prompt)audio_url while keeping the same avatar image)Is Kling Avatar v2 Standard text-to-video?
Not directly. It’s primarily image-to-video with audio-driven animation; prompt guides style.
What parameters can I tweak?
image_url (visual quality), audio_url (lip-sync driver), and optional prompt (tone/style).
How is it different from general video generation models?
It’s optimized for talking avatar output—stable identity and speech alignment—rather than open-ended scenes.
What image works best?
High-res, front-facing portraits with neutral background and good lighting.
Can I use it for tutorials or marketing videos?
Yes—common search workflows include “AI avatar generator,” “lip sync video,” and “image and audio to video avatar.”