# Khan 2024 AHA PREVENT Base 10-Year Total CVD Risk Calculator

> Khan 2024 AHA PREVENT Base 10-Year Total CVD Risk Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Computes the AHA PREVENT model's base 10-year total cardiovascular disease (ASCVD + heart failure) risk percentage for adults aged 30–79 using sex-specific, race-free Table S12 coefficients.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/prevent
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/khan-2024-aha-prevent-base-10-year-total-cvd-risk-calculator-f392a1bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3KA4LAgbZyfiVx1mFnzks

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability khan-2024-aha-prevent-base-10-year-total-cvd-risk-calculator-f392a1bd
```

Example prompt: What's the 10-year total CVD risk using the AHA PREVENT model for a 58-year-old female who doesn't smoke, has total cholesterol 210 mg/dL, HDL 55 mg/dL, systolic BP 138 mmHg on antihypertensives, no statin, no diabetes, eGFR 72 ml/min/1.73m2, and BMI 27?

## When to prefer this

Use this endpoint when you specifically need the Khan 2024 AHA PREVENT base 10-year total CVD risk (ASCVD + heart failure combined) for adults aged 30–79, using sex-specific and race-free Table S12 coefficients. Prefer it over the 2013 Pooled Cohort Equations (PCE) when a race-free, updated model is required. Choose it over SCORE2 when working with a US-centric or AHA-guideline-aligned workflow. Do not use this endpoint when you need the 30-year PREVENT horizon, standalone HF-only risk, HbA1c-augmented equations, or a statin prescribing recommendation — it computes risk only.

## Known failure modes

- Age outside 30–79 range returns an error or invalid result
- Sex value not 'female' or 'male' returns a validation error
- Cholesterol, SBP, eGFR, or BMI values outside expected ranges cause rejection
- Missing any required query parameter returns a 400 bad request
- Payment not included or insufficient USDC returns 402 Payment Required
- Lipid values provided in mmol/L instead of mg/dL will produce incorrect results (conversion is internal)

## How this service works

Khan 2024 AHA PREVENT base 10-year total CVD percent (ASCVD plus heart failure) for age 30-79 from sex, lipids, treated systolic BP, diabetes, smoking, eGFR, BMI, antihypertensive, and statin. Sex-specific, race-free Table S12 coefficients. Not 30-year, not ASCVD-only, not HF-only, not 2013 PCE, not SCORE2, not a diagnosis or statin order. magent does not assay lipids.

## Output

Returns the Khan 2024 AHA PREVENT base 10-year total CVD risk as a percentage (ASCVD plus heart failure combined), computed using sex-specific Table S12 coefficients. The result does not include the 30-year horizon, standalone ASCVD-only risk, standalone HF-only risk, or optional HbA1c add-on terms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "age",
      "sex",
      "total_cholesterol_mg_dl",
      "hdl_mg_dl",
      "sbp_mm_hg",
      "antihypertensive",
      "statin",
      "diabetes",
      "smoker",
      "egfr_ml_min_1_73m2",
      "bmi_kg_m2"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 30-79). Khan 2024 PREVENT base 10-year total CVD is for ages 30-79. Not 30-year PREVENT (that horizon is not returned)."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used by the sex-specific Table S12 base 10-year total-CVD coefficients (female or male). Not race. PREVENT is race-free."
      },
      "smoker": {
       "type": "boolean",
       "description": "Current cigarette smoking as assigned by the caller (true or false). magent does not take a smoking history."
      },
      "statin": {
       "type": "boolean",
       "description": "Current statin use as assigned by the caller (true or false). Adds the Table S12 statin term and the statin × non-HDL interaction."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes as assigned by the caller (true or false). Adds the Table S12 diabetes term and the age × diabetes interaction. Not the optional HbA1c add-on equation."
      },
      "bmi_kg_m2": {
       "type": "number",
       "description": "Body-mass index in kg/m2 (10-80). Required Khan 2024 predictor. Table S12 base 10-year total-CVD BMI coefficients are 0 (BMI enters the HF-only equations, which this tool does not return)."
      },
      "hdl_mg_dl": {
       "type": "number",
       "description": "HDL cholesterol in mg/dL (5-150). Converted as mg/dL*0.02586 to mmol/L. Enters as (HDL-1.3)/0.3. magent does not assay lipids."
      },
      "sbp_mm_hg": {
       "type": "number",
       "description": "Systolic blood pressure in 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/khan-2024-aha-prevent-base-10-year-total-cvd-risk-calculator-f392a1bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
