Image Gender Prediction API
Upload an image with multipart/form-data and receive gender predictions with confidence scores for every detected face, plus your remaining request count.
Quickstart
POST multipart/form-data// Headers
apiKey:
YOUR_API_KEY
// Form Data
formData.append("file", yourImageFile);// Sample Response
{
"success": true,
"detections": [
{
"category": "face",
"gender": "female",
"probability": 0.97
}
],
"remainingRequests": 119
}Send the image using the file field. Supported formats include JPEG, PNG, WEBP, BMP, and GIF, up to 10MB.
How it works
POST multipart/form-data to the /api endpoint with your apiKey header and a file field.
Get a detections array with gender and probability for each face, plus remainingRequests.
Use the predictions to enrich profiles, personalize content, or feed moderation workflows.
curl -X POST 'https://api.genderrecognition.com/v1/image-gender/api' \ -H 'apiKey: YOUR_API_KEY' \ -F 'file=@/path/to/your/photo.jpg'
const apiKey = "YOUR_API_KEY";
const formData = new FormData();
formData.append("file", yourImageFile);
const response = await fetch(
"https://api.genderrecognition.com/v1/image-gender/api",
{
method: "POST",
headers: {
apiKey,
},
body: formData,
}
);
const result = await response.json();Hire an Expert
Choose a specialist based on your product and API integration goals.
Ahmad Raza
Senior AI Integration Specialist
Leads AI workflow integration for SaaS products and enterprise automation.
Usman Farooq
Software Architecture & Design Lead
Designs scalable architectures for high-growth products and service platforms.
Bilal Ahmed
Senior Frontend Developer
Builds responsive, performant user interfaces with strong product polish.
Hassan Zahid
Senior Backend Developer
Builds secure APIs and backend services for mission-critical applications.
We provide the best gender recognition services using advanced AI technology to ensure accuracy and privacy for all users.
Create an account in minutes to claim your API key and have unrestricted access.
Register AccountThe API supports JPEG, PNG, WEBP, BMP, and GIF images up to 10MB in size.
The detections array includes one entry per detected face or person, each with its own gender and probability. The category field is either "face" (gender predicted from a visible, matched face) or "person" (no face could be matched — for example, someone facing away from the camera — so gender was predicted from the body instead). Each individual appears only once: if a face and body were both detected and matched together, only the "face" entry is returned.
Include your API key in the apiKey header and upload the image in a multipart/form-data request.
Each uploaded image consumes one request from your remaining quota, regardless of how many faces it contains.
The API returns a successful response with an empty detections array.