Bỏ qua đến nội dung

Sad Talker · Reference

Tích hợp

Id mô hình 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"

Tối đa 4,50 $ mỗi lần chạy tính phí theo mức sử dụng thực tế, phần còn lại được hoàn tiền Chạy trên trang này

Lấy khóa API
Open model Lipsync & avatar Đầu vào tham chiếuLipsync #animation

Tạo hoạt ảnh khuôn mặt nói chuyện từ ảnh và âm thanh, với tư thế đầu lấy từ video tham chiếu

Open model · Video

Kết quả đầu tiên của bạn sẽ xuất hiện ở đây

Tạo một yêu cầu bên dưới và chạy bằng khóa API của bạn. Đầu ra được sao chép vào bộ lưu trữ của chúng tôi, giữ vĩnh viễn hoặc 7 ngày miễn phí.

Tạo một yêu cầu

Các điều khiển được tạo từ lược đồ mô hình. Mã và giá sẽ cập nhật khi bạn thay đổi chúng.

•bắt buộc source_image_url
Thả tệp hoặc

Vị trí hình ảnh nguồn dưới dạng URL.

•bắt buộc
Thả tệp hoặc

URL trỏ đến âm thanh điều khiển.

•bắt buộc
Thả tệp hoặc

URL của video tham chiếu.

Nâng cao face_model_resolution · preprocess · face_enhancer · pose_style · expression_scale · still_mode
face_model_resolution mặc định 256

Độ phân giải mô hình khuôn mặt sử dụng.

preprocess mặc định crop

Phương pháp tiền xử lý cần áp dụng.

Loại bộ tăng cường khuôn mặt cần áp dụng.

mặc định 0

Phong cách dùng cho tư thế.

mặc định 1

Hệ số tỷ lệ cho biểu cảm.

POST /run/sadtalker/reference?wait=20 báo giá → 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"

Chạy yêu cầu này

Key của bạn vẫn nằm trong trình duyệt này: key chỉ được gửi đến Doitong API và chỉ được lưu trong localStorage nếu bạn chọn Ghi nhớ. Nhận khóa API

Giới thiệu về Sad Talker · Reference

Giống biến thể khuôn mặt nói cơ bản, nhưng cũng yêu cầu `reference_pose_video_url`, một video có chuyển động đầu hướng dẫn kết quả. Đầu vào là `source_image_url` và `driven_audio_url`. Các tùy chọn gồm `pose_style` (0 đến 45), `expression_scale` (0 đến 3), `face_model_resolution` (256 hoặc 512), `still_mode` và lựa chọn trong năm chế độ `preprocess`.

Tham số

Gửi tên chuẩn hoặc tên gốc, không gửi cả hai. Tên chuẩn

TênKiểu Mặc địnhĐược phép Mô tả
source_image_urlbắt buộc image
Kiểuurl · image
Vị trí hình ảnh nguồn dưới dạng URL.
driven_audio_urlbắt buộc
Kiểuurl · audio
URL trỏ đến âm thanh điều khiển.
reference_pose_video_urlbắt buộc
Kiểuurl · video
URL của video tham chiếu.
pose_styletùy chọn
Kiểuinteger
Mặc định0
0 – 45
Phong cách dùng cho tư thế.
face_model_resolutiontùy chọn
Kiểuenum
Mặc định256
256512
Độ phân giải mô hình khuôn mặt sử dụng.
expression_scaletùy chọn
Kiểunumber
Mặc định1
0 – 3
Hệ số tỷ lệ cho biểu cảm.
face_enhancertùy chọn
Kiểustring | null
Loại bộ tăng cường khuôn mặt cần áp dụng.
still_modetùy chọn
Kiểuboolean
Mặc địnhfalse
Chế độ ảnh tĩnh để giảm chuyển động đầu khi sử dụng tiền xử lý `full`.
preprocesstùy chọn
Kiểuenum
Mặc địnhcrop
cropextcropresizefullextfull
Phương pháp tiền xử lý cần áp dụng.
bắt buộc Tên chuẩn, cũng được chấp nhận

Các tham số tệp nhận URL https:// công khai, URI data: tối đa 10 MB hoặc file_url của một tệp tải lên. Tệp

Đầu ra

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"
  }
}
Tệp của bạn, lựa chọn của bạnMỗi outputs[].url là một bản sao trên bộ lưu trữ của chúng tôi: được giữ vĩnh viễn (tính phí theo GB-tháng) hoặc 7 ngày miễn phí, theo cài đặt tài khoản hoặc ?storage=.
Cùng một cấu trúc trên mọi mô hìnhtype, url, content_type, width, height và duration cho hình ảnh, video và âm thanh. output là đối tượng kết quả riêng của mô hình.
Các trường đầu ra
video
object {url, content_type, file_name, file_size}URL của video được tạo.

Thêm mô hình: Lipsync & avatar

Dành cho tác nhân AI: trang này ở dạng Markdown tại https://doitong.com/vi/developers/models/sadtalker/reference.md. Tất cả mô hình và hướng dẫn: https://doitong.com/developers/llms.txt