🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
FaceSwap thumbnail

ModelsLab/FaceSwap

single-face-swap
The Specific Face Swap lets you swap faces in one image by giving both the original image and the target image.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/deepfake/single_face_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/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,
"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 NameParameterTechnical Description
Initial imageinit_imagePlease upload a image of a person
Target Imagetarget_imageThe target image that contains the face you want to replace from the initial image
Reference Imagereference_imageAn image of a person you want to swap face with targeted face
WatermarkwatermarkToggle to choose whether to add a watermark to the generated image.