# HeyGen Lipsync Precision API

> HeyGen v3 Lipsync (precision) replaces the speech in a video and re-syncs the speaker's lips to the new audio.

Source: https://www.sandbase.ai/models/heygen/lipsync/precision
API reference: https://www.sandbase.ai/models/heygen/lipsync/precision/docs

## Facts

- Provider: HeyGen
- Type: Video model
- Model ID: `heygen/lipsync/precision`
- Price: From $0.50 per run
- Capabilities: video to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "heygen/lipsync/precision",
  "audio": "https://v3.fal.media/files/rabbit/Ql3ade3wEKlZXRQLRbhxm_tts.mp3",
  "video": "https://media.sandbase.ai/files/922d1013-9018-4956-a39d-d0859149ba76/0.mp4",
  "enable_caption": false,
  "disable_music_track": false,
  "enable_dynamic_duration": true,
  "enable_speech_enhancement": false
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call HeyGen Lipsync Precision through SandBase?

Create a SandBase API key, then send requests with the model ID "heygen/lipsync/precision" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate HeyGen account?

No. One SandBase API key and balance gives you access to HeyGen Lipsync Precision and the other models in the catalog; you do not need to sign up with HeyGen separately.

## README

### HeyGen Lipsync Precision

HeyGen Lipsync (precision) replaces the speech in a video and re-syncs the speaker's lips to new audio. Precision gives the best sync.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `video` | video URL, required | — | Video with the speaker. |
| `audio` | audio URL, required | — | New speech. |
| `disable_music_track` | boolean | false | Drop background music. |
| `enable_caption` | boolean | false | Burn in captions. |
| `enable_dynamic_duration` | boolean | true | Adjust video length to the new audio. |
| `enable_speech_enhancement` | boolean | false | Clean up the new speech. |
| `end_time` | number | — | Optional end of the section. |
| `start_time` | number | — | Optional start of the section to sync (seconds). |

#### Billing

$0.10 per output second. The quote before submission assumes 5 seconds.

| Output | Price |
|---|---|
| 5s | $0.50 |
| 30s | $3.00 |
| 60s | $6.00 |

Failed runs are not charged.

#### Also on SandBase

Related: `heygen/lipsync/speed`, `sync/lipsync/3.0/video-to-video`.
