# MultiFace Deepfake > Multiface Deepfake allows swapping all detected faces in a video with faces from an reference image. ## Overview - **Model ID**: `multiface-deepfake` - **Category**: video - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/52ced956-90f7-4d80-82ba-a5dcf093163b.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/deepfake/single_video_swap` - **Method**: POST ### Parameters - **`init_image`** (required): Upload the image of the person faces to be swapped in video. - Type: file - Example: Please upload the image here - **`init_video`** (required): Upload a video (under 1 minute) containing the face(s) to replace those in the image. - Type: file - Example: Please upoad the video - **`watermark`** (optional): Indicates if the generated result should include a watermark value: true and false default: true - Type: toggle ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/deepfake/single_video_swap \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "multiface-deepfake", "init_image": "https://assets.modelslab.com/generations/12575636-0c2d-40e3-8725-d16bc70e6cec", "init_video": "https://assets.modelslab.com/generations/d86611f8-b2eb-4dbf-9ff9-71d32f4a080f", "watermark": false }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/deepfake/single_video_swap", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "multiface-deepfake", "init_image": "https://assets.modelslab.com/generations/12575636-0c2d-40e3-8725-d16bc70e6cec", "init_video": "https://assets.modelslab.com/generations/d86611f8-b2eb-4dbf-9ff9-71d32f4a080f", "watermark": False } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/deepfake/single_video_swap", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "multiface-deepfake", "init_image": "https://assets.modelslab.com/generations/12575636-0c2d-40e3-8725-d16bc70e6cec", "init_video": "https://assets.modelslab.com/generations/d86611f8-b2eb-4dbf-9ff9-71d32f4a080f", "watermark": false }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/multiface-deepfake/multiface-deepfake) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)