Skip to content

Sad Talker

Integrate

Model id sadtalker
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/sadtalker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "driven_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Up to $4.50 per run charged by actual usage, the rest is refunded Run it on this page

Get API key
Open model Lipsync & Avatars Lipsync #animation

Animates a single face image into a talking video driven by an audio file

Open model · Video

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required source_image_url
Drop a file, or

Source image location as a URL.

•required
Drop a file, or

URL pointing to the driving audio.

Advanced face_model_resolution · preprocess · face_enhancer · pose_style · expression_scale · still_mode
face_model_resolution default 256

Resolution used by the face model.

preprocess default crop

Preprocessing method to apply.

Face enhancer type to apply.

default 0

Style used for the pose.

default 1

Scaling factor for the expression.

POST /run/sadtalker?wait=20 quote → $4.50
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/sadtalker?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "driven_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Sad Talker

Takes a portrait through `source_image_url` and speech through `driven_audio_url`, and produces a talking-head video. Tunable options include `pose_style` (0 to 45), `expression_scale` (0 to 3), `face_model_resolution` (256 or 512), `still_mode` for less head motion, and `preprocess` (crop, extcrop, resize, full, extfull).

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
source_image_urlrequired image
Typeurl · image
Source image location as a URL.
driven_audio_urlrequired
Typeurl · audio
URL pointing to the driving audio.
pose_styleoptional
Typeinteger
Default0
0 – 45
Style used for the pose.
face_model_resolutionoptional
Typeenum
Default256
256512
Resolution used by the face model.
expression_scaleoptional
Typenumber
Default1
0 – 3
Scaling factor for the expression.
face_enhanceroptional
Typestring | null
Face enhancer type to apply.
still_modeoptional
Typeboolean
Defaultfalse
Still mode for reducing head movement when using `full` preprocessing.
preprocessoptional
Typeenum
Defaultcrop
cropextcropresizefullextfull
Preprocessing method to apply.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sadtalker",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 4500,
    "usd": "4.50",
    "charged": 4500,
    "refunded": 0
  },
  "input": {
    "source_image_url": "https://content.doitong.com/images/showcase/v3/avatar/talking_avatar.jpg",
    "driven_audio_url": "https://content.doitong.com/audio/showcase/v3/tools/dub_es.mp3"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size}Generated video's URL.

More models: Lipsync & Avatars

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/sadtalker.md. All models and guides: https://doitong.com/developers/llms.txt