Lumaktaw sa nilalaman

Sad Talker

I-integrate

ID ng modelo 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"

Hanggang $4.50 bawat pagtakbo sinisingil ayon sa aktuwal na paggamit, at nire-refund ang natitira Patakbuhin ito sa page na ito

Kumuha ng API key
Open model Lipsync at Avatar Lipsync #animation

Ginagawang talking video ang isang larawan ng mukha gamit ang audio file

Open model · video

Dito mapupunta ang iyong unang resulta

Bumuo ng kahilingan sa ibaba at patakbuhin ito gamit ang iyong API key. Kinokopya ang mga output sa aming storage, na pinananatili nang walang hanggan o 7 araw nang libre.

Bumuo ng kahilingan

Ang mga control ay binubuo mula sa schema ng modelo. Nagbabago ang code at presyo habang ina-adjust mo ang mga ito.

•kinakailangan source_image_url
Mag-drop ng file, o

Lokasyon ng source larawan bilang URL.

•kinakailangan
Mag-drop ng file, o

URL ng driving audio.

advanced face_model_resolution · preprocess · face_enhancer · pose_style · expression_scale · still_mode
face_model_resolution default na 256

Resolution na ginagamit ng face modelo.

preprocess default na crop

Preprocessing method na ilalapat.

Uri ng face enhancer na ilalapat.

default na 0

Style na ginagamit para sa pose.

default na 1

Scaling factor para sa expression.

POST /run/sadtalker?wait=20 presyo → $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"

Patakbuhin ang kahilingang ito

Nananatili ang iyong key sa browser na ito: ipinapadala lamang ito sa Doitong API at sine-save (localStorage) lamang kung pipiliin mo ang Tandaan. Kumuha ng API key

Tungkol sa Sad Talker

Tumatanggap ng portrait sa pamamagitan ng `source_image_url` at speech sa pamamagitan ng `driven_audio_url`, at gumagawa ng talking-head video. Kasama sa mga adjustable option ang `pose_style` (0 hanggang 45), `expression_scale` (0 hanggang 3), `face_model_resolution` (256 o 512), `still_mode` para sa mas kaunting galaw ng ulo, at `preprocess` (crop, extcrop, resize, full, extfull).

Mga parameter

Ipadala ang canonical na pangalan o ang native na pangalan, hindi pareho. Mga canonical na pangalan

PangalanUri defaultPinapayagan Paglalarawan
source_image_urlkinakailangan image
Uriurl · image
Lokasyon ng source larawan bilang URL.
driven_audio_urlkinakailangan
Uriurl · audio
URL ng driving audio.
pose_styleopsyonal
Uriinteger
default0
0 – 45
Style na ginagamit para sa pose.
face_model_resolutionopsyonal
Urienum
default256
256512
Resolution na ginagamit ng face modelo.
expression_scaleopsyonal
Urinumber
default1
0 – 3
Scaling factor para sa expression.
face_enhanceropsyonal
Uristring | null
Uri ng face enhancer na ilalapat.
still_modeopsyonal
Uriboolean
defaultfalse
Still mode para mabawasan ang galaw ng ulo kapag ginagamit ang `full` preprocessing.
preprocessopsyonal
Urienum
defaultcrop
cropextcropresizefullextfull
Preprocessing method na ilalapat.
kinakailangan Canonical na pangalan, tinatanggap din

Tumatanggap ang mga parameter ng file ng pampublikong https:// URL, data: URI na hanggang 10 MB, o file_url ng isang upload. Mga file

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"
  }
}
Ikaw ang pumipili para sa iyong mga fileAng bawat outputs[].url ay kopya sa aming storage: pinananatili nang walang hanggan (sinisingil bawat GB-month) o 7 araw nang libre, ayon sa setting ng iyong account o ?storage=.
Parehong shape sa bawat modelotype, url, content_type, width, height at duration, para sa mga larawan, video at audio. Ang output ay sariling result object ng modelo.
Mga field ng output
video
object {url, content_type, file_name, file_size}URL ng nabuong video.

Higit pang modelo: Lipsync at Avatar

Para sa mga AI agent: nasa Markdown ang pahinang ito sa https://doitong.com/fil/developers/models/sadtalker.md. Lahat ng modelo at gabay: https://doitong.com/developers/llms.txt