Model API'si

SadTalker

Portreyi ve ses kaydını birleştirerek konuşan yüz videosu oluştur.

Model kimliği

Her istekte bunu kullan
sadtalker/reference

Bu modelin kendi kimliği olan başka modları da var: sadtalker.

Çalıştır

Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "sadtalker/reference",
  "input": {
    "source_image_url": "https://example.com/input.png",
    "driven_audio_url": "https://example.com/input.mp3",
    "reference_pose_video_url": "https://example.com/input.mp4"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "sadtalker/reference", "quote_id": "QUOTE_ID", "input": {"source_image_url":"https://example.com/input.png","driven_audio_url":"https://example.com/input.mp3","reference_pose_video_url":"https://example.com/input.mp4"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

sadtalker/reference girdi alanları
AlanTürAçıklama
source_image_urlzorunlustring (image URL)
URL of the source image
driven_audio_urlzorunlustring (URL)
URL of the driven audio
reference_pose_video_urlzorunlustring (URL)
URL of the reference video
pose_styleinteger
The style of the pose

Varsayılan: 0

face_model_resolutionstring (enum)
The resolution of the face model

Varsayılan: 256

Seçenekler: 256, 512

expression_scalenumber
The scale of the expression

Varsayılan: 1

face_enhancerstring
The type of face enhancer to use
still_modeboolean
Whether to use still mode. Fewer head motion, works with preprocess `full`.

Varsayılan: false

preprocessstring (enum)
The type of preprocessing to use

Varsayılan: crop

Seçenekler: crop, extcrop, resize, full, extfull

Çıktı

Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.

İş yanıtından bir bölüm
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • en fazla$1,79/ üretim

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?