Skip to main content
POST
Face swap in video

Request

Make a POST request to below endpoint and pass the required parameters in the request body.
curl

Body

json

Body

application/json
key
string
required

Your API Key used for request authorization

init_image
string<uri>
required

The image containing multiple faces to be swapped

init_video
string<uri>
required

The video containing the face(s) to replace the faces in the image. Must be less than 1 minute

output_format
string
default:mp4

The output format of the video

watermark
boolean
default:true

Indicates if the generated result should include a watermark

webhook
string<uri> | null

A URL to receive a POST API call once the video generation is complete

track_id
integer | null

An ID included in the webhook response to identify the request

Response

Video face swap response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the video in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of URLs to the generated videos

Array of proxy URLs for the generated videos

meta
object

Metadata about the video generation process