{
  "endpoint": "https://heightwaist.com/api/ai/calculate",
  "method": "POST",
  "description": "Submit JSON with height, waist, unit, branch, and sex to receive an AI-oriented WHtR result.",
  "input_schema": {
    "type": "object",
    "required": [
      "height",
      "waist"
    ],
    "properties": {
      "height": {
        "type": "number",
        "description": "Height in inches or centimeters."
      },
      "waist": {
        "type": "number",
        "description": "Waist circumference in inches or centimeters."
      },
      "unit": {
        "type": "string",
        "enum": [
          "in",
          "cm"
        ],
        "default": "in"
      },
      "branch": {
        "type": "string",
        "enum": [
          "army",
          "navy",
          "air_force",
          "marine_corps",
          "space_force",
          "coast_guard"
        ],
        "default": "army"
      },
      "sex": {
        "type": "string",
        "enum": [
          "male",
          "female"
        ],
        "default": "male"
      }
    }
  },
  "openapi_url": "https://heightwaist.com/openapi.json"
}