⚡ NEW: Flux Klein 9B — Faster inference, stunning quality · Try Now
curl --request POST \
--url https://modelslab.com/api/v6/faceswap/multiple_face_swap \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"target_image": "<string>",
"watermark": true,
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"init_image": "<string>",
"target_image": "<string>",
"reference_image": "<string>",
"seed": 123,
"temp": "<string>",
"file_prefix": "<string>",
"model_save_format": "<string>",
"watermark": "<string>",
"watermark_image": "<string>"
}
}Swap all detected faces in a single image with faces from a target image.
curl --request POST \
--url https://modelslab.com/api/v6/faceswap/multiple_face_swap \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"target_image": "<string>",
"watermark": true,
"base64": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"init_image": "<string>",
"target_image": "<string>",
"reference_image": "<string>",
"seed": 123,
"temp": "<string>",
"file_prefix": "<string>",
"model_save_format": "<string>",
"watermark": "<string>",
"watermark_image": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
POST request to below endpoint and pass the required parameters in the request body.
--request POST 'https://modelslab.com/api/v6/faceswap/multiple_face_swap' \
{
"key": "your_api_key",
"init_image":"https://i.pinimg.com/564x/4c/6a/d0/4c6ad0f74a3a251344cb115699a9a7c9.jpg",
"target_image":"https://i.pinimg.com/564x/11/ac/0d/11ac0ddaf6962e395f30abc61043393e.jpg",
"base64":false,
"webhook": null,
"track_id": null
}
Your API Key used for request authorization
The initial image that contains the faces to be swapped
The target image that contains the faces to replace those in the initial image
Indicates if the generated result should include a watermark
Input image is base64 format
A URL to receive a POST API call once the image generation is complete
An ID included in the webhook response to identify the request
Face swap response
success Time taken to generate the result in seconds
Unique identifier for the generation request
Array of URLs to the generated images
Array of proxy URLs for the generated images
Metadata about the generation process and parameters used
Show child attributes
Was this page helpful?