About Talking Avatar
Lip-synced talking video from a portrait and a voice.
Call it with the model name popnow/talking-avatar-v1/talking-avatar on POST /jobs/createTask, from $0.018.
Introduction
Talking Avatar turns a single portrait into a speaking clip. You send the face in image_url and a voice recording in audio_url; the tool animates the mouth, jaw and small head movements so the person appears to say exactly what is in the recording. The clip is as long as the audio, three to sixty seconds, and comes back with your recording already on it, ready to post or to drop into an edit.
Key features
The audio sets the timing
Every mouth shape is driven by the sound itself, so pauses, quick phrases and emphasis land where the speaker put them. There is no script field and no timing to tune: record the line the way it should be delivered and the face follows it, second for second.
The portrait stays the scene
Clothing, hair, background and framing come straight from the image. Nothing around the face is regenerated, which keeps a presenter, a character or a spokesperson recognisably the same from one clip to the next. The output is compact, about 0.2 megapixels at 25 frames per second (a 16:9 photo came back at 640×352, a 3:4 portrait at 400×544), so plan for feeds and chat windows rather than full-screen playback.
Request parameters
| Parameter | Required | Description |
|---|---|---|
audio_url | Yes | The voice or music track to use. |
image_url | Yes | The picture to start from. |
mask_url | No | Paint over the area that should change. |
prompt | No | Describe what you want to make. |
seed | No | Use the same seed and settings for more controlled comparisons. ≥ 0 · ≤ 2147483647 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per second |
|---|---|
| Standard | $0.018 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Presenter clips from a still
Course intros, product walkthroughs and weekly updates can reuse one approved portrait with a fresh recording each time. Switching languages is just a matter of sending a different audio file with the same image, so one presenter can cover several markets.
Characters that answer out loud
Companion and role-play apps can let a character deliver a reply on camera: keep one character portrait, turn the reply into speech, and send the pair. A short reply takes a minute or two to render, so start the job while the text reply is already on screen.
Prompt guide & pro tips
Choose the portrait for the mouth
The mouth is the part that moves, so give it pixels: head-and-shoulders framing, face turned roughly toward the camera, even light and nothing covering the lips. Sunglasses, strong profile angles and small faces in a wide shot are the usual reasons a result looks off.
Clean audio beats loud audio
Export speech without background music, echoey rooms or overlapping voices. Keep each file between three and sixty seconds and split longer scripts at natural pauses.
Prompt for mood, mask for who
The prompt field nudges expression, such as calm, cheerful or serious, but cannot change who speaks or where. When the portrait shows more than one person, pass mask_url with the speaker painted white on black, at the same size as the image. Fix seed to compare two recordings on the same portrait.
API quick start
Call the Talking Avatar API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model popnow/talking-avatar-v1/talking-avatar and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "popnow/talking-avatar-v1/talking-avatar",
"input": {
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
"audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
Examples
Talking Avatar API questions
How much does the Talking Avatar API cost?
Talking Avatar costs $0.018 per second. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for Talking Avatar in the API?
Put popnow/talking-avatar-v1/talking-avatar for AI Avatar in the model field of POST /jobs/createTask.
How long can the video be?
As long as the audio: 3 to 60 seconds. Split longer scripts into several recordings and join the clips afterwards.
Does it need a prompt?
No. The audio drives the mouth and the head. A short prompt can nudge the expression, calm or cheerful for example, but the person and the scene come from the portrait.
What if the photo shows several people?
Pass mask_url: a black-and-white image the same size as the portrait, white over the person who should speak. Without it, the tool picks the face itself, which may not be the one you meant.
How is it billed?
Per second of the returned video, rounded up to the whole second, with a 3-second minimum. The quote before you submit covers the length of audio you uploaded plus one second, or the 60-second maximum for an audio URL, and the difference is released when the task settles.
What are the limits of the Talking Avatar API?
Prompt length (characters): 1,000; Largest upload: 90 MB. Requests outside these limits are rejected before anything is charged.
Can I try Talking Avatar without writing code?
Run Talking Avatar in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.