FaceDetect
namifusion/detect_faces
A face detection model used to detect facial information contained in input elements.
Examples
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| urlMedia URL | text | — | Image or video URL. At least one of url or img is required. url has higher priority when both are provided. |
| imgBase64 Image | textarea | — | Base64-encoded image input (used when url is not provided). |
| num_framesNumber of Frames | number | 5 | Number of frames to sample from video input. |
| return_face_urlReturn Face URL | boolean | true | Whether to return cropped face image URLs. |
| single_faceSingle Face Only | boolean | false | Whether to return only the largest detected face. |
| deduplicateDeduplicate Faces | boolean | true | Whether to deduplicate faces across sampled video frames. |
| similarity_thresholdSimilarity Threshold | number | 0.45 | Deduplication similarity threshold (0.0-1.0); higher means stricter. |
| time_rangeTime Range | object | [object Object] | Optional video processing range in seconds; only effective for video input. |
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/detect_faces \
-H "Authorization: Bearer sk-YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "input": { "url": ..., "img": ..., "num_frames": ... } }'Related models
namifusion Image/Video Face Swap
NamiFusion Video Face Swap Model Supports images and videos, 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!
换脸
NamiFusion Faceswap v5 is a high-speed, cost-effective model designed for large-scale, real-time workflows, delivering lifelike results with automatic skin tone matching and professional quality.
Image FaceSwap Pro
Image FaceSwap Pro supports single-face automatic detection and multi-face precise mapping with keypoint pairs.
namifusion Image Face Swap
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!
FaceDetect
A face detection model used to detect facial information contained in input elements.