Drop a photo of the personThe face in this photo is copied onto the target.
Drop the photo to editFaces here are replaced with the source face.
The result appears here. Drag across it to compare with the original.
curl -X POST http://localhost:8000/v1/swap \ -F [email protected] \ -F [email protected] \ -F source_face_index=0 \ -F target_face_index=-1 \ -o result.jpg
GET /v1/health | Model status and execution provider. |
POST /v1/detect | Field image. Returns faces with bbox, score, age, gender. Add ?draw=true for an annotated JPEG. |
POST /v1/swap | Fields source, target, optional source_face_index, target_face_index (-1 = all), format (jpeg or json). |
| Auth | If the server has API_KEY set, send X-API-Key on every request. |