GOTH LABS.
Endpoints · goth-id

Face swap

Put a consenting identity into a video with Goth-ID.

POST/v1/faceswap
Goth-ID is in internal testing. Partner keys receive 403 model_not_permitted until it opens. Only use faces you have the right to use: your own, consenting adults with documented consent, or synthetic identities. See Content policy.

Body parameters

modelstringrequired
Must be goth-id.
target_urlstringrequired
HTTPS URL of the target video: MP4 or MOV, up to 15 seconds and 100 MB. The output follows its motion, camera and sound.
face_urlstringrequired
HTTPS URL of a clear photo of the identity (JPG, PNG or WEBP, up to 20 MB). With one face it replaces the woman in the target video; everyone else is unchanged.
face2_urlstringoptional
A second identity. With two faces, face_url replaces the person on the left and face2_url the person on the right.
promptstringoptional
Optional notes about the face, hair or look to keep. Up to 1,000 characters.
aspect_ratiostringoptional
Output aspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 or 9:21. Default 9:16; match your target video.

The output is 480p and as long as the target video, rounded up to whole seconds (minimum 5). The job is priced live from that length and charged in credits when it is created; a failed job is refunded in full.

Example

curl https://api.goth.video/v1/faceswap \
  -H "Authorization: Bearer $GOTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "goth-id",
    "face_url": "https://example.com/consenting-model.jpg",
    "target_url": "https://example.com/scene.mp4",
    "aspect_ratio": "9:16"
  }'

Two faces

{
  "model": "goth-id",
  "target_url": "https://example.com/two-people.mp4",
  "face_url": "https://example.com/model-a.jpg",
  "face2_url": "https://example.com/model-b.jpg"
}

Response

Returns 202 with a job of type: "faceswap". When it succeeds, output.url holds the swapped video.