ModelsLab/MultiFace Deepfake
multiface-deepfakeMultiface Deepfake allows swapping all detected faces in a video with faces from an reference image.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/deepfake/single_video_swap
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"init_image": "https://assets.modelslab.com/generations/12575636-0c2d-40e3-8725-d16bc70e6cec","init_video": "https://assets.modelslab.com/generations/d86611f8-b2eb-4dbf-9ff9-71d32f4a080f","output_format": "mp4","watermark": false,"key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Refrance image | init_image | Upload the image of the person faces to be swapped in video. |
| Refrance Video | init_video | Upload a video (under 1 minute) containing the face(s) to replace those in the image. |
| Output Format | output_format | The output format of the video default:mp4 |
| watermark | watermark | Indicates if the generated result should include a watermark value: true and false default: true |