namifusion

namifusion Image Face Swap

namifusion/faceswap-image

NamiFusion Face Swap Model Easy single or multi-person face swapping. Compatible with multiple model_style options, can output realistic results or one-click beauty-enhanced versions — natural and great-looking!

Examples

namifusion Image Face Swap example 1

Parameters

NameTypeDefaultDescription
source_url *Source Faceimage_uploadThe URL of the entered face file
target_url *Target faceimage_uploadThe URL of the file containing the face to be replaced.
single_face_modeSingle-face swapbooleanPerforming tasks based on single-person face swapping
model_stylemodel styleselectrealisticFace swap style. Realistic: natural look with lifelike skin tones. Beautify: smoothing and brightening enhancement. Lossless: preserves all original facial details for highest fidelity.
face_enhanceFace enhancementbooleanEnable face enhancement; enabling it will result in higher resolution faces.
face_mappingFace mappingarrayRequired for multi-person face swapping. Each item maps a source face to a target face. Use the face detection API to obtain face info, then assemble into this array. `source_face_info.face_url` is the new face; `target_face_info.face_url` is the face to be replaced.

API

Call this model through one unified REST API. Get a key on the API Keys page.

curl -X POST https://www.namifusion.com/api/v1/marketplace/run/namifusion/faceswap-image \
  -H "Authorization: Bearer sk-YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "input": { "source_url": ..., "target_url": ..., "single_face_mode": ... } }'
namifusion Image Face Swap API — Pricing, Playground & Docs | NamiFusion