Instantly enhance your apps with our fast and easy-to-use Faceswap API, creating remarkable customised images that will amaze your users!
- Cost Effective
- Low Latency
- Supports High Concurrency
- Easy Setup and Integration
- Asynchronous
- Automatic face detection
- Bulk generation
- Standard RESTful API
- Webhook
- Standard: $0.01/call
- Custom Dedicated Deployment: Contact us via email!
Please refer to our pricing page for more information.
- Register for PiAPI's Workspace using your GitHub account.
- Obtain your API KEY from our Workspace
- Start coding right away!
Create a Faceswap call
curl --request POST \
--url https://api.piapi.ai/api/face_swap/v1/async \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: {{x-api-key}}' \
--data '{
"target_image": "Superman.png",
"swap_image": "Leonardo_Dicaprio.png",
"result_type": "url"
}'
Response
{
"code": 200,
"data": {
"task_id": "record_this_taskID"
},
"message": "success"
}
Fetch the Faceswap call
curl --request POST \
--url https://api.piapi.ai/api/face_swap/v1/fetch \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: {{x-api-key}}' \
--data '{
"task_id": "Insert_the_taskID_here"
}'
Response - Check out our documentation for more information!
Email: contact@piapi.ai
