ModelsLab/FaceSwap
single-face-swapThe Specific Face Swap lets you swap faces in one image by giving both the original image and the target image.
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 Name | Parameter | Technical Description |
|---|---|---|
| Initial image | init_image | Please upload a image of a person |
| Target Image | target_image | The target image that contains the face you want to replace from the initial image |
| Reference Image | reference_image | An image of a person you want to swap face with targeted face |
| Watermark | watermark | Toggle to choose whether to add a watermark to the generated image. |