PixVerse Platform Docs(for enterprise)
  1. Lip sync
PixVerse Platform Docs(for enterprise)
  • Model & Pricing
  • Multi-transition
    • How to use multi-transtion
    • Multi-trasition generate
      POST
  • Previous updates
    • Sound_effect
      • How to use Sound effects?
      • Generate Sound Effects
    • Lip sync
      • How to use Lip Sync?
      • Tts speaker list
      • Generate lip sync video
        POST
      • Get tts speaker list
        GET
    • Fusion(Reference to Video)
      • How to use fusion (reference to video)?
      • Generate Fusion(Reference to Video) video
    • Template for multiple-images
      • How to use multiple-image templates?
    • Extend
      • How to use Extend?
      • Generate Extend video
    • Restyle
      • How to use restyle?
      • Restyle generation
      • Restyle get list
  • Upload media (video&audio)
    POST
  1. Lip sync

How to use Lip Sync?

Overview#

The Speech (LipSync) endpoint is designed to solve voice synchronization issues in videos.
It analyzes both the audio and the speaker’s mouth movements in the video, matching them precisely. This makes your videos more expressive and engaging, adding storytelling depth.
Related API References:
Media Upload Task
Speech(Lipsync) Generation Task

Prerequisites#

Before you begin, make sure you have:
A valid PixVerse API key
A unique Ai-trace-id for each API request
An active subscription with available or purchased API credits
A Video either:
A video_id generated from PixVerse
or
An uploaded video in supported formats (mp4, mov)
Max resolution: 1920
Max file size: 50MB
Max duration: 30 seconds
A Audio either:
A script for using our built-in TTS service.
or
An audio file in supported formats (.mp3, .wav)
Max file size: 50MB
Max duration: 30 seconds

Step-by-Step Guide#

Step 1-1: Prepare Your Video from External video#

1.
External Video (User-Provided)
To ensure optimal results, please provide:
A .mp4 or .mov video file
Max resolution: 1920p
Max size: 50MB
Max duration: 30s
Construct your API request with the appropriate parameters:
you will get "media_id" with "video" media_type
{
    "ErrCode": 0,
    "ErrMsg": "success",
    "Resp": {
        "media_id": 0,
        "media_type": "video",
        "url": "https://media.pixverse.ai/111111.mp4"
    }
}

Step 1-2: Prepare Your Video from PixVerse API#

If you previously generated a video using our API, you should already have a video_id.
To extend this video, pass the video_id into the source_video_id field of the generation request.

Step 2 : Prepare Your Audio or Script#

You can either:
Upload a pre-recorded audio file (.mp3 or .wav, ≤ 30s, ≤ 50MB)
Use our TTS service with a provided script
The audio must be clear. Multiple languages and audio types are supported, including speech, singing, and advertisements.
for uploading audio file
Construct your API request with the appropriate parameters:
you will get "media_id" with "video" media_type
{
    "ErrCode": 0,
    "ErrMsg": "success",
    "Resp": {
        "media_id": 0,
        "media_type": "audio",
        "url": "https://media.pixverse.ai/111111.mp3"
    }
}
for TTS service
you can get tts list from API
Parameter NameRequiredTypeDescription
page_numoptionalinthow many pages you want to get
page_sizeoptionalinthow many datas on one page

Step 3: Send Speech(Lip Sync) API Request#

Parameter NameRequiredTypeDescription
source_video_idchoose either source_video_id or video_media_id, not both.intvideo from PixVerse API
video_media_idchoose either source_video_id or video_media_id, not bothintuploaded external video
audio_media_idchoose either audio_media_id or lip_sync_tts_speaker_id + lip_sync_tts_content, not bothintuploaded external audio
lip_sync_tts_speaker_idchoose either audio_media_id or lip_sync_tts_speaker_id + lip_sync_tts_content, not bothstringTTS speaker from tts speaker list
lip_sync_tts_contentchoose either audio_media_id or lip_sync_tts_speaker_id + lip_sync_tts_content, not bothstringTTS script ~200 characters (not UTF-8 Encoding)

Step 4 Handle the API Response#

The API returns a JSON response with a video_id:
{
  "ErrCode": 0,
  "ErrMsg": "success",
  "Resp": {
    "video_id": 0
  }
}

Step 5 Check Generation Status#

After creating the task, you will receive a video_id
Query periodically Get Video Generation Status API using this video_id
The status will change from 5 to 1 when processing is complete
  {
 "ErrCode": 0,
 "ErrMsg": "string",
 "Resp": {
   "create_time": "string",
   "id": 0,
   "modify_time": "string",
   "negative_prompt": "string",
   "outputHeight": 0,
   "outputWidth": 0,
   "prompt": "string",
   "resolution_ratio": 0,
   "seed": 0,
   "size": 0,
   "status": 5,
   "style": "string",
   "url": "string"
 }
}

Step 6 Download the Generated Video#

You can access a generated video with "url"
  {
 "ErrCode": 0,
 "ErrMsg": "string",
 "Resp": {
   "create_time": "string",
   "id": 0,
   "modify_time": "string",
   "negative_prompt": "string",
   "outputHeight": 0,
   "outputWidth": 0,
   "prompt": "string",
   "resolution_ratio": 0,
   "seed": 0,
   "size": 0,
   "status": 1,
   "style": "string",
   "url": "string"
 }
}

Trobule shooting#

Common issue#

1.
Your video is stuck in "Generating" status and hasn't completed after a long wait.
Please check if you're using the same AI-trace-ID for every request. This is the most common cause of this issue.
2.
Status codes: 1: Generation successful; 5: Waiting for generation; 7: Content moderation failure; 8: Generation failed;
If you encounter status code 7, it means your generated video was filtered by our content moderation system. Please modify your parameters and try again. Any credits used for filtered videos will be automatically refunded to your account.

Common error codes#

400/500 status : Incorrect code
400013 : Invalid binding request: incorrect parameter type or value
400017 : Invalid parameter
500044 : Reached the limit for concurrent generations.
Modified at 2025-06-20 11:57:30
Previous
Generate Sound Effects
Next
Tts speaker list
Built with