# KDIGO 2012 AKI Staging Calculator

> KDIGO 2012 AKI Staging 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-14).

Computes KDIGO 2012 AKI stage (0–3) from baseline and current serum creatinine (mg/dL) plus a caller-assigned urine-output category, RRT flag, and pediatric eGFR flag.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/kdigo_aki
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kdigo-2012-aki-staging-calculator-30b5cbe7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bqB3YHDhl_8xXgr0-Qrgj

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 kdigo-2012-aki-staging-calculator-30b5cbe7
```

Example prompt: Stage this patient's acute kidney injury using KDIGO 2012 criteria: baseline creatinine 1.0 mg/dL, current creatinine 2.2 mg/dL, urine output category is oliguria for 6 to 12 hours, not on RRT, and no pediatric eGFR flag.

## When to prefer this

Choose this endpoint when you need automated, rule-based KDIGO 2012 Table 2 AKI staging from creatinine values already in mg/dL and a caller-determined urine-output category. It is not AKIN 2007, not RIFLE, and does not measure urine output, compute eGFR, or convert units — the caller must supply those values. Prefer this over manual calculation when building clinical documentation, alerting pipelines, or research workflows that require reproducible KDIGO staging at scale.

## Known failure modes

- Missing required query parameters returns a validation error
- Creatinine values outside the 0.1–20 mg/dL range may be rejected or produce undefined results
- µmol/L values passed instead of mg/dL will produce incorrect staging silently — unit conversion must be done by the caller
- Invalid urine_output enum string causes a parameter error
- Incorrect caller-assigned flags (RRT, pediatric_egfr_lt_35) lead to miscategorization — the endpoint trusts caller input

## How this service works

KDIGO 2012 Table 2 AKI stage 0-3 from baseline and current creatinine in mg/dL and a caller-assigned urine-output category. Stage is the worse of the two limbs; RRT or a caller pediatric eGFR <35 flag is stage 3. magent does not assay creatinine, measure urine, collect weight, or compute eGFR (no MDRD). Not a medical device, not a diagnosis, not AKIN 2007, and not RIFLE.

## Output

Returns the overall KDIGO 2012 AKI stage (0, 1, 2, or 3) as the worse of the creatinine limb and the urine-output limb, with stage 3 automatically assigned if RRT is true or pediatric eGFR <35 is true, regardless of the other parameters.

## 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": [
      "baseline_creatinine_mg_dl",
      "current_creatinine_mg_dl",
      "urine_output",
      "rrt",
      "pediatric_egfr_lt_35"
     ],
     "properties": {
      "rrt": {
       "type": "boolean",
       "description": "Renal replacement therapy initiated as assigned by the caller. true maps to KDIGO stage 3 irrespective of creatinine or urine stage (KDIGO 2012 Table 2). true or false."
      },
      "urine_output": {
       "enum": [
        "none",
        "oliguria_6_to_12h",
        "oliguria_ge_12h",
        "oliguria_24h_or_anuria_12h"
       ],
       "type": "string",
       "description": "Caller-assigned KDIGO urine-output category (KDIGO 2012 Table 2): none (no oliguria or anuria criterion); oliguria_6_to_12h (<0.5 mL/kg/h for 6–12 hours); oliguria_ge_12h (<0.5 mL/kg/h for ≥12 hours); oliguria_24h_or_anuria_12h (<0.3 mL/kg/h for ≥24 hours or anuria for ≥12 hours). Case-insensitive. magent does not collect weight or measure urine."
      },
      "pediatric_egfr_lt_35": {
       "type": "boolean",
       "description": "Caller-assigned KDIGO Table 2 pediatric limb: patients <18 years with a decrease in eGFR to <35 mL/min/1.73 m². true maps to stage 3 irrespective of creatinine or urine stage. magent does not compute eGFR and does not use MDRD. true or false."
      },
      "current_creatinine_mg_dl": {
       "type": "number",
       "description": "Current serum creatinine in mg/dL (0.1-20). Staging uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine."
      },
      "baseline_creatinine_mg_dl": {
       "type": "number",
       "description": "Baseline serum creatinine in mg/dL (0.1-20). Staging uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "pro
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kdigo-2012-aki-staging-calculator-30b5cbe7/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)
