curl -X POST "https://api.pikzels.com/v2/thumbnail/faceswap" \
-H "X-Api-Key: pkz_yourapikey" \
-H "Content-Type: application/json" \
--data-raw '{
"image_url": "https://cdn.pikzels.com/example.png",
"image_base64": "I bought my own island",
"face_image": "https://cdn.pikzels.com/example.png",
"face_image_base64": "I bought my own island",
"format": "16:9"
}'{
"output": "https://cdn.pikzels.com/example.png",
"request_id": "18b2ad5e-2a9e-4d3f-b9a8-9f2a1e0b1234"
}Apply FaceSwap to a thumbnail.
Generated output URLs expire after 24 hours.
curl -X POST "https://api.pikzels.com/v2/thumbnail/faceswap" \
-H "X-Api-Key: pkz_yourapikey" \
-H "Content-Type: application/json" \
--data-raw '{
"image_url": "https://cdn.pikzels.com/example.png",
"image_base64": "I bought my own island",
"face_image": "https://cdn.pikzels.com/example.png",
"face_image_base64": "I bought my own island",
"format": "16:9"
}'{
"output": "https://cdn.pikzels.com/example.png",
"request_id": "18b2ad5e-2a9e-4d3f-b9a8-9f2a1e0b1234"
}Your Pikzels API key (prefix: pkz_)
Target image, HTTPS URL -- provide this or image_base64
Target image, base64 data URL -- provide this or image_url
Face to swap in, HTTPS URL -- provide this or face_image_base64
Face to swap in, base64 data URL -- provide this or face_image
Allowed values: "16:9", "9:16", "1:1".
Optional mask selecting which face(s) or region to target, HTTPS URL -- provide this or mask_base64
Optional mask selecting which face(s) or region to target, base64 data URL -- provide this or mask_url