REST · JSON · POST

Biological age API from routine blood tests

Send a routine lab panel and receive a biological blood age from the published Levine PhenoAge model, plus up to 18 derived clinical indices that a lab report rarely prints.

POST /api/v1/blood-age/analyze

Biological age

Key capabilities

The Biological Age AI API computes PhenoAge from nine routine markers (albumin, creatinine, glucose, CRP, lymphocytes %, MCV, RDW, alkaline phosphatase, white blood cell count) and the chronological age. When all nine are present the published formula is used unchanged; when some are missing they are filled from population medians and the result is labelled source: "partial". Both paths are deterministic. Optional model layers (ai_assist, ai_estimate, ai_note) each sit behind their own flag.

  • Structured JSON

    Stable English keys and codes, with text in the language you request.

  • Free sandbox

    The sandbox endpoint returns a sample response in the shape of the live one and uses no credits.

  • One credit per call

    A successful analyze call uses one credit. Sandbox calls are free.

  • API key authentication

    Send your key as a Bearer token in the Authorization header. Never put a key in a URL.

Diagram: How it works (Biological age) – Blood markers → Kantesti API → Biological age → Your app
How it works: Blood markers → Kantesti API → Biological age → Your app.

Example request and response

POST /api/v1/blood-age/analyze Live

POST /api/v1/blood-age/sandbox Sandbox

POST /api/v1/blood-age/validate Live

GET /api/v1/blood-age/biomarkers Live

GET /api/v1/blood-age/info Live

Endpoint reference

curl -X POST "https://app.aibloodtestinterpret.com/api/v1/blood-age/sandbox" \
  -H "Authorization: Bearer kt_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"language":"en"}'
import requests

resp = requests.post(
    "https://app.aibloodtestinterpret.com/api/v1/blood-age/sandbox",
    headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
    json={"language": "en"},
    timeout=60,
)
print(resp.json())
const resp = await fetch("https://app.aibloodtestinterpret.com/api/v1/blood-age/sandbox", {
  method: "POST",
  headers: {
    Authorization: "Bearer kt_live_YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"language":"en"}),
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v1/blood-age/sandbox');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer kt_live_YOUR_API_KEY',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => json_encode(['language' => 'en']),
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);
Response Sandbox
{
  "status": "success",
  "data": {
    "blood_age": {
      "version": 1,
      "age": {
        "status": "ok",
        "source": "formula",
        "chrono": 40,
        "pheno": 35.1,
        "delta": -4.9,
        "sex": "m",
        "found": [
          "…"
        ],
        "missing": [
          "…"
        ],
        "labels": {
          "…": "…"
        },
        "inputs": {
          "…": "…"
        }
      },
      "indices": [
        {
          "…": "…"
        },
        "… +4"
      ]
    },
    "engine_version": 1,
    "mode": "deterministic",
    "summary": {
      "status": "ok",
      "source": "formula",
      "chronological_age": 40,
      "biological_age": 35.1,
      "delta_years": -4.9,
      "sex": "m",
      "markers_found": 9,
      "markers_missing": [],
      "indices_count": 5
    },
    "sandbox_mode": true
  },
  "timestamp": "2026-11-30T12:00:00.000000Z",
  "api_version": "1.0.0",
  "message": "Sandbox blood age returned successfully",
  "sandbox": true,
  "sandbox_notice": "This is sandbox test data. No actual analysis was performed and no quota was consumed."
}

Sandbox response, shortened for this page. The playground shows the full body. Sample data only. No real patient data is sent or stored.

Inputs and outputs

  • Request

    What you send

    A JSON array parameters (up to 500 rows) with analyte names as printed by the laboratory, in any of 39 report languages, and their results; SI and conventional units are converted automatically. A chronological age is needed, in metadata.patient_age, patient.age or as a date of birth. The formula applies between ages 18 and 100.

  • Response

    What you get back

    A summary with status, source (formula, partial or ai), chronological_age, biological_age, delta_years and markers_missing, plus a blood_age object with the converted input values and the derived indices: FIB-4, De Ritis, A/G ratio, HOMA-IR, TyG, eAG, eGFR, anion gap, BUN/creatinine, non-HDL, TG/HDL, AIP, TC/HDL, remnant cholesterol, NLR, Mentzer, transferrin saturation and corrected calcium, each with a band.

Diagram: Biological age / Chronological age – Chronological age, Biological age, Blood markers
Biological age / Chronological age. An age estimate from routine blood markers.

Use cases

  • Show a single blood age number next to the lab results in a wellness or longevity app.

  • Add derived indices to a report without implementing and unit-checking 18 formulas.

  • Follow the difference between biological and chronological age across repeated panels.

  • Check with the free validate endpoint which of the nine markers a panel supplies before you spend a call.

Who uses this API

Sectors that typically integrate this module.

All solutions

Questions

Which model does the Biological Age API use?

The published Levine PhenoAge model, computed from nine routine blood markers and the chronological age. With all nine markers the formula is applied unchanged, and a model estimate never overrides it.

What if my panel does not contain all nine markers?

You still get a number: missing inputs are filled from population medians, the response says source: "partial", and markers_missing lists what was not supplied.

Why does the response say missing_age?

PhenoAge has an age term. Without a chronological age in the metadata or the patient object the API returns status: "missing_age" and no number.

Is biological blood age a diagnosis?

No. It is a calculated educational figure, not a diagnosis and not a medical device, and it does not replace a physician.

Other API modules

Start building

Free sandbox access. Buy credits only when you go live.

Kantesti® API illustration: Biological age API from routine blood tests
Biological Age API: compute PhenoAge blood age and up to 18 derived indices such as FIB-4, HOMA-IR and eGFR from a routine lab panel. JSON in, JSON out.