


swapface is available through TTAPI. Insight Face SwapFace creates asynchronous face-swap tasks from a target image and a source face image.



A clean identity replacement that preserves the target portrait's framing and tonal balance.
The result keeps the target pose and scene while adapting the source facial identity.
Facial features blend into the target image while retaining its direction of light and color mood.
The composite changes identity without replacing the target image's surrounding scene or styling.
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"}'