Serum anion gap from sodium, chloride, and bicarbonate, with or without potassiu
Serum anion gap from sodium, chloride, and bicarbonate, with or without potassium. formula=without_k or formula=with_k is required; magent does not pick one. Deterministic Emmett–Narins 1977 arithmetic with citation. Not a diagnosis, albumin-corrected gap (Figge/Fencl), or delta gap.
Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
278 msmedian answer time
$0.005listed price per call
$0.007price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/anion_gap
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.007 | 278 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"bicarbonate_mmol_l": 24,
"chloride_mmol_l": 104,
"formula": "without_k",
"potassium_mmol_l": 4,
"sodium_mmol_l": 140
},
{
"bicarbonate_mmol_l": 24,
"chloride_mmol_l": 104,
"formula": "without_k",
"potassium_mmol_l": 4,
"sodium_mmol_l": 140
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"bicarbonate_mmol_l": {
"description": "Serum bicarbonate in mmol/L (2-45).",
"type": "number"
},
"chloride_mmol_l": {
"description": "Serum chloride in mmol/L (70-130).",
"type": "number"
},
"formula": {
"description": "without_k (Na - Cl - HCO3) or with_k (Na + K - Cl - HCO3). Required; magent does not pick one silently.",
"enum": [
"without_k",
"with_k"
],
"type": "string"
},
"potassium_mmol_l": {
"description": "Serum potassium in mmol/L (1.5-8.0). Required when formula=with_k. Ignored when formula=without_k.",
"type": "number"
},
"sodium_mmol_l": {
"description": "Serum sodium in mmol/L (110-160).",
"type": "number"
}
},
"required": [
"sodium_mmol_l",
"chloride_mmol_l",
"bicarbonate_mmol_l",
"formula"
],
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"const": "POST",
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}