---
title: "POST /insightFace/v1/swap"
method: POST
path: "/insightFace/v1/swap"
---

# POST /insightFace/v1/swap

`POST /insightFace/v1/swap`

Create face swap service, this endpoint interaction is the same as TTAPI Midjourney API interaction mode (Async)

## Request body

- SwapRequest
  - `targetImage` string, required — Template image: URL of the face swap template image
  - `swapImage` string, required — Face image: URL of the image to be face swapped
  - `hookUrl` string — Callback URL address. When the task completes or fails, notifications will be sent to this address. The <a href="fetch" target="_self">notification data structure</a> is consistent with the fetch structure. If not set, you need to call the <a href="fetch" target="_self">fetch</a> endpoint to query the result.

## Response `200`

Request successful

- object
  - `status` string, required
  - `message` string, required
  - `data` object, required

## Other responses

- `400` — Parameter error
- `401` — Authorization failed

---

[API](https://skmtc.dev/ttapi/apis/flowmusic-api-docs.md) · [All operations](https://skmtc.dev/ttapi/apis/flowmusic-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ttapi/flowmusic-api-docs/revisions/f27f8a59dbd0/schema)
