# FaceSwap > The Specific Face Swap lets you swap faces in one image by giving both the original image and the target image. ## Overview - **Model ID**: `single-face-swap` - **Category**: image - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/0c5b1566-4858-4c96-8a85-fa8063d17068.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_face_swap` - **Method**: POST ### Parameters - **`init_image`** (required): Please upload a image of a person - Type: file (image/jpeg,image/png,image/webp) - Example: Please upload an image - **`target_image`** (required): The target image that contains the face you want to replace from the initial image - Type: file (image/jpeg,image/png,image/webp) - Example: Please upload target image - **`reference_image`** (required): An image of a person you want to swap face with targeted face - Type: file (image/jpeg,image/png,image/webp) - Example: Please upload reference image - **`watermark`** (optional): Toggle to choose whether to add a watermark to the generated image. - Type: toggle ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/deepfake/single_face_swap \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "single-face-swap", "init_image": "https://assets.modelslab.com/generations/cefad037-48a6-48d7-aee8-ffd4fb331a89", "target_image": "https://assets.modelslab.com/generations/73830e96-0326-4a5b-9cb0-802208b7e700", "reference_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/ZQYryCETMTbyUhKsiUcpzgk2FpvfOU-metaaW1hZ2VbMV0ucG5n-.png", "watermark": false }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/deepfake/single_face_swap", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "single-face-swap", "init_image": "https://assets.modelslab.com/generations/cefad037-48a6-48d7-aee8-ffd4fb331a89", "target_image": "https://assets.modelslab.com/generations/73830e96-0326-4a5b-9cb0-802208b7e700", "reference_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/ZQYryCETMTbyUhKsiUcpzgk2FpvfOU-metaaW1hZ2VbMV0ucG5n-.png", "watermark": False } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/deepfake/single_face_swap", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "single-face-swap", "init_image": "https://assets.modelslab.com/generations/cefad037-48a6-48d7-aee8-ffd4fb331a89", "target_image": "https://assets.modelslab.com/generations/73830e96-0326-4a5b-9cb0-802208b7e700", "reference_image": "https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/livewire-tmp/ZQYryCETMTbyUhKsiUcpzgk2FpvfOU-metaaW1hZ2VbMV0ucG5n-.png", "watermark": false }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/single-face-swap/single-face-swap) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)