1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const axios = require('axios');
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/pixverse-lipsync";
const data = {
"video_url": "https://segmind-inference-inputs.s3.amazonaws.com/60bf2999-263a-4927-9fa7-f7baa9017188-e1101c56-6f75-4879-9783-d6800b1edd9b.mp4",
"audio_url": "https://segmind-inference-inputs.s3.amazonaws.com/2f714073-f5d2-4fce-b772-72179e845873-48e09aa9-15af-4592-b83f-be2dac195df3.mp3"
};
(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);
}
})();Provide the direct URL of the video. Try using high-resolution video for best results.
Provide the direct URL of the audio. Use clear and distinct audio for accurate syncing.
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.
PixVerse Speech is an advanced AI model that creates natural, precisely synchronized lip movements for video content by matching mouth animations with audio input. This cutting-edge lip-sync technology enables creators to generate professional-quality talking videos where the speaker's lip movements perfectly align with the accompanying speech or audio track. Whether you're working with pre-recorded videos or generating new content through the API, PixVerse Speech ensures seamless integration between visual and audio elements.
Q: What video formats does PixVerse Speech support? A: The model accepts standard video formats through direct URL input, with high-resolution videos recommended for optimal results.
Q: Can I use PixVerse Speech for multiple languages? A: Yes, the model supports lip synchronization across various languages and accents.
Q: How does the audio input process work? A: You can provide audio through a direct URL, ensuring the audio is clear and distinct for accurate synchronization.
Q: What's the typical processing time for lip synchronization? A: Processing time varies based on video length and complexity, with real-time status monitoring available through the API.
Q: Can I use this for both pre-recorded and generated videos? A: Yes, PixVerse Speech works with both user-uploaded videos and videos generated through the PixVerse API.