Detect, analyze, and recognize faces with AI
Advanced facial analysis API for face detection, age/gender/emotion estimation, celebrity recognition, face comparison, and custom face re-identification repositories. Scalable, low-latency, cloud-based.
Features
Face Detection
Detect multiple faces in a single image with precise bounding boxes and 7 facial landmarks.
Age, Gender & Emotion
Estimate age range, gender, smile, eyeglasses, sunglasses, and dominant emotion for each face.
Celebrity Recognition
Identify celebrities in images with name and reference URLs. Separates recognized and unrecognized faces.
Face Comparison
Compare faces from two images to find matches — perfect for verification and identity confirmation.
Face Repositories
Create custom face databases to store, manage, and search facial features for re-identification.
Cloud-Based & Scalable
Low latency, high availability. Analyze large volumes of images without managing any infrastructure.
API Reference
10 endpoints, simple integration. Here's everything you need.
Supported Content Types
https://faceanalyzer-ai.p.rapidapi.com/faceanalysisDetect faces in an image with landmarks, gender, age range, smile, eyeglasses, sunglasses, and emotion estimation.
imagefilerequiredImage file to analyze — use with multipart/form-data
urlstringrequiredPublic URL of the image — use with application/x-www-form-urlencoded
Send either image (file upload) or url, not both.
{
"statusCode": 200,
"faces": [
{
"boundingBox": { ... },
"facialFeatures": {
"Gender": "male",
"Smile": true,
"Eyeglasses": false,
"Sunglasses": false,
"AgeRange": [25, 35],
"Emotions": ["HAPPY", 0.95]
},
"landmarks": {
"eyeLeft": [x, y],
"eyeRight": [x, y],
"mouth": [x, y],
"nose": [x, y],
"browLeft": [x, y],
"browRight": [x, y],
"chinBottom": [x, y]
}
}
]
}https://faceanalyzer-ai.p.rapidapi.com/celebrity-recognitionRecognize celebrities in an image. Returns celebrity names, info URLs, and facial features for each recognized face.
imagefilerequiredImage file to analyze — use with multipart/form-data
urlstringrequiredPublic URL of the image — use with application/x-www-form-urlencoded
Send either image or url, not both.
{
"statusCode": 200,
"celebritiesFaces": [
{
"boundingBox": { ... },
"facialFeatures": { ... },
"landmarks": { ... },
"celebrityName": "John Doe",
"celebrityUrlsInfo": ["https://..."]
}
],
"unrecognizedFaces": [
{
"boundingBox": { ... },
"facialFeatures": { ... },
"landmarks": { ... }
}
]
}https://faceanalyzer-ai.p.rapidapi.com/compare-facesCompare faces from two different images. Returns matched and unmatched faces from the target image.
source_imagefilerequiredSource face image file — use with multipart/form-data
source_image_urlstringrequiredSource face image URL — use with form-urlencoded
target_imagefilerequiredTarget image to search for matching faces — file upload
target_image_urlstringrequiredTarget image URL to search for matching faces
Send either source_image or source_image_url, and either target_image or target_image_url.
{
"statusCode": 200,
"matchedFaces": [
{ "boundingBox": { ... }, "landmarks": { ... } }
],
"unmatchedFaces": [
{ "boundingBox": { ... }, "landmarks": { ... } }
]
}https://faceanalyzer-ai.p.rapidapi.com/create-facial-repositoryCreate a custom facial repository to store facial features for re-identification.
repository_idstringrequiredUnique identifier for the new repository
{
"statusCode": 200,
"message": "OK"
}https://faceanalyzer-ai.p.rapidapi.com/delete-facial-repositoryDelete an existing facial repository and all its stored faces.
repository_idstringrequiredID of the repository to delete
{
"statusCode": 200,
"message": "OK"
}https://faceanalyzer-ai.p.rapidapi.com/list-facial-repositoriesList all created facial repositories.
{
"statusCode": 200,
"FacialRepositoriesId": ["repo-1", "repo-2"]
}https://faceanalyzer-ai.p.rapidapi.com/save-face-in-repositorySave a face's features from an image into a repository for later re-identification.
imagefilerequiredImage containing the face — use with multipart/form-data
urlstringrequiredPublic URL of the image — use with form-urlencoded
repository_idstringrequiredID of the target repository
external_idstringrequiredExternal identifier for the face (e.g. person name)
max_facesnumberMaximum number of faces to save from the image
Send either image or url, not both.
{
"statusCode": 200,
"faces_id": ["face-id-1", "face-id-2"]
}https://faceanalyzer-ai.p.rapidapi.com/list-repository-facesList all faces stored in a specific repository.
repository_idstringrequiredID of the repository (query string parameter)
{
"statusCode": 200,
"Faces": [
{ "FaceId": "...", "ExternalImageId": "..." }
]
}https://faceanalyzer-ai.p.rapidapi.com/delete-face-from-repositoryDelete one or more faces from a repository.
repository_idstringrequiredID of the repository
face_idsarrayrequiredArray of face IDs to delete
{
"statusCode": 200,
"message": "OK"
}https://faceanalyzer-ai.p.rapidapi.com/search-face-in-repositorySearch for a face in a repository by providing an image. Returns matching faces with similarity scores.
imagefilerequiredImage containing the face to search — use with multipart/form-data
urlstringrequiredPublic URL of the image — use with form-urlencoded
repository_idstringrequiredID of the repository to search in
Send either image or url, not both.
{
"statusCode": 200,
"SearchedFaceBoundingBox": { ... },
"FaceMatches": [
{
"Similarity": 98,
"Face": {
"FaceId": "...",
"BoundingBox": { ... },
"ExternalImageId": "..."
}
}
]
}Response
Returns JSON with detected faces, facial features, landmarks, and endpoint-specific data (celebrity info, matches, repository entries).
Quick Start
Copy-paste code to get started in seconds. Replace YOUR_API_KEY with your RapidAPI key.
# Face Analysis
curl -X POST "https://faceanalyzer-ai.p.rapidapi.com/faceanalysis" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: faceanalyzer-ai.p.rapidapi.com" \
-F "image=@photo.jpg"
# Celebrity Recognition
curl -X POST "https://faceanalyzer-ai.p.rapidapi.com/celebrity-recognition" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: faceanalyzer-ai.p.rapidapi.com" \
-d "url=https://example.com/celeb.jpg"
# Compare Faces
curl -X POST "https://faceanalyzer-ai.p.rapidapi.com/compare-faces" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: faceanalyzer-ai.p.rapidapi.com" \
-F "source_image=@person1.jpg" \
-F "target_image=@group.jpg"
# Search Face in Repository
curl -X POST "https://faceanalyzer-ai.p.rapidapi.com/search-face-in-repository" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: faceanalyzer-ai.p.rapidapi.com" \
-F "image=@person.jpg" \
-F "repository_id=my-repo"Pricing
Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.
Basic
30 requests/mo
- Full API access
- All endpoints
- Standard support
Pro
5,000 requests/mo
- Full API access
- All endpoints
- Standard support
Ultra
10,000 requests/mo
- Full API access
- All endpoints
- Standard support
Mega
50,000 requests/mo
- Full API access
- All endpoints
- Standard support
Start Using Face Analyzer Today
Sign up on RapidAPI to get your API key. The free tier includes generous monthly requests — no credit card required.