Calc Circ
by magent in AI models & inference
Garibaldi 2020 CIRC day-2/4/7 probability of severe disease or death from admission age, nursing-home residence, caller-assigned race term, Charlson CCI, BMI, symptoms, vitals, and listed laboratories. Appendix Table 1 coefficients on the printed reference cumulative incidences. Not a diagnosis, triage order, or the death-only Appendix Table 2 model.
https://api.magentlab.com/api/calc/circ- Price
- $0.007
- per call in USDC
- Uptime
- 91.4%
- last 30 days
- Response time
- 234 ms
- 803 ms slowest 5%
- Last check
- Failed
- 4 h ago, next any minute now
Reliability
Latest check failed 4 h ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/circ
Each call costs $0.007 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.magentlab.com/api/calc/circ
content-type: application/json
{
"items": [
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"ferritin_ng_ml": 545,
"fever": false,
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
},
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"ferritin_ng_ml": 545,
"fever": false,
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying. Shortened for display.
Example response, 90 lines
{
"count": 2,
"items": [
{
"age": 65,
"age_band": "60_74",
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"citation": {
"authors": "Garibaldi BT, Fiksel J, Muschelli J, et al.",
"doi": "10.7326/M20-3905",
"id": "garibaldi-2020-circ",
"pmid": "32960645",
"source": "Ann Intern Med. 2021;174(1):33-41",
"title": "Patient Trajectories Among Persons Hospitalized for COVID-19: A Cohort Study"
},
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"day_2_percent": 10,
"day_4_percent": 13,
"day_7_percent": 15,
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"ferritin_ng_ml": 545,
"fever": false,
"formula": "circ",
"formula_expression": "delta = lp(x) - lp(x0); P(t) = 1-(1-P0(t))^exp(delta); Garibaldi 2020 Appendix Table 1 estimates; x0 White female age 60-74 not from a nursing home BMI 30 CCI 0 no symptoms no fever pulse 85 RR 21 leukocyte 6.8 ALC 1.0 ALT 30 albumin 3.7 GFR 71 CRP 5.7 hemoglobin 12.9 ferritin 545 troponin not detectable D-dimer not >1; P0 day2 0.10 day4 0.13 day7 0.15; age<60 -0.61 age>=75 -0.71; NH <75 -0.24 >=75 -0.22; male <60 0.31 60-74 -0.47 >=75 0.10; BMI per 5 0.17; Non-White vs White 0.08 (caller-assigned); CCI per 1 <60 0.19 60-74 -0.23 >=75 0.14; respiratory 0.81 GI -0.14 constitutional -0.57 taste/smell -0.30 fever>38.0 0.56; pulse per 10 -0.02; RR linear spline knot 18: <18 per unit -0.25, >=18 per unit 0.13; ln leukocyte -0.06 ln ALC -0.29 ln ALT 0.02; hemoglobin per 1 g/dL decrease 0.04; albumin per 0.5 g/dL decrease below 4 0.23; GFR per 10 -0.03; ln CRP 0.20 ln ferritin 0.11; troponin detectable <60 0.19 60-74 1.36 >=75 0.35; D-dimer >1 0.24; natural log; not Appendix Table 2 death-on…",
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"logit_delta": 0,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"obesity": true,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
},
{
"age": 65,
"age_band": "60_74",
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"citation": {
"authors": "Garibaldi BT, Fiksel J, Muschelli J, et al.",
"doi": "10.7326/M20-3905",
"id": "garibaldi-2020-circ",
"pmid": "32960645",
"source": "Ann Intern Med. 2021;174(1):33-41",
"title": "Patient Trajectories Among Persons Hospitalized for COVID-19: A Cohort Study"
},
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"day_2_percent": 10,
"day_4_percent": 13,
"day_7_percent": 15,
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"ferritin_ng_ml": 545,
"fever": false,
"formula": "circ",
"formula_expression": "delta = lp(x) - lp(x0); P(t) = 1-(1-P0(t))^exp(delta); Garibaldi 2020 Appendix Table 1 estimates; x0 White female age 60-74 not from a nursing home BMI 30 CCI 0 no symptoms no fever pulse 85 RR 21 leukocyte 6.8 ALC 1.0 ALT 30 albumin 3.7 GFR 71 CRP 5.7 hemoglobin 12.9 ferritin 545 troponin not detectable D-dimer not >1; P0 day2 0.10 day4 0.13 day7 0.15; age<60 -0.61 age>=75 -0.71; NH <75 -0.24 >=75 -0.22; male <60 0.31 60-74 -0.47 >=75 0.10; BMI per 5 0.17; Non-White vs White 0.08 (caller-assigned); CCI per 1 <60 0.19 60-74 -0.23 >=75 0.14; respiratory 0.81 GI -0.14 constitutional -0.57 taste/smell -0.30 fever>38.0 0.56; pulse per 10 -0.02; RR linear spline knot 18: <18 per unit -0.25, >=18 per unit 0.13; ln leukocyte -0.06 ln ALC -0.29 ln ALT 0.02; hemoglobin per 1 g/dL decrease 0.04; albumin per 0.5 g/dL decrease below 4 0.23; GFR per 10 -0.03; ln CRP 0.20 ln ferritin 0.11; troponin detectable <60 0.19 60-74 1.36 >=75 0.35; D-dimer >1 0.24; natural log; not Appendix Table 2 death-on…",
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"logit_delta": 0,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"obesity": true,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
}
],
"path": "/api/calc/circ"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.007.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.magentlab.com/api/calc/circ' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age":65,"albumin_g_dl":3.7,"alt_u_l":30,"bmi":30,"cci":0,"constitutional_symptoms":false,"crp_mg_dl":5.7,"d_dimer_gt_1":false,"ferritin_ng_ml":545,"fever":false,"gastrointestinal_symptoms":false,"gfr":71,"hemoglobin_g_dl":12.9,"leukocyte_k":6.8,"loss_of_taste_smell":false,"lymphocyte_k":1,"nursing_home":false,"pulse":85,"race":"white","respiratory_rate":21,"respiratory_symptoms":false,"sex":"female","troponin_detectable":false},{"age":65,"albumin_g_dl":3.7,"alt_u_l":30,"bmi":30,"cci":0,"constitutional_symptoms":false,"crp_mg_dl":5.7,"d_dimer_gt_1":false,"ferritin_ng_ml":545,"fever":false,"gastrointestinal_symptoms":false,"gfr":71,"hemoglobin_g_dl":12.9,"leukocyte_k":6.8,"loss_of_taste_smell":false,"lymphocyte_k":1,"nursing_home":false,"pulse":85,"race":"white","respiratory_rate":21,"respiratory_symptoms":false,"sex":"female","troponin_detectable":false}]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.magentlab.com/api/calc/circ' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age":65,"albumin_g_dl":3.7,"alt_u_l":30,"bmi":30,"cci":0,"constitutional_symptoms":false,"crp_mg_dl":5.7,"d_dimer_gt_1":false,"ferritin_ng_ml":545,"fever":false,"gastrointestinal_symptoms":false,"gfr":71,"hemoglobin_g_dl":12.9,"leukocyte_k":6.8,"loss_of_taste_smell":false,"lymphocyte_k":1,"nursing_home":false,"pulse":85,"race":"white","respiratory_rate":21,"respiratory_symptoms":false,"sex":"female","troponin_detectable":false},{"age":65,"albumin_g_dl":3.7,"alt_u_l":30,"bmi":30,"cci":0,"constitutional_symptoms":false,"crp_mg_dl":5.7,"d_dimer_gt_1":false,"ferritin_ng_ml":545,"fever":false,"gastrointestinal_symptoms":false,"gfr":71,"hemoglobin_g_dl":12.9,"leukocyte_k":6.8,"loss_of_taste_smell":false,"lymphocyte_k":1,"nursing_home":false,"pulse":85,"race":"white","respiratory_rate":21,"respiratory_symptoms":false,"sex":"female","troponin_detectable":false}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fcirc&method=POST
const res = await pay("https://api.magentlab.com/api/calc/circ", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"ferritin_ng_ml": 545,
"fever": false,
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
},
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": false,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": false,
"ferritin_ng_ml": 545,
"fever": false,
"gastrointestinal_symptoms": false,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": false,
"lymphocyte_k": 1,
"nursing_home": false,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": false,
"sex": "female",
"troponin_detectable": false
}
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.magentlab.com/api/calc/circ",
json={
"items": [
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": False,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": False,
"ferritin_ng_ml": 545,
"fever": False,
"gastrointestinal_symptoms": False,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": False,
"lymphocyte_k": 1,
"nursing_home": False,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": False,
"sex": "female",
"troponin_detectable": False,
},
{
"age": 65,
"albumin_g_dl": 3.7,
"alt_u_l": 30,
"bmi": 30,
"cci": 0,
"constitutional_symptoms": False,
"crp_mg_dl": 5.7,
"d_dimer_gt_1": False,
"ferritin_ng_ml": 545,
"fever": False,
"gastrointestinal_symptoms": False,
"gfr": 71,
"hemoglobin_g_dl": 12.9,
"leukocyte_k": 6.8,
"loss_of_taste_smell": False,
"lymphocyte_k": 1,
"nursing_home": False,
"pulse": 85,
"race": "white",
"respiratory_rate": 21,
"respiratory_symptoms": False,
"sex": "female",
"troponin_detectable": False,
},
],
},
)
print(res.status_code, res.text)Security scan
1 finding
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Timed out | - | - | - |
| 9 h ago | Timed out | - | - | - |
| 14 h ago | Timed out | - | - | - |
| 18 h ago | Passed | 402 | 315 ms | $0.007 |
| 23 h ago | Passed | 402 | 322 ms | $0.007 |
Show 10 older checks
| 28 h ago | Passed | 402 | 146 ms | $0.007 |
| 33 h ago | Passed | 402 | 332 ms | $0.007 |
| 37 h ago | Passed | 402 | 157 ms | $0.007 |
| 42 h ago | Passed | 402 | 152 ms | $0.007 |
| 46 h ago | Passed | 402 | 142 ms | $0.007 |
| 2 days ago | Passed | 402 | 585 ms | $0.007 |
| 2 days ago | Passed | 402 | 273 ms | $0.007 |
| 2 days ago | Passed | 402 | 163 ms | $0.007 |
| 3 days ago | Passed | 402 | 390 ms | $0.007 |
| 3 days ago | Passed | 402 | 143 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |