主要功能
血液检测人工智能 API(Blood Test Analysis v12)可读取实验室报告,并以结构化数据和临床解读的形式返回结果,支持 100 种语言。使用相同请求的第二个端点还会提供健康评分和疾病风险分析。其他模块均以此实验室报告 API 为基础:其 parameters 数组是人体图谱、生物年龄、营养和趋势 API 的输入。
结构化 JSON
稳定的英文键名和代码,文本使用您指定的语言。
免费沙盒
沙盒端点会返回结构与正式响应相同的示例响应,且不消耗额度。
每次调用消耗一个额度
成功调用 analyze 会消耗一个额度。沙盒调用免费。
API 密钥身份验证
将密钥作为 Bearer 令牌放在 Authorization 标头中发送。切勿将密钥放入 URL。

请求与响应示例
POST /api/v12/18-09-2026/analyze 实时
POST /api/v12/18-09-2026/sandbox 沙盒
POST /api/v12/health-score/analyze 实时
POST /api/v12/health-score/sandbox 沙盒
curl -X POST "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox" \
-H "Authorization: Bearer kt_live_YOUR_API_KEY" \
-F "language=zh" \
-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": "zh"},
files={"file": open("report.pdf", "rb")},
timeout=60,
)
print(resp.json())
const form = new FormData();
form.append("language", "zh");
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' => 'zh',
'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."
}此页面展示的是经过缩短的沙盒响应。您可以在交互区查看完整内容。 仅使用示例数据。不会发送或存储真实患者数据。
输入与输出
您发送的内容
使用
multipart/form-data请求,包含一个或多个file字段:血液检测图像(PNG、JPG、WEBP)或 PDF,最大 20 MB。可选参数:language(默认值为en)和用于加密 PDF 的pdf_password。您收到的内容
data.metadata(患者、实验室、实验室日期和结果日期)、data.parameters(简称和全称、结果、单位、参考范围、range_normal_min/range_normal_max、type,以及如normal、high或low的evaluation)和data.interpretation(包含shortcode和文本的章节)。JSON 键名和代码保持英文。

使用场景
将上传的实验室报告转换为结构化检测结果,供患者门户或健康应用使用。
通过一次请求,以患者自己的语言解释检测结果。
将提取的参数传入人体图谱、生物年龄、营养或趋势 API。
使用健康评分端点为报告添加健康评分。
常见问题
血液检测 API 接受哪些文件?
最大 20 MB 的血液检测图像(PNG、JPG、WEBP)和 PDF。您可以重复使用 file 字段发送同一份报告的多张图像,也可以为加密 PDF 传入密码。
解读支持哪些语言?
支持 100 种语言,可通过 language 参数选择。不设置该参数时,响应为英文。
血液检测 API 调用如何计费?
每个请求消耗一个积分。沙盒端点返回示例数据,不消耗配额。
血液检测 API 会给出诊断吗?
不会。它提供人工智能辅助的教育信息。它不是诊断,不是医疗器械,也不能替代医生。

