


SwapFace is an Insight Face image editing API on TTAPI. Submit a target image and a source face image as an async face-swap job, then fetch the result.



Submit a concise prompt and get production-ready image output through one TTAPI job.
Keep integration simple with prompt, model, output settings, and callback handling.
Use polling or webhook callbacks so long-running generations do not block your UI.
Return SwapFace results that can be displayed, stored, or passed into downstream workflows.
Usage is metered in quota by model, action, and output settings.
Use the endpoint below with your TTAPI key and the request fields shown.
/insightFace/v1/swapSubmit an asynchronous face-swap task.
Official reference/insightFace/v1/fetchRetrieve a face-swap task result.
Official referenceTT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
targetImagestringrequiredURL of the image whose face will be replaced.
swapImagestringrequiredURL of the source face image.
hookUrlstringoptionalCallback URL for task completion.
Copy the resolved endpoint, authentication headers, and request body for this model.
curl --request POST \
--url https://api.ttapi.io/insightFace/v1/swap \
--header 'TT-API-KEY: $TTAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"targetImage":"https://example.com/target.jpg","swapImage":"https://example.com/source.jpg","hookUrl":"https://example.com/callback"}'