Research and other
Blood test and DNA API for universities, medical education and research groups
Teach laboratory interpretation with sample data that involves no patient, and turn lab reports or genotype files into structured JSON for study pipelines. Costs are counted per successful call, and the sandbox, validate and reference endpoints are free.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Universities, medical educators and research groups
Challenges in this sector
Teaching material without patient data
A course on laboratory medicine or health informatics needs realistic result sets, yet real patient documents bring consent and de-identification work that a teaching team rarely has time for. Examples written by hand lack the structure of a real report.
Lab reports are documents, not data
Study participants and partner sites deliver PDFs and scans in different layouts. Research assistants transcribe the values into spreadsheets, which costs time and introduces errors that are hard to find later.
Reproducibility of AI output
Reviewers ask how a derived variable was produced and whether an identical input gives an identical output. Generated text is hard to defend in a methods section unless the deterministic parts are separated from the parts a model writes and every response is archived.
Budgets fixed per grant or per course
A grant or a teaching budget cannot carry a subscription with open-ended usage. A study team has to know what a defined number of documents will cost before data collection starts.
How the integration works
Start in the sandbox
Create API credentials and call
POST /api/v12/18-09-2026/sandboxorPOST /api/v1/dna-interpretation/sandbox. Both return a sample response in the shape of the live endpoint and consume no quota, which is sufficient for classroom exercises and for writing a parser.Extract study documents
For real documents, a script sends each report to
POST /api/v12/18-09-2026/analyzeand saves the complete response. Every parameter row carries result, unit, three nested ranges (optimal, normal, borderline limit) and anevaluation; qualitative results are markedtype: "binary"and have null range fields.Derive variables with the deterministic modules
Send the saved
parametersarray toPOST /api/v1/blood-age/analyzeorPOST /api/v1/body-map/analyzeand leave the model flags off. In this default mode an unchanged panel returns an unchanged answer, and the biological age response states insourcewhether the published formula was applied as it is or as apartialcalculation.Archive responses with their provenance
Store every JSON body with its
api_version, itstimestampand the analysis identifier where the module returns one. Model updates are applied to existing endpoint versions without a change of path, so the call date belongs in your methods record.

Recommended API modules
Blood test AI API for developers and clinics
Converts report PDFs and photos into rows with units and reference ranges, which replaces manual transcription during data collection, and supplies an interpretation text that students can compare with their own reading.
DNA test AI API for raw DNA data
Gives bioinformatics and genetics courses a practical example of a genotype pipeline: the
sourceobject reports format, genome build, call counts and no-call rate, and each finding carries an evidence grade.Biological age API from routine blood tests
Computes the published Levine PhenoAge model from nine routine markers, plus up to 18 derived indices. The output is deterministic and can be run again and checked against a calculation by hand.
Body map API for lab results
A rule-based assignment of flagged results to 13 body regions that calls no model by default, useful as a transparent contrast to generated text in a course on clinical AI.
Use cases
- Seminar exercises in which students interpret a sandbox panel first and then compare their reading with the returned interpretation sections.
- Health informatics practicals on parsing clinical JSON, handling units and reference ranges, and designing a results screen.
- Data collection for observational studies in which participants supply their own lab reports as PDF or photo.
- Method comparisons between deterministic indices and model-written interpretation on one and the same panel.
- Student projects and thesis work that need a working health data backend within a small budget that can be calculated in advance.
Integration path
A research group can work from scripts and notebooks: a script loops over a folder of documents, calls the REST endpoint with the API credentials of the group and writes one JSON file per document. A teaching team can connect the sandbox endpoints to a notebook or a learning platform, so that no student needs paid quota. DNA analyses take one to three minutes each; add ?async=1 and poll GET /api/jobs/<job_id> when you process a batch. Before a paid run, the free validate endpoints of the DNA, body map and biological age modules show what a payload contains.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
The API is intended for education and information. It is not a medical device, has no CE or UKCA marking and must not be used for clinical decisions about study participants, or as a diagnostic or endpoint-adjudication tool in a trial. Ethics committee approval, participant consent and the data management plan are the responsibility of your institution; Kantesti does not provide them and is not a study sponsor. Data protection for the documents you upload is your responsibility as the integrator: de-identify them before upload wherever the protocol allows, and use sandbox or synthetic data for teaching. Genotype files are genetic data, a special category under the GDPR, and need a valid legal basis, in most studies the explicit consent of each participant.
Example request and response
Blood test interpretation POST /api/v12/18-09-2026/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);{
"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.
Questions
Can students use the API without real patient data?
Yes. Every module has a sandbox endpoint that returns sample data in the structure of the live response and consumes no quota. The sandbox is called with API credentials, so the course needs an account.
Is the output reproducible?
In part, and the difference matters for a methods section. The body map and biological age modules are deterministic by default: no model is called, and a repeated request with the same panel gives the same result. Interpretation text and DNA reports are written by an AI model, so treat the wording as variable between calls and after a model update, and archive each response with its date and api_version.
What does a study cost?
One credit per successful analyze call in every module, with a lower price per call for larger purchases and no subscription. Sandbox, validate and reference endpoints are free, and a DNA upload that cannot be read is rejected without a charge. POST /api/quota/check returns the remaining quota during a run.
Can results serve as a study endpoint or as feedback for participant care?
No. The output is educational information that supports and never replaces professional judgement. It can serve as a structured description of the documents submitted, while clinical assessment and any feedback to participants stay with qualified study staff.
Who is responsible for the medical content at Kantesti?
The provider is Kantesti Ltd, a company registered in England and Wales under No. 17090423. The Chief Medical Officer, Thomas Klein, MD, a clinical hematologist, takes the final decision on medical content, and a Medical Advisory Board guides the methodology. The board reviews no individual reports, and its involvement is neither independent nor regulatory validation.
Start building
Run a sample request in the playground, check the price per call, or write to the API team about your integration.
API support: api@kantesti.net

