Model API'si

Live Portrait

Videodaki yüz hareketlerini bir portreye aktar.

Model kimliği

Her istekte bunu kullan
live-portrait

Bu modelin kendi kimliği olan başka modları da var: live-portrait/image.

Ç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": "live-portrait",
  "input": {
    "video_url": "https://example.com/input.mp4",
    "image_url": "https://example.com/input.png"
  }
}'

# 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": "live-portrait", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4","image_url":"https://example.com/input.png"}}'

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

Girdi

live-portrait girdi alanları
AlanTürAçıklama
video_urlzorunlustring (URL)
URL of the video to drive the lip syncing.
image_urlzorunlustring (image URL)
URL of the image to be animated
blinknumber
Amount to blink the eyes

Varsayılan: 0

eyebrownumber
Amount to raise or lower eyebrows

Varsayılan: 0

winknumber
Amount to wink

Varsayılan: 0

pupil_xnumber
Amount to move pupils horizontally

Varsayılan: 0

pupil_ynumber
Amount to move pupils vertically

Varsayılan: 0

aaanumber
Amount to open mouth in 'aaa' shape

Varsayılan: 0

eeenumber
Amount to shape mouth in 'eee' position

Varsayılan: 0

woonumber
Amount to shape mouth in 'woo' position

Varsayılan: 0

smilenumber
Amount to smile

Varsayılan: 0

flag_lip_zeroboolean
Whether to set the lip to closed state before animation. Only takes effect when flag_eye_retargeting and flag_lip_retargeting are False.

Varsayılan: true

rotate_pitchnumber
Amount to rotate the face in pitch

Varsayılan: 0

rotate_yawnumber
Amount to rotate the face in yaw

Varsayılan: 0

rotate_rollnumber
Amount to rotate the face in roll

Varsayılan: 0

flag_eye_retargetingboolean
Whether to enable eye retargeting.

Varsayılan: false

flag_lip_retargetingboolean
Whether to enable lip retargeting.

Varsayılan: false

flag_stitchingboolean
Whether to enable stitching. Recommended to set to True.

Varsayılan: true

flag_relativeboolean
Whether to use relative motion.

Varsayılan: true

flag_pastebackboolean
Whether to paste-back/stitch the animated face cropping from the face-cropping space to the original image space.

Varsayılan: true

flag_do_cropboolean
Whether to crop the source portrait to the face-cropping space.

Varsayılan: true

flag_do_rotboolean
Whether to conduct the rotation when flag_do_crop is True.

Varsayılan: true

dsizeinteger
Size of the output image.

Varsayılan: 512

scalenumber
Scaling factor for the face crop.

Varsayılan: 2.3

vx_rationumber
Horizontal offset ratio for face crop.

Varsayılan: 0

vy_rationumber
Vertical offset ratio for face crop. Positive values move up, negative values move down.

Varsayılan: -0.125

batch_sizeinteger
Batch size for the model. The larger the batch size, the faster the model will run, but the more memory it will consume.

Varsayılan: 32

Çı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?