# Multiple Face Swap > The Multiple Face Swap endpoint allows swapping all detected faces in a single image with faces from a target image. ## Overview - **Model ID**: `multiple-face-swap` - **Category**: image - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/93bf8634-b429-45d1-9764-a10d8766c85d.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/multiple_face_swap` - **Method**: POST ### Parameters - **`init_image`** (required): The initial image that contains the faces to be swapped. - Type: file - Example: The initial image that contains the faces to be swapped. - **`target_image`** (required): The target image that contains the faces to replace those in the initial image. - Type: file - Example: The target image that contains the faces to replace those in the initial image. ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/deepfake/multiple_face_swap \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "multiple-face-swap", "init_image": "https://assets.modelslab.com/generations/b8dcc2fc-586f-49ab-ad79-3604349eead3", "target_image": "https://assets.modelslab.com/generations/f064e7b1-f687-4038-a012-3baaf9413eb0" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/deepfake/multiple_face_swap", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "multiple-face-swap", "init_image": "https://assets.modelslab.com/generations/b8dcc2fc-586f-49ab-ad79-3604349eead3", "target_image": "https://assets.modelslab.com/generations/f064e7b1-f687-4038-a012-3baaf9413eb0" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/deepfake/multiple_face_swap", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "multiple-face-swap", "init_image": "https://assets.modelslab.com/generations/b8dcc2fc-586f-49ab-ad79-3604349eead3", "target_image": "https://assets.modelslab.com/generations/f064e7b1-f687-4038-a012-3baaf9413eb0" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/multiple-face-swap/multiple-face-swap) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)