# Magent Oxygenation Index Calculator

> Magent Oxygenation Index Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the Oxygenation Index (OI) from FiO2, mean airway pressure, and PaO2 using the standard deterministic formula: FiO2 × MAP × 100 / PaO2

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/oxygenation_index
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-oxygenation-index-calculator-7a1bfada
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AMe1RwW_t72iY5ubFYarw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability magent-oxygenation-index-calculator-7a1bfada
```

Example prompt: Calculate the oxygenation index for a patient on 60% FiO2 (0.60 as a fraction), mean airway pressure of 20 cm H2O, and a PaO2 of 60 mmHg.

## When to prefer this

Use this endpoint when you need a fast, deterministic, citation-backed Oxygenation Index calculation with defined input ranges and clear formula provenance, particularly in clinical decision-support workflows for ventilated or critically ill patients. Prefer it over manual computation or general-purpose math tools when auditability of the formula source matters or when integrating into a larger ICU monitoring pipeline.

## Known failure modes

- FiO2 provided as a percentage (e.g. 60) instead of a fraction (0.60) — result will be 100× too high
- PaO2 or MAP out of accepted range (PaO2 20–700 mmHg, MAP 4–45 cm H2O) — validation error returned
- Missing required query parameter (fio2, mean_airway_pressure_cm_h2o, or pao2_mm_hg) — HTTP 400 or schema error
- Non-numeric values passed for numeric fields — parsing error
- Confusing mean airway pressure (ventilator) with mean arterial blood pressure — produces a clinically meaningless result

## How this service works

Oxygenation index from FiO2 as a fraction (0.21–1.0), mean airway pressure in cm H2O, and PaO2: FiO2 × MAP × 100 / PaO2. Deterministic published arithmetic with citation; not a diagnosis or an ECMO-initiation protocol.

## Output

Returns the computed Oxygenation Index (OI) as a numeric value derived from the formula FiO2 × MAP × 100 / PaO2, along with the published citation for the formula. The response is purely arithmetic — no clinical diagnosis or treatment recommendation is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "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": [
      "fio2",
      "mean_airway_pressure_cm_h2o",
      "pao2_mm_hg"
     ],
     "properties": {
      "fio2": {
       "type": "number",
       "description": "Inspired oxygen as a fraction (0.21-1.0), not a percent."
      },
      "pao2_mm_hg": {
       "type": "number",
       "description": "Arterial PO2 in mm Hg (20-700)."
      },
      "mean_airway_pressure_cm_h2o": {
       "type": "number",
       "description": "Mean airway pressure in cm H2O (4-45), not blood-pressure MAP."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/oxygenation_index",
  "count": 2,
  "items": [
   {
    "fio2": 0.5,
    "formula": "oxygenation_index",
    "citation": {
     "id": "ortiz-bartlett-1987",
     "doi": "10.1016/S0031-3955(16)36180-7",
     "title": "Extracorporeal membrane oxygenation in pediatric respiratory failure",
     "source": "Pediatr Clin North Am. 1987;34(1):39-46",
     "authors": "Ortiz RM, Cilley RE, Bartlett RH"
    },
    "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.",
    "pao2_mm_hg": 80,
    "oxygenation_index": 7.5,
    "formula_expression": "oxygenation_index = fio2 * mean_airway_pressure_cm_h2o * 100 / pao2_mm_hg",
    "mean_airway_pressure_cm_h2o": 12
   },
   {
    "fio2": 0.5,
    "formula": "oxygenation_index",
    "citation": {
     "id": "ortiz-bartlett-1987",
     "doi": "10.1016/S0031-3955(16)36180-7",
     "title": "Extracorporeal membrane oxygenation in pediatric respiratory failure",
     "source": "Pediatr Clin North Am. 1987;34(1):39-46",
     "authors": "Ortiz RM, Cilley RE, Bartlett RH"
    },
    "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.",
    "pao2_mm_hg": 80,
    "oxygenation_index": 7.5,
    "formula_expression": "oxygenation_index = fio2 * mean_airway_pressure_cm_h2o * 100 / pao2_mm_hg",
    "mean_airway_pressure_cm_h2o": 12
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-oxygenation-index-calculator-7a1bfada/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
