Predict

Updated Jul 17, 2026

Predict a single anthropometric measurement for a population slice at a target percentile.

POST/v1/predict

Summary

Returns a modeled (or derived) measurement value for the requested gender, age, country, percentile, and optional clothing/posture adjustments.

Cost: 1 credit or 1 free-tier call on success.

Request

FieldTypeRequiredNotes
measurementstringyese.g. Stature, SittingHeight
genderstringyesMale or Female
agenumberyes0–120
percentilenumberyes1–99
countrystringnoISO-style code; default US
unitstringnomm (default), cm, or in
clothingstringnodefault nude
posturestringnodefault standing_erect

Clothing ids: nude, light, shoes, winter, light_shoes
Posture ids: standing_erect, standing_relaxed, sitting

Supported measurements, countries, clothing, and posture values are listed in the API catalog (GET /).

Example

curl -sS https://api.humanform.app/v1/predict \
  -H "Authorization: Bearer hf_live_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "measurement": "Stature",
    "gender": "Male",
    "age": 30,
    "percentile": 50,
    "country": "UK",
    "unit": "mm",
    "clothing": "light_shoes",
    "posture": "standing_relaxed"
  }'
{
  "measurement": "Stature",
  "gender": "Male",
  "age": 30,
  "percentile": 50,
  "country": "UK",
  "unit": "mm",
  "clothing": "light_shoes",
  "posture": "standing_relaxed"
}

Response

{
  "measurement": "Stature",
  "gender": "Male",
  "country": "UK",
  "clothing": "light_shoes",
  "posture": "standing_relaxed",
  "value": 1754.2,
  "unit": "mm",
  "source": "modeled"
}
FieldNotes
valuePredicted measurement; mm/cm rounded to 1 decimal, inches to 2
sourcemodeled or derived
remaining_free_callsPresent on some free-tier successes

Notes

  • See Errors for validation and model-not-found responses.
  • Enum lists: Catalog or live GET /.
  • For multiple percentiles in one call, use Predict range.
  • For the same percentile across countries, use Predict compare.