Talking Avatar and Lip Sync API
Generate lip-synced AI presenter videos from your own app, agent or automation with one REST call.
Built for automation
One request per video
POST an image URL and a script. SpeakFace handles text-to-speech, lip sync and rendering.
Webhooks, no polling
Pass a webhook URL and receive a signed callback when the video is ready or failed.
Pay per second
The API uses the same credits as the app: 0.1 credit per second of generated video.
Create a video with one request
Send a portrait image (or a gallery person_id) and either text or an
audio_url. The API returns a generation object right away and processes the video in
the background.
curl https://app.speakfaceai.com/api/v1/generations \
-H "Authorization: Bearer sf_live_..." \
-H "Content-Type: application/json" \
-d '{
"type": "avatar",
"image_url": "https://example.com/presenter.jpg",
"text": "Hi! Here is what is new in our app this week.",
"voice_id": "your-voice-id",
"selfie_mode": true,
"webhook_url": "https://your-app.com/webhooks/speakface"
}' Response:
{
"id": "cmx1...",
"object": "generation",
"type": "avatar",
"status": "queued",
"output": null,
"credits": 1.2,
"created_at": "2026-11-26T12:00:00.000Z"
} Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/generations | Create an avatar video (type: "avatar") or speech only (type: "tts") |
| GET | /v1/generations/{id} | Get status and output URL |
| GET | /v1/generations | List your generations with cursor pagination |
| POST | /v1/generations/{id}/upscale | Upscale a finished video to 720p or 1080p |
| POST | /v1/generations/{id}/cancel | Cancel a running generation |
Upscale a finished video to 720p or 1080p
Avatar videos render at 480p. To get a sharper file, call the upscale endpoint on a
completed avatar generation. It returns 202 right away with a new generation of
type: "upscale"; its source_generation_id points to the original video. Poll it with
GET /v1/generations/{id} or pass webhook_url, and download the result from
output.url.
curl -X POST https://app.speakfaceai.com/api/v1/generations/GENERATION_ID/upscale \
-H "Authorization: Bearer sf_live_..." \
-H "Content-Type: application/json" \
-d '{
"resolution": "1080p",
"webhook_url": "https://your-app.com/webhooks/speakface"
}' Response:
{
"id": "cmx2...",
"object": "generation",
"type": "upscale",
"source_generation_id": "cmx1...",
"status": "queued",
"output": null,
"created_at": "2026-11-26T12:05:00.000Z"
} | Field | Required | Notes |
|---|---|---|
resolution | no | "720p" (default) or "1080p" |
webhook_url | no | HTTPS URL notified when the upscale finishes |
metadata | no | Object echoed back on the job, max 4 KB |
| Resolution | Max source length | Price |
|---|---|---|
| 720p | 60 seconds | 0.05 credit per second of the source video |
| 1080p | 30 seconds | 0.1 credit per second of the source video |
Errors: 400 not_upscalable if the source is not a completed avatar video,
400 too_long if it is longer than the limit, 402 insufficient_credits,
404 not_found.
Useful parameters
voice_idandspeed: choose the voice and speaking speed for text input.selfie_mode: adds handheld camera shake for a phone-recorded UGC look.prompt: a short description of how the person should move or behave.webhook_url: an HTTPS endpoint that receives the result.
What teams build with it
- Bulk UGC ad variations from a spreadsheet of hooks.
- Personalised sales and onboarding videos that greet each user by name.
- AI agents that publish talking head videos to social media on a schedule.
- Localized versions of the same presenter video in several languages.
Pricing
Choose the plan that fits your creative needs. Upgrade or cancel anytime.
Starter
$0.67 per video (10 sec)
Ideal for small projects and individual creators.
- 15 credits per month (0.1 credit/sec)
- ~ 15 videos per month (10s video)
- 3 batch tasks
Growth
$0.40 per video (10 sec)
Perfect for growing channels and consistent content.
- 100 credits per month (0.1 credit/sec)
- ~ 100 videos per month (10s video)
- 10 batch tasks
- Faster processing
Pro
$0.33 per video (10 sec)
The ultimate power for professional studios and agencies.
- 300 credits per month (0.1 credit/sec)
- ~ 300 videos per month (10s video)
- 30 batch tasks
- Faster processing
Frequently Asked Questions
How do I get an API key?
Create a SpeakFace account, choose a plan, and generate an API key in your dashboard. Keys are sent as a Bearer token in the Authorization header.
Can I use my own audio instead of text?
Yes. Send audio_url instead of text and the avatar will lip sync to your recording. Send exactly one of the two.
Can I use stock presenters?
Yes. Instead of image_url you can pass person_id to use a person from the SpeakFace gallery.
What resolution do videos have?
Avatar videos render at 480p for speed. Call POST /v1/generations/{id}/upscale on a finished generation to get 720p (videos up to 60 seconds) or 1080p (up to 30 seconds). The upscale is a separate generation you poll or receive by webhook.
How do I know when a video is ready?
Either poll GET /v1/generations/{id} or pass webhook_url. Webhooks are signed with HMAC-SHA256 in the X-Speakface-Signature header so you can verify they came from SpeakFace.
Is content moderated?
Yes. Every script is screened by a content moderation service before generation. Requests that violate the content policy return an error and are not charged.
More ways to create with SpeakFace
AI Talking Photo
Turn one portrait photo into a video that speaks your script.
AI UGC Video Generator
Selfie-style UGC ads for TikTok, Reels and Meta without creators.
AI Lip Sync
Sync any face to any audio or text, with natural mouth movement.
Talking Head Videos
Presenter-style videos for courses, explainers and updates.
Motion Control
Transfer movement from a reference video onto a still image.
Ready to go viral?
Join hundreds of creators who are using SpeakFace.AI to dominate their niche.