Muapi's face swap API replaces a face in an existing image or video with a face from a source photo, preserving lighting, expression, and skin tone. Use one REST API and the same submit-and-poll pattern as every other model.
Swap a face from a source photo onto a target image while preserving lighting and facial geometry.
Replace a face throughout a video frame by frame with consistent expression and lighting.
A face swap API takes a source face photo and an existing image or video, then replaces the target face while preserving lighting, expression, and skin tone.
Muapi exposes separate image and video endpoints with one API key, one request-and-poll flow, and pay-as-you-go pricing.
Use the image endpoint for still photos and the video endpoint for frame-by-frame replacement.
Use target_index to select which detected face should be replaced in a group image or scene.
The video endpoint supports target_gender filtering for multi-person footage.
The models blend the source identity into the target while retaining target lighting and motion.
Combine a face swap with a lipsync model to replace the face and synchronize speech in one workflow.
Image face swap is $0.02 per generation; video face swap is priced by video length.
| Model | Input | Price | Best For |
|---|---|---|---|
| AI Image Face Swap | Two images | $0.02/generation | Photos, memes, and avatars |
| AI Video Face Swap | Image + video | ~$0.10/sec | Frame-by-frame video replacement |
The two endpoints use different field meanings. Check the model schema carefully when switching between image and video face swap.
curl -X POST https://api.muapi.ai/api/v1/ai-image-face-swap \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"image_url": "https://example.com/target-scene.jpg",
"swap_url": "https://example.com/source-face.jpg"
}'import requests
response = requests.post(
"https://api.muapi.ai/api/v1/ai-image-face-swap",
headers={"x-api-key": "YOUR_API_KEY"},
json={
"image_url": "https://example.com/target-scene.jpg",
"swap_url": "https://example.com/source-face.jpg",
},
)
request_id = response.json()["request_id"]
result = requests.get(
f"https://api.muapi.ai/api/v1/predictions/{request_id}/result",
headers={"x-api-key": "YOUR_API_KEY"},
)
print(result.json())It replaces a face in an existing image or video with a face from a source photo through two REST endpoints.
Image face swap costs $0.02 per generation. Video face swap is priced by duration, roughly $0.10 per second in practice.
Yes. Both endpoints accept target_index, and the video endpoint also supports target_gender filtering.
Use clear, front-facing source images and check the selected model's Playground schema for media size, resolution, and frame limits.
Only submit photos of people who have consented to this use. Do not use another person's likeness to impersonate them without permission.