Skin Shade Detection API
This API employs advanced algorithms to factor in undertones, providing a more accurate and nuanced understanding of skin color to create more personalized and inclusive user experiences.
Endpoints
GET /api/generatekey
Generates a new API key. This endpoint is rate-limited to 1 request per month for the free tier.
Response
A JSON object containing the generated API key.
POST /api/skinshade
Detects the skin shade from an image based on the tone and undertones.
GET /api/skinshade-health
Check the application's health, the AI model, and the database.
Response
A JSON object containing the following fields:
Status Codes
Example Response
Error Codes
403: Missing or invalid API key.
429: API key exceeded request limit.
400: No file part, selected file, or invalid file type.
Authentication
To authenticate your requests, include your API key in the x-api-key
header.
Request Limit
The generatekey
endpoint is rate-limited to 1 request per month for the free tier. The skinshade
endpoint is rate-limited to 100 requests per month per API key for the free tier.
Acceptable Image Files
The skinshade
endpoint accepts image files of type png, jpg, jpeg, and heic. The maximum file size is 5MB.
Last updated