שפּרינגען צו אינהאַלט

Sad Talker

אינטעגרירן

מאָדעל־id sadtalker
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ביז ⁨$ 4.50⁩ פּער לויפן באַצאָלט לויטן בפועלדיקן באַניץ, דער רעשט ווערט צוריקגעצאָלט לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
Open model ליפּסינק און אַוואַטאַרן ליפּסינק #animation

אַנימירט איין פּנים־בילד צו אַ רעדנדיקן ווידעאָ, געטריבן דורך אַן אַודיאָ־טעקע

Open model · ווידעא

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט source_image_url
לייגט אַרײַן אַ טעקע, אָדער

אָרט פֿון מקור־בילד ווי URL.

•פארלאנגט
לייגט אַרײַן אַ טעקע, אָדער

URL וואָס ווייזט אויף דעם דרייווינג־אַודיאָ.

פֿאָרגעשריטן face_model_resolution · preprocess · face_enhancer · pose_style · expression_scale · still_mode
face_model_resolution סטאַנדאַרט 256

רעזאָלוציע געניצט דורך דעם פּנים־מאָדעל.

preprocess סטאַנדאַרט crop

פּרעפּראָסעסינג־מעטאָד צו צולייגן.

טיפּ פֿון פּנים־פֿאַרבעסערער צו צולייגן.

סטאַנדאַרט 0

סטיל געניצט פֿאַר דער פּאָזע.

סטאַנדאַרט 1

סקיילינג־פֿאַקטאָר פֿאַרן אויסדרוק.

POST /run/sadtalker?wait=20 פּרײַז → ⁨$ 4.50⁩
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Sad Talker

נעמט אַ פּאָרטרעט דורך `source_image_url` און רייד דורך `driven_audio_url`, און שאַפֿט אַ רעדנדיקן־קאָפּ־ווידעאָ. צופּאַסבאַרע אָפּציעס אַרײַננעמען `pose_style` (0 ביז 45), `expression_scale` (0 ביז 3), `face_model_resolution` (256 אָדער 512), `still_mode` פֿאַר ווייניקער קאָפּ־באַוועגונג, און `preprocess` (crop, extcrop, resize, full, extfull).

פּאַראַמעטערס

שיקט אָדער דעם קאַנאָנישן נאָמען אָדער דעם נאַטיוון נאָמען, נישט ביידע. קאַנאָנישע נעמען

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
source_image_urlפארלאנגט image
טיפּurl · image
אָרט פֿון מקור־בילד ווי URL.
driven_audio_urlפארלאנגט
טיפּurl · audio
URL וואָס ווייזט אויף דעם דרייווינג־אַודיאָ.
pose_styleאָפּציאָנעל
טיפּinteger
סטאַנדאַרט0
0 – 45
סטיל געניצט פֿאַר דער פּאָזע.
face_model_resolutionאָפּציאָנעל
טיפּenum
סטאַנדאַרט256
256512
רעזאָלוציע געניצט דורך דעם פּנים־מאָדעל.
expression_scaleאָפּציאָנעל
טיפּnumber
סטאַנדאַרט1
0 – 3
סקיילינג־פֿאַקטאָר פֿאַרן אויסדרוק.
face_enhancerאָפּציאָנעל
טיפּstring | null
טיפּ פֿון פּנים־פֿאַרבעסערער צו צולייגן.
still_modeאָפּציאָנעל
טיפּboolean
סטאַנדאַרטfalse
סטיל־מאָדע פֿאַר רעדוצירן קאָפּ־באַוועגונג בײַם נוצן `full` פּרעפּראָסעסינג.
preprocessאָפּציאָנעל
טיפּenum
סטאַנדאַרטcrop
cropextcropresizefullextfull
פּרעפּראָסעסינג־מעטאָד צו צולייגן.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

טעקע־פּאַראַמעטערס נעמען אַן עפֿנטלעכע https:// URL, אַ data: URI ביז 10 MB, אָדער דעם file_url פֿון אַן אַרויפֿלאָד. טעקעס

אויסגאַבע

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
video
object {url, content_type, file_name, file_size}URL פֿון דעם גענערירטן ווידעא.

מער מאָדעלן: ליפּסינק און אַוואַטאַרן

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/sadtalker.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt