# `POST /v1/age/estimate` — Estimate a person's age from their face

The hosted age gate's estimator. OVER_THRESHOLD when the estimate reaches `threshold` + `buffer_years` (default 18 + 7 = 25, as the hosted gate); the estimate has no calibrated error bound, so decide with the buffer, not the raw age. CHF 0.30 per answered call. Needs the age:estimate scope.

Parameters:
- `Idempotency-Key` (header, string): Reuse on retries (printable non-space ASCII). For 24 hours the same key and the same request return the saved answer and check id without a second charge; a different request under the key returns 409.

Body:
- `threshold` (integer)
- `buffer_years` (integer)
- `reference_id` (string): Your own id, echoed in the answer.
- `sandbox_outcome` (string): Sandbox keys only: which test answer to return. No model runs and nothing is charged. One of `over`, `under`, `no_face`.
- `images` (array of string, required): One to three images of one person (or a single `image` field).

Responses:
- 200: The answer.
- 400: Invalid input.
- 401: Missing, unknown or expired API key.
- 402: The balance does not cover the check.
- 403: The key lacks the product's scope, its IP allowlist refuses the caller, or (code production_not_allowed) the organization may not use production yet.
- 409: The Idempotency-Key is in progress (Retry-After: 1) or was used with a different request.
- 413: A file or the body is too large.
- 415: A file is not of an accepted type (checked by its bytes, not its name), or the body is neither multipart nor JSON.
- 422: An image could not be decoded. Not charged.
- 429: More than 120 calls in a minute for this product.
- 503: The check could not run on our side. Nothing was charged; retry later with the same Idempotency-Key.
