Avatar API
Talking avatar API: lip-synced video from one photo
Send a headshot and the words to say, in any of your voices, and get back a video of that person saying them.
Cloud API on the Starter and Premium plans, or the Desktop API on your own computer.
# 1. Speak the line in one of your voicescurl -X POST https://api.vcp.name/v1/speech \ -H "Authorization: Bearer $VCP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "Hi, I am Maya. Here are the three updates for this week.", "voice": "Narrator"}' # 2. Make the video from a photo and that speech jobcurl -X POST https://api.vcp.name/v1/avatar-videos \ -H "Authorization: Bearer $VCP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "photo_url": "https://example.com/maya.jpg", "speech_job_id": "SPEECH_JOB_ID", "consent": true }'What developers build with it
Each video runs up to 20 seconds, lip-synced to the speech. The Cloud API renders at 480p, 720p, 1080p or 1440p.
- Short weekly update videos read by the same presenter
- Personalized video messages generated from a template
- Spoken explainers in another language from the same photo
Add talking avatars to your app with one API key.
Endpoints
Avatar endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/uploads | Get an upload link for a photo |
| POST | /v1/speech | Speak the line in one of your voices |
| POST | /v1/avatar-videos | Make the video from a photo and the speech |
| GET | /v1/jobs/{id} | Get a job, or wait for it to finish |
Desktop API
Run the API on your own computer
Every desktop plan includes a local API on Windows and Mac. It needs no key and answers requests from your computer while the app is open.
printf '{"headshot_base64": "%s", "source": "speech", "text": "%s", "voice_source": "library", "voice_id": "VOICE_ID", "consent": true}' \ "$(base64 < headshot.jpg | tr -d '\n')" \ "Hi, I am Maya. Here are this week's three updates." > body.json curl -X POST "http://127.0.0.1:8100/api/v1/talking-head/videos" \ -H "Content-Type: application/json" \ -d @body.json curl "http://127.0.0.1:8100/api/v1/talking-head/videos/VIDEO_ID/status"Desktop API endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /api/v1/talking-head/photo-check | Check that a photo shows one clear face |
| POST | /api/v1/talking-head/videos | Start an avatar video |
| GET | /api/v1/talking-head/videos/{video_id}/status | Check progress |
| POST | /api/v1/talking-head/videos/{video_id}/export | Export, with captions if they are on |
Create a key and send your first request in a few minutes.
FAQ
Common Questions
One headshot with exactly one person, facing the camera, in good light and without sunglasses. The Cloud API fails the job with no_face or many_faces when it can't use the photo. In the Desktop API, run /api/v1/talking-head/photo-check first.
Up to 20 seconds per video. In the Cloud API, send a speech job or a WAV of up to 20 seconds. In the Desktop API, the text field accepts up to 900 characters, so keep each line short enough to fit.
Any of your voices: preset, cloned or designed. In the Cloud API, make the speech with POST /v1/speech and pass its speech_job_id. In the Desktop API, set voice_source to tts, library or design and pass the voice_id.
In the Desktop API, yes. Set a caption style with PUT /api/v1/talking-head/videos/{video_id}/subtitle-params, then export, and the captions are burned into the video.
Explore
Related APIs
Text to speech
Turn text into speech with preset or cloned voices.
Voice cloning
Clone a voice from a short clip and speak new text with it.
Voice design
Describe a voice in words and generate speech in it.
Speech to text
Transcribe audio with word timestamps and speaker labels.
Dubbing
Dub videos into 21 languages, keeping each speaker's voice.
Subtitles
Generate SRT caption files with word-level timing.
Clips
Cut long videos into short, captioned clips.
AI Cut
Remove silences, filler words and bad takes, then render.
Voice changer
Re-voice a recording while keeping its timing and emotion.
Audiobooks
Narrate a manuscript with a voice for every character.