DEVELOPER GUIDE / HUEMN FACE
Start with a
clear contract.
Use an operator-provided endpoint and a scoped API key. Huemn is rolling out through controlled evaluation; this guide does not imply unrestricted production availability.
Only submit images you are authorized to process. Never embed a secret key in public browser code, commit it to source control, or include it in a URL. A key identifies your tenant and processing purpose; it does not establish consent.
Your first request
Prepare a JSON file containing an authorized JPEG or PNG image, encoded as Base64. Images are limited to 5 MiB each, 8192 pixels per side and 20 megapixels. Send image bytes, not a remote URL.
{ "image": { "base64": "YOUR_AUTHORIZED_IMAGE_BASE64" } }Set HUEMN_API_ORIGIN to the endpoint supplied for your evaluation and inject HUEMN_API_KEY from your secret manager. The command below uses environment variables rather than a literal credential.
curl "$HUEMN_API_ORIGIN/v1/faces/detect" \
-H "Authorization: Bearer $HUEMN_API_KEY" \
-H "Content-Type: application/json" \
--data @authorized-image.jsonA detection response includes a requestId, a modelVersion and a list of faces with normalized bounding boxes and confidence values. Detection does not establish identity.
Integration surfaces
| HTTP operation | Purpose |
|---|---|
POST /v1/faces/detect | Locate faces in one image. |
POST /v1/faces/compare | Compare exactly one face in each image against a configured operating point. |
POST /v1/collections | Create collection metadata with a name and retention period. |
GET /v1/collections | List accessible collections with cursor pagination. |
GET /v1/collections/{id} | Read an accessible collection. |
DELETE /v1/collections/{id} | Submit asynchronous collection deletion. |
GET /v1/operations/{id} | Inspect an operation's lifecycle state. |
Available operations depend on the scopes granted to your key. Tenant, purpose and collection model version are server-controlled.
Compare at a defined operating point
{
"sourceImage": { "base64": "AUTHORIZED_SOURCE_BASE64" },
"targetImage": { "base64": "AUTHORIZED_TARGET_BASE64" },
"operatingPoint": "YOUR_CONFIGURED_OPERATING_POINT"
}The result includes similarity, threshold, match decision, model version and operating-point version. The operating point must be calibrated for the intended workload. There is no universal threshold that guarantees an accuracy percentage. Zero or multiple faces in either input are rejected for comparison.
Manage collections deliberately
{ "name": "Authorized evaluation", "retentionDays": 30 }Names must be nonempty and at most 128 characters. Avoid personal data in names. Retention is 1–365 days and may be further limited by tenant policy. Listing accepts limit from 1 to 100 (default 20) and an optional UUID after cursor. Continue with nextCursor until it is null.
Collection creation stores metadata; it does not enroll faces. Coordinate enrollment and search availability with the evaluation operator before integrating those workflows.
Track erasure, not just submission
Collection deletion returns HTTP 202 and an operation ID. The collection is hidden from normal access at submission. Physical erasure is asynchronous. Inspect the operation state: pending, running, completed or failed. Pending or running is not evidence of completed erasure.
A network timeout can leave a submission outcome unknown. Inspect or repeat the same collection deletion to recover its operation. Avoid unbounded automatic retries and polling.
Handle failures safely
Keep the request ID for support and correlate it with your own request record. Do not log image bytes, embeddings, raw credentials or biometric results. Respect rate limits, use bounded request deadlines and surface actionable errors without exposing upstream response bodies.
Evaluate before relying on a match
Use authorized, representative holdout data. Separate calibration from evaluation. Compare false-match and false-non-match rates, detection failures, search accuracy, latency and cost at documented settings. Huemn has not published a validated superiority claim over another provider.
Similarity does not establish liveness, identity proof or eligibility. Use safeguards appropriate to the context, especially when a decision affects a person's rights or access.