Huemn home
Menu

Develop with Huemn Face.

Evaluate face detection, comparison and collection search inside an operator-provisioned environment.

Your first request

Ask your Huemn operator for an API origin, scoped expiring key and configured operating point. Your operator confirms which model and operations are enabled for your tenant, environment and purpose.

POST /v1/faces/detect
curl "$HUEMN_API_ORIGIN/v1/faces/detect" \
  -H "Authorization: Bearer $HUEMN_API_KEY" \
  -H "Content-Type: application/json" \
  --data @authorized-image.json
{
  "image": {
    "base64": "YOUR_AUTHORIZED_IMAGE_BASE64"
  }
}

Inject the key on the server. Keep it out of browser code, URLs, logs and source control. Replace the Base64 placeholder with an authorized JPEG or PNG and save the resulting body as authorized-image.json. The limit is 5 MiB per image, 8,192 pixels per side and 20 million pixels total.

Public signup and production access are unavailable. Private SDK source and evaluation access are separately provisioned.

Read the response.

A successful response has a requestId, modelVersion and faces. Each face includes a confidence value and a normalized bounding box (left, top, width, height). The box refers to encoded pixel coordinates. Rotate images deliberately before processing if the file relies on EXIF orientation.

Detection can return zero faces. Comparison and enrollment each require exactly one face per input. No developer operation returns a face embedding or template.

Compare a pair.

Use the operating point supplied for this model. On success, retain the model version and operating-point version with the result. The service returns a cosine similarity score, a threshold and a Boolean match. A score alone cannot establish identity or liveness.

Comparison request · JSON
{
  "sourceImage": { "base64": "AUTHORIZED_SOURCE_BASE64" },
  "targetImage": { "base64": "AUTHORIZED_TARGET_BASE64" },
  "operatingPoint": "YOUR_CONFIGURED_OPERATING_POINT"
}

Admission identity and credits

For operator-activated credit admission, detect, compare, enrollment and search accept an optional single Idempotency-Key header of 16–128 characters from A–Z, a–z, 0–9, ., _, : and -. Persist an opaque identity before sending; exclude personal information. Without a key, detect, compare and search are fresh attempts. Enrollment also binds the retained face ID.

An identical admitted retry returns 409 accounting status rather than rerunning inference or replaying a biometric result, except that committed identical enrollment can return its current metadata. Changed requests under the same key conflict. Operator-configured credits are non-money integer units; no purchase or automatic grant is implied. Missing policy returns 503 and insufficient balance returns 402. Admitted execution failures remain charged; unknown outcomes are not automatically refunded. See errors and limits and enrollment retry rules.

Using the private SDKs

Private TypeScript and Python source SDKs validate responses and apply bounded deadlines. Package publication is separate from evaluation access. The caller decides whether an uncertain operation can safely be retried. The local developer console keeps the key in page memory. Clearing the console cannot reverse an accepted operation.

Continue readingOperation reference