swap_image
to the target_image
.API | Task-type | Model | Description | Input Limitation |
---|---|---|---|---|
Multi-faceswap API | multi-face-swap | Qubico/image-toolkit | Swap faces in the target image sequentially using the chosen images. | Max 10MB, resolution under 2048x2048. |
Task-type | Pricing |
---|---|
multi-face-swap | $0.015 per use |
swap_image
face.target_image
face.{
"target_image": "Superman.png",
"swap_image": "Leonardo_Dicaprio.png",
"result_type": "url"
}
curl --location --request POST 'https://api.piapi.ai/api/face_swap/v1/async' \
--header 'X-API-Key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"target_image": "Superman.png",
"swap_image": "Leonardo_Dicaprio.png",
"result_type": "url"
}'
{
"code": 200,
"data": {
"task_id": "7a7ba527************1974d4316e22"
},
"message": "success"
}