ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Sad Talker · Reference

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id sadtalker/reference
# 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/reference?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",
    "reference_pose_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

ਹਰ ਰਨ ਲਈ $4.50 ਤੱਕ ਅਸਲ ਵਰਤੋਂ ਅਨੁਸਾਰ ਚਾਰਜ ਕੀਤਾ ਜਾਂਦਾ ਹੈ, ਬਾਕੀ ਦੀ ਰਕਮ ਵਾਪਸੀ ਹੁੰਦੀ ਹੈ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Open model ਲਿਪਸਿੰਕ ਅਤੇ ਅਵਤਾਰ ਹਵਾਲਾ ਇਨਪੁੱਟਲਿਪਸਿੰਕ #animation

ਚਿੱਤਰ ਅਤੇ ਆਡੀਓ ਤੋਂ ਗੱਲ ਕਰਦੇ ਚਿਹਰੇ ਦੀ ਐਨੀਮੇਸ਼ਨ, ਜਿਸ ਵਿੱਚ ਸਿਰ ਦੀ ਭੰਗਿਮਾ ਰੈਫ਼ਰੈਂਸ ਵੀਡੀਓ ਤੋਂ ਲਈ ਜਾਂਦੀ ਹੈ

Open model · ਵੀਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ source_image_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

ਸਰੋਤ ਚਿੱਤਰ ਦਾ ਸਥਾਨ 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/reference?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.com/v1/run/sadtalker/reference?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",
    "reference_pose_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Sad Talker · Reference ਬਾਰੇ

ਮੁੱਢਲੇ talking-face ਰੂਪ ਵਾਂਗ, ਪਰ ਇਸ ਵਿੱਚ `reference_pose_video_url` ਵੀ ਲੋੜੀਂਦਾ ਹੈ—ਅਜਿਹੀ ਵੀਡੀਓ ਜਿਸ ਦੀ ਸਿਰ ਦੀ ਹਿਲਜੁਲ ਨਤੀਜੇ ਨੂੰ ਦਿਸ਼ਾ ਦਿੰਦੀ ਹੈ। ਇਨਪੁਟ `source_image_url` ਅਤੇ `driven_audio_url` ਹਨ। ਵਿਕਲਪਾਂ ਵਿੱਚ `pose_style` (0 ਤੋਂ 45), `expression_scale` (0 ਤੋਂ 3), `face_model_resolution` (256 ਜਾਂ 512), `still_mode` ਅਤੇ ਪੰਜ `preprocess` ਮੋਡਾਂ ਵਿੱਚੋਂ ਚੋਣ ਸ਼ਾਮਲ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
source_image_urlਲੋੜੀਂਦਾ image
ਕਿਸਮurl · image
ਸਰੋਤ ਚਿੱਤਰ ਦਾ ਸਥਾਨ URL ਵਜੋਂ।
driven_audio_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · audio
ਡ੍ਰਾਈਵਿੰਗ ਆਡੀਓ ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦਾ URL।
reference_pose_video_urlਲੋੜੀਂਦਾ
ਕਿਸਮurl · video
ਰੈਫ਼ਰੈਂਸ ਵੀਡੀਓ ਦਾ 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, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sadtalker/reference",
  "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",
    "reference_pose_video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ 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/pa/developers/models/sadtalker/reference.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt