New: AI video tools. Cut, clip, caption and dub your videos. See all video tools →

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.

POST/v1/avatar-videos
# 1. Speak the line in one of your voices
curl -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 job
curl -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
See the product page

Add talking avatars to your app with one API key.

Endpoints

Avatar endpoints

MethodPathWhat it does
POST/v1/uploadsGet an upload link for a photo
POST/v1/speechSpeak the line in one of your voices
POST/v1/avatar-videosMake 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.

POST/api/v1/talking-head/videos
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

MethodPathWhat it does
POST/api/v1/talking-head/photo-checkCheck that a photo shows one clear face
POST/api/v1/talking-head/videosStart an avatar video
GET/api/v1/talking-head/videos/{video_id}/statusCheck progress
POST/api/v1/talking-head/videos/{video_id}/exportExport, 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.