REST · JSON · POST

Blood test AI API for developers and clinics

Upload a lab report as PDF or photo and receive every parameter with its reference range and evaluation, the report metadata and a written interpretation, as JSON.

POST /api/v12/18-09-2026/analyze

Blood test interpretation

Key capabilities

The Blood Test AI API (Blood Test Analysis v12) reads a laboratory report and returns it as structured data plus a clinical interpretation in any of 100 supported languages. A second endpoint with the same request adds a health score and a disease risk analysis. It is the lab report API the other modules build on: its parameters array is the input of the body map, biological age, nutrition and trend APIs.

  • 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 (Blood test interpretation) – PDF or photo → Kantesti API → Structured JSON → Your app
How it works: PDF or photo → Kantesti API → Structured JSON → Your app.

Example request and response

POST /api/v12/18-09-2026/analyze Live

POST /api/v12/18-09-2026/sandbox Sandbox

POST /api/v12/health-score/analyze Live

POST /api/v12/health-score/sandbox Sandbox

Endpoint reference

curl -X POST "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox" \
  -H "Authorization: Bearer kt_live_YOUR_API_KEY" \
  -F "language=en" \
  -F "file=@report.pdf"
import requests

resp = requests.post(
    "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox",
    headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
    data={"language": "en"},
    files={"file": open("report.pdf", "rb")},
    timeout=60,
)
print(resp.json())
const form = new FormData();
form.append("language", "en");
form.append("file", fileInput.files[0]); // your PDF or photo

const resp = await fetch("https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox", {
  method: "POST",
  headers: { Authorization: "Bearer kt_live_YOUR_API_KEY" },
  body: form,
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ['Authorization: Bearer kt_live_YOUR_API_KEY'],
  CURLOPT_POSTFIELDS => [
    'language' => 'en',
    'file' => new CURLFile('report.pdf'),
  ],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);
Response Sandbox
{
  "status": "success",
  "data": {
    "metadata": {
      "patient_name": "Jan Novák",
      "lab_city": "Prague",
      "lab_country": "Czech Republic",
      "lab_date": "2025-05-11",
      "lab_name": "BioLAB Medical Center",
      "patient_age": "45",
      "patient_sex": "Male",
      "results_date": "2025-05-26"
    },
    "parameters": [
      {
        "short_name": "PT Ratio",
        "long_name": "Prothrombin Time Ratio",
        "category": "Coagulation",
        "result": 0.94,
        "unit": null,
        "evaluation": "optimal",
        "type": "range",
        "range_min": 0.5,
        "range_max": 1.5,
        "range_normal_min": 0.8,
        "…": "+5"
      },
      "… +3"
    ],
    "interpretation": [
      {
        "title": "Introduction",
        "shortcode": "introduction",
        "subsections": [
          "…"
        ]
      },
      "… +3"
    ]
  },
  "timestamp": "2026-11-30T12:00:00.000000Z",
  "api_version": "v12",
  "sandbox": true,
  "sandbox_notice": "This is sandbox test data. No actual analysis was performed."
}

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 multipart/form-data request with one or more file fields: a blood test image (PNG, JPG, WEBP) or a PDF, up to 20 MB. Optional: language (default en) and pdf_password for encrypted PDFs.

  • Response

    What you get back

    data.metadata (patient, laboratory, lab date and results date), data.parameters (short and long name, result, unit, reference range, range_normal_min / range_normal_max, type and an evaluation such as normal, high or low) and data.interpretation (sections with a shortcode and text). JSON keys and codes stay in English.

Diagram: Lab report – Normal, High, Low, Interpretation
Lab report. Values, reference ranges and a plain-language explanation.

Use cases

  • Turn uploaded lab reports into structured lab results in a patient portal or health app.

  • Explain results to patients in their own language from one request.

  • Feed the extracted parameters into the body map, biological age, nutrition or trend APIs.

  • Add a health score to a report with the health score endpoint.

Who uses this API

Sectors that typically integrate this module.

All solutions

Questions

Which files does the blood test API accept?

Blood test images (PNG, JPG, WEBP) and PDFs up to 20 MB. You can repeat the file field to send several images of one report, and pass a password for an encrypted PDF.

In which languages is the interpretation written?

In any of the 100 supported languages, chosen with the language parameter. Without it the response is in English.

How is a blood test API call priced?

One request uses one credit. The sandbox endpoints return sample data and do not consume quota.

Does the blood test API give a diagnosis?

No. It returns AI-supported educational information. It is not a diagnosis, not a medical device, and does not replace a physician.

Other API modules

Start building

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

Kantesti® API illustration: Blood test AI API for developers and clinics
Blood test API: upload a lab report as PDF or photo and get every parameter, its reference range and a plain-language interpretation as JSON.