WaveSpeedVideo to videoAvailable now
wavespeed-ai/video-face-swap
wavespeed-ai/video-face-swap is a video to video tool from WaveSpeed that runs in the background and returns video. Pay as you go from $0.013 per second, with one API key.
Try itfrom $0.013 / second
Pricing
$0.013 per second. Measured from the input file, rounded up, minimum 3. The final charge comes from usage.
Limits
- Runs
- In the background
- Returns
- video
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
video required | URL or file | — | The video that contains the face to be replaced. |
face_image required | URL or file | — | The face image as reference. |
target_index | number (whole) 0 to 10 | 0 | 0 = largest face. To switch to another target face - switch to index 1, e.t.c. |
target_gender | one of all, male, female | all | Only swap target faces matching this gender. 'all' swaps regardless of gender. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "wavespeed",
"model": "wavespeed-ai/video-face-swap",
"input": {
"video": "<video>",
"face_image": "<face_image>"
}
}'