Portrait compositeCrop 1SwapFace
Insight Face SwapFace creates asynchronous face-swap tasks from a target image and a source face image.
Portrait compositeCrop 1
Portrait compositeCrop 2
Portrait compositeCrop 3
Portrait compositeCrop 4Prompt to image, in context
https://example.com/target.jpg
- Source
- Face image URL
Portrait composite
A natural-looking editorial portrait composite with consistent lighting and skin tone.
What you can build with SwapFace
Prompt driven generation
Submit a concise prompt and get production-ready image output through one TTAPI job.
Core controls only
Keep integration simple with prompt, model, output settings, and callback handling.
Async result flow
Use polling or webhook callbacks so long-running generations do not block your UI.
Ready for product UI
Return SwapFace results that can be displayed, stored, or passed into downstream workflows.
Per-action, in quota
Usage is metered in quota by model, action, and output settings.
Headers and submit parameters
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 referenceHeaders
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
targetImagestringrequiredURL of the image whose face will be replaced.
swapImagestringrequiredURL of the source face image.
hookUrlstringoptionalCallback URL for task completion.
From key to first result
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"}'