# magent AIN Risk Calculator (Moledina 2022)

> magent AIN Risk Calculator (Moledina 2022) 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 Moledina 2022 logistic probability of biopsy-proven acute interstitial nephritis (AIN) from serum creatinine, BUN:creatinine ratio, urine dipstick specific gravity, and dipstick protein category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ain_risk
- 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-ain-risk-calculator-moledina-2022-25b23f38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5_AblrcMhz9K-OEg0evFZ

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-ain-risk-calculator-moledina-2022-25b23f38
```

Example prompt: My patient has a serum creatinine of 3.2 mg/dL, a BUN:creatinine ratio of 18, a urine dipstick specific gravity of 1.010, and dipstick protein of 1+ — what does the Moledina 2022 model give as the estimated probability of biopsy-proven acute interstitial nephritis?

## When to prefer this

Use this endpoint when you need the Moledina 2022 4-variable logistic model specifically — covering serum creatinine, BUN:creatinine ratio, urine dipstick specific gravity, and dipstick protein — to generate a numeric probability of biopsy-proven AIN. Prefer this over other AKI or renal scoring tools (e.g. ADHERE, KFRE) when the clinical question is specifically AIN versus other causes of AKI, and when the caller has already computed or assigned all four input values. Note: does not include urine IL-9 or TNF-α biomarkers from the full Moledina study.

## Known failure modes

- Missing required query parameters (creatinine_mg_dl, bun_cr_ratio, specific_gravity, or protein) returns a validation error
- Creatinine outside 0.1–20 mg/dL range may be rejected or produce unreliable results
- BUN:creatinine ratio outside 0.5–200 range may be rejected
- Specific gravity outside 1.000–1.050 range may be rejected
- Invalid protein enum value (not 'le_1' or 'ge_2') returns an error
- Payment failure (x402) if insufficient USDC balance

## How this service works

Moledina 2022 development-model logistic probability of biopsy-proven acute interstitial nephritis from serum creatinine, BUN:creatinine ratio, urine dipstick specific gravity, and dipstick protein (0 or 1+ versus 2+ or higher, caller-assigned). Returns logit and estimated_probability_percent. Not a medical device, not a diagnosis, and not a kidney biopsy. Does not include urine IL-9 or TNF-α. Moledina 2022 publishes no named low/high cutoff.

## Output

Returns a JSON object containing the raw logit from the Moledina 2022 Table 4 linear combination and the estimated_probability_percent representing the model's estimated likelihood of biopsy-proven acute interstitial nephritis. No low/high cutoff is defined by Moledina 2022. The result is a research-grade probability estimate, not a diagnosis or medical device output.

## 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": [
      "creatinine_mg_dl",
      "bun_cr_ratio",
      "specific_gravity",
      "protein"
     ],
     "properties": {
      "protein": {
       "enum": [
        "le_1",
        "ge_2"
       ],
       "type": "string",
       "description": "Moledina 2022 dipstick protein category as assigned by the caller: le_1 (0 or 1+, +0.9360127) or ge_2 (2+ or higher, reference, 0). magent does not interpret the dipstick."
      },
      "bun_cr_ratio": {
       "type": "number",
       "description": "BUN:creatinine ratio (mg/dL : mg/dL, 0.5-200) as computed by the caller. Moledina 2022 Table 4: -0.9181938 per natural log. magent does not compute BUN from other labs."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Serum creatinine in mg/dL (0.1-20). Moledina 2022 Table 4: +0.8367518 per natural log. µmol/L is not accepted on this tool. magent does not assay creatinine."
      },
      "specific_gravity": {
       "type": "number",
       "description": "Urine dipstick specific gravity (1.000-1.050) as assigned by the caller, e.g. 1.015. Moledina 2022 Table 4: -0.0501203 per 0.001 unit. magent does not read the dipstick."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ain-risk-calculator-moledina-2022-25b23f38/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)
