Model API'si
Live Portrait
Videodaki yüz hareketlerini bir portreye aktar.
Model kimliği
live-portraitBu 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
| Alan | Tür | Açıklama |
|---|---|---|
video_urlzorunlu | string (URL) | URL of the video to drive the lip syncing. |
image_urlzorunlu | string (image URL) | URL of the image to be animated |
blink | number | Amount to blink the eyes |
eyebrow | number | Amount to raise or lower eyebrows |
wink | number | Amount to wink |
pupil_x | number | Amount to move pupils horizontally |
pupil_y | number | Amount to move pupils vertically |
aaa | number | Amount to open mouth in 'aaa' shape |
eee | number | Amount to shape mouth in 'eee' position |
woo | number | Amount to shape mouth in 'woo' position |
smile | number | Amount to smile |
flag_lip_zero | boolean | Whether to set the lip to closed state before animation. Only takes effect when flag_eye_retargeting and flag_lip_retargeting are False. |
rotate_pitch | number | Amount to rotate the face in pitch |
rotate_yaw | number | Amount to rotate the face in yaw |
rotate_roll | number | Amount to rotate the face in roll |
flag_eye_retargeting | boolean | Whether to enable eye retargeting. |
flag_lip_retargeting | boolean | Whether to enable lip retargeting. |
flag_stitching | boolean | Whether to enable stitching. Recommended to set to True. |
flag_relative | boolean | Whether to use relative motion. |
flag_pasteback | boolean | Whether to paste-back/stitch the animated face cropping from the face-cropping space to the original image space. |
flag_do_crop | boolean | Whether to crop the source portrait to the face-cropping space. |
flag_do_rot | boolean | Whether to conduct the rotation when flag_do_crop is True. |
dsize | integer | Size of the output image. |
scale | number | Scaling factor for the face crop. |
vx_ratio | number | Horizontal offset ratio for face crop. |
vy_ratio | number | Vertical offset ratio for face crop. Positive values move up, negative values move down. |
batch_size | integer | Batch size for the model. The larger the batch size, the faster the model will run, but the more memory it will consume. |
Çı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.
"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?