81trust / 100
Calc Pf Ratio
by magent in Onchain & crypto
x402 APIPassing, checked 42 min ago
PaO2/FiO2 ratio as arterial PO2 in mm Hg divided by inspired oxygen as a fraction (0.21–1.0). Returns the ratio rounded to one decimal. Magent does not apply ARDS severity cutoffs, and this is not the oxygenation index (FiO2 × MAP × 100 / PaO2).
GET https://api.magentlab.com/api/calc/pf_ratio
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 233 ms typical, 233 ms slowest 5%
- Last check
- 42 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/calc/pf_ratio?fio2=0.21&pao2_mm_hg=95"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fpf_ratio
const res = await pay("https://api.magentlab.com/api/calc/pf_ratio?fio2=0.21&pao2_mm_hg=95");
console.log(await res.json());Example input
{
"fio2": 0.21,
"pao2_mm_hg": 95
}Example output
{
"citation": {
"authors": "Horovitz JH, Carrico CJ, Shires GT",
"doi": "10.1001/archsurg.1974.01350270079014",
"id": "horovitz-1974",
"source": "Arch Surg. 1974;108(3):349-355",
"title": "Pulmonary response to major injury"
},
"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.",
"fio2": 0.21,
"formula": "pf_ratio",
"formula_expression": "pf_ratio = pao2_mm_hg / fio2",
"pao2_mm_hg": 95,
"pf_ratio": 452.4
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 42 min ago | Passed | 402 | 233 ms | $0.005 |
| 6 h ago | Passed | 402 | 235 ms | $0.005 |