---
title: "Generate Video Face Swap"
method: POST
path: "/api/v1/videofaceswap/generate"
---

# Generate Video Face Swap

`POST /api/v1/videofaceswap/generate`

## Headers

- `Authorization` string, required

## Request body

- object
  - `reference_video` string, required — target video, Max 200M
  - `reference_img` string, required — target image, Max 5M
  - `upscaler` 1 | 2, required — Convert video resolution, 1 -> 720p, 2-> 1080p (1.5x price)
  - `start_time` number, required — The start time of the conversion (in seconds)
  - `end_time` number, required — Conversion end time (in seconds)
  - `enhance_face` boolean — enable (1.5x price)
  - `custom_callback_url` string, uri — Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

## Response `200`

- object
  - `code` integer, required
  - `msg` string, required
  - `data` object, required
    - `img_uuid` string, required

## Other responses

- `401`
- `500`

---

[API](https://skmtc.net/goenhance/apis/goenhance-api.md) · [All operations](https://skmtc.net/goenhance/apis/goenhance-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goenhance/goenhance-api/versions/0f636e1b6caf/schema)
