magent
GET api.magentlab.com/api/calc/lille
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
Lille model (Louvet 2007) from age, albumin, bilirubin at day 0 and day 7, creatinine, and PT seconds or INR. formula=pt or formula=inr is required; magent does not swap them. Score 0-1 with the published 0.45 cutoff. Deterministic published arithmetic with citation; not a medical device or a steroid order.
Resource: api.magentlab.com/api/calc/lille
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x836Be278f1739fB4308091cD1852F7971Bc19Ee2
Payment methods: eip3009 · Last validation: 2026-09-14 11:47:44.429+00
{
"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": [
"formula",
"age"
],
"properties": {
"age": {
"type": "integer",
"description": "Age in years (18-120)."
},
"inr": {
"type": "number",
"description": "INR (0.8-10). Required when formula=inr. Ignored when formula=pt."
},
"pt_sec": {
"type": "number",
"description": "Prothrombin time in seconds (8-120). Required when formula=pt. Ignored when formula=inr."
},
"formula": {
"enum": [
"pt",
"inr"
],
"type": "string",
"description": "pt (prothrombin time in seconds) or inr. Required; magent does not swap PT and INR."
},
"albumin_g_l": {
"type": "number",
"description": "Day-0 albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Louvet 2007 uses g/L."
},
"albumin_g_dl": {
"type": "number",
"description": "Day-0 albumin in g/dL (1-6). Converted as g/L = g/dL × 10."
},
"creatinine_mg_dl": {
"type": "number",
"description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. Renal insufficiency is 1 when > 1.3 mg/dL if this unit is used (Louvet 2007)."
},
"creatinine_umol_l": {
"type": "number",
"description": "Serum creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl. Renal insufficiency is 1 when > 115 µmol/L if this unit is used (Louvet 2007)."
},
"bilirubin_day0_mg_dl": {
"type": "number",
"description": "Day-0 total bilirubin in mg/dL (0.1-40). Converted as µmol/L = mg/dL × 17.1."
},
"bilirubin_day7_mg_dl": {
"type": "number",
"description": "Day-7 total bilirubin in mg/dL (0.1-40). Converted as µmol/L = mg/dL × 17.1."
},
"bilirubin_day0_umol_l": {
"type": "number",
"description": "Day-0 total bilirubin in µmol/L (2-684). Provide this or bilirubin_day0_mg_dl."
},
"bilirubin_day7_umol_l": {
"type": "number",
"description": "Day-7 total bilirubin in µmol/L (2-684). Provide this or bilirubin_day7_mg_dl."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/lille?age=50&albumin_g_dl=3.5&albumin_g_l=35&bilirubin_day0_mg_dl=11.7&bilirubin_day0_umol_l=200&bilirubin_day7_mg_dl=8.8&bilirubin_day7_umol_l=150&creatinine_mg_dl=1&creatinine_umol_l=88&formula=pt&inr=2&pt_sec=18",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "5000"
},
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "batch-settlement",
"network": "eip155:8453",
"amountAtomic": "5000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.