the402 endpoint detail

← All endpoints

api.magentlab.com calc homa_ir

https://api.magentlab.com/api/calc/homa_ir

answers 402

HOMA-IR as (fasting glucose in mmol/L × insulin in µU/mL) / 22.5 (Matthews et al. 1985). Provide glucose_mg_dl (50–1000) or glucose_mmol_l (2.8–55.5), not both; mg/dL converts as mmol/L = mg/dL / 18. Returns the approximation rounded to two decimals. Not HOMA-B, not the HOMA2 computer model, not a diabetes diagnosis, and not an insulin-resistance cutoff.

We sent a real POST request to this endpoint and it answered 402 with payment requirements we could parse.
Price
$0.005
Network
base
Pay to
0x836Be278f1739fB4308091cD1852F7971Bc19Ee2
Spec dialect
v2 (declares x402Version 2)
Transport
PAYMENT-REQUIRED header
HTTP method
POST
Response latency
59 ms
Payment options
1 usable of 1
Last checked
2026-09-06T01:17:15.524Z (2h ago)
Category
ai-inference

Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fhoma_ir"