To choose a face swap API, start with two questions: what media will your users send (a photo, a video clip, or an animated GIF), and what should change in it (one face, several faces, or the whole head)? Those two answers point you to one of VidMage's five face swap APIs. Then compare face mapping, output, and credit cost, and open the docs and usage tutorial for the API you pick.
Note: You need an active VidMage subscription and an API key from the Developer Console to submit tasks.
When to Use Each Face Swap Workflow
Let the file your users upload make the first cut, then let the edit they want make the second.
- A single portrait or selfie: The photo face swap API fits avatar makers, profile photo tools, and template apps where one face goes into one picture. It's also the cheapest way to test your idea, at 1 credit per image.
- One person in a short clip: The video face swap API follows one tracked face through the clip. Plan your preview around the whole video, not a single frame, and tell users that a new person who walks into the scene can confuse the selection.
- A group photo: The multi-face swap API on the photo route lets you send up to 20 mappings in one request, and VidMage still bills the photo once. Use it for team photos, wedding shots, or party pictures where everyone gets a new face.
- Several people in one video: The video route of the multi-face swap API takes up to four mappings per clip. If your clips often show more people than that, design your app so users choose which four faces to change.
- Reaction GIFs and stickers: GIF Face Swap keeps the result as an animated GIF. It has no frame rate or loop count settings, so check how the face looks at the moment the loop restarts.
- A new hairstyle, head shape, or full look: Head Swap replaces the whole head instead of only the face. It matches people to references by their order and your optional prompt, not by face index, and the video route only takes clips of 5 to 15 seconds.
Face Swap API Comparison: Inputs, Face Mapping, and Output
All five VidMage face swap APIs put a new face into your media, so they look alike at first. The differences show up once you build, including the file your users can upload, how many people you can change in one request, and how fast the bill grows as clips get longer.
Use the table to match your users' media and the edit they want to a single endpoint, and to see what each request costs before you write any code. Read the columns in this order:
- Inputs: the What you edit column shows the media each API takes and any length limit.
- Features: The next two columns show how many faces or heads you can change and how VidMage picks them.
- Output settings: The Result column shows whether you get an image, a video, or an animated GIF, plus the Head Swap aspect ratios.
- Cost: The Credits column shows whether you pay per image or per second, and any minimum charge.
API | What you edit | New face or head from | How VidMage knows which face to change | Result | Credits |
|---|---|---|---|---|---|
Photo Face Swap | One photo (public URL) | One face photo | Optional target and reference face index, counted from 0 | imageUrl (image) | 1 per image |
Video Face Swap | One clip up to 300 seconds | One face photo | Optional index for one tracked face per request | videoUrl (video) | 1 per second |
Multi Face Swap, photo | One photo (public URL) | 1 to 20 face mappings, each with its own face photo | An optional index pair inside each mapping (0 to 99) | imageUrl (image) | 1 per image, not per mapping |
Multi Face Swap, video | One clip up to 300 seconds | 1 to 4 face mappings | An optional index pair inside each mapping (0 to 99) | videoUrl (video) | 1 per second |
GIF Face Swap | One animated GIF up to 300 seconds | One face photo | Optional target and reference face index (0 to 99) | gifUrl (animated GIF) | 1 per second of GIF |
Head Swap, photo | One photo (public URL) | 1 to 4 head photos, in order | Optional prompt up to 1,000 characters that matches people to Reference 1 to 4 | imageUrl (image), 7 aspect ratios, 1:1 by default | 5 per image |
Head Swap, video | One clip of 5 to 15 seconds | 1 to 4 head photos, in order | Optional prompt up to 1,000 characters | videoUrl (video) | 15 per second, 75 minimum |
NOTE: The price gap between a face swap and a head swap grows fast on video. A 10-second clip currently costs about 10 credits with the video face swap API and 150 credits with Video Head Swap.
To test settings or compare results before you build, run a sample on each API's Playground tab.
How Face Mapping Works in VidMage Face Swap APIs
A face index is a number that points to one face inside one file, starting at 0. VidMage doesn't publish a fixed left-to-right order for those numbers, and the same person can get a different index in another photo or clip, so never store an index as a person's ID.
The single-face APIs (photo, video, and GIF) take one index for the target and one for the reference. Multi Face Swap puts an index pair inside each mapping, so each target face connects to its own reference photo. If you leave the indexes out and VidMage finds more than one face, the task can stop with a needs_input status and return numbered previews, so your app can show those previews and ask the user to pick.
Similarly, Head Swap does not use indexes. You list one to four head photos in order and use the prompt to say who becomes Reference 1, Reference 2, and so on.
How to Choose a Face Swap API in VidMage
Step 1: Go to the VidMage AI Face Swap APIs page and scroll to Choose APIs for your face swap workflow. Click Find your API to drop down to the full list.

Step 2: Narrow the list with the Output menu, which offers Image, Video, and All outputs, or type a task such as "GIF" or "multi face" into the Find an API box. The small tag above each API name tells you what it returns, and the summary beside it gives you the main limits.
Step 3: For an API on your shortlist, use its Playground to test a representative file and compare results. Check the displayed credit cost before submitting.

Step 4: Once you pick an API, click its API tab or open its page in the VidMage API docs to see every parameter and limit. For a photo swap, follow How to Swap Faces in Photos With the VidMage API. For a video swap, follow How to Swap Faces in Videos With the VidMage API. For Multi Face Swap, GIF Face Swap, or Head Swap, use the docs page to send your first request.
Try it in VidMage
Open the tool and follow the steps above.

