ModelsLab/Specific FaceSwap
specific-video-swapThe Specific Video Swap endpoint lets you replace a selected face in a video using a reference image, while keeping all other faces unchanged.
API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v6/deepfake/specific_video_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_video": "https://assets.modelslab.com/generations/fcbd9815-64d2-4c57-812f-0ed043f6fb67","init_image": "https://assets.modelslab.com/generations/f139a3a7-1c64-4255-a53d-5b1c2a14b564","reference_image": "https://assets.modelslab.com/generations/250f4a3b-0e1c-4523-aecd-acafd707f12d","watermark": false,"output_format\t": "mp4","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 |
|---|---|---|
| Init Video | init_video | The video containing the face(s) to replace the faces in the image. |
| Init Image | init_image | The image containing multiple faces to be swapped. |
| Reference Image | reference_image | A reference image containing the specific face to swap from the initial image. |
| Watermark | watermark | Indicates if the generated result should include a watermark value: true and false default: true |
| Output format | output_format | The output format of the video default:mp4 |