# Magent CP-AKI Risk Score (Gupta 2024)

> Magent CP-AKI Risk Score (Gupta 2024) 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 the Gupta 2024 Figure 2 CP-AKI (cisplatin-induced acute kidney injury) risk score and risk category from clinical parameters before first IV cisplatin administration.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cp_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/magent-cp-aki-risk-score-gupta-2024-26529b9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WlHjHHCg30Adkg3H4QjF-

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-cp-aki-risk-score-gupta-2024-26529b9d
```

Example prompt: Calculate the Gupta 2024 CP-AKI score for a 63-year-old patient with hypertension but no diabetes, who is a former smoker, with hemoglobin 105 g/L, WBC 9.5 k/µL, albumin 35 g/L, magnesium 0.75 mmol/L, and a planned cisplatin dose of 75 mg.

## When to prefer this

Use this endpoint when you need a standardized, validated pre-cisplatin AKI risk score based specifically on the Gupta 2024 Figure 2 model, returning both a numeric score and a four-level risk category. Prefer it over generic renal function calculators when the clinical context is IV cisplatin chemotherapy and the inputs are readily available lab values and patient history flags.

## Known failure modes

- Missing required parameters (age, hypertension, diabetes, smoking status, magnesium, cisplatin dose) returns a validation error
- Age outside 18-120 range rejected
- Providing both wbc_ul and wbc_k_ul simultaneously returns an error
- Providing both albumin_g_l and albumin_g_dl simultaneously returns an error
- Hemoglobin or magnesium values outside physiologically plausible ranges may be rejected
- HTTP 402 if payment header is absent or insufficient for $0.005 USDC fee

## How this service works

Gupta 2024 Figure 2 simple CP-AKI score after first IV cisplatin: age, hypertension, diabetes, current or former smoking, hemoglobin g/L, WBC, albumin g/L, magnesium mmol/L, and cisplatin dose mg. Max 22.5. Low / moderate / high / very_high. Not a diagnosis or chemo order. magent does not assay labs or dose cisplatin.

## Output

Returns a numeric CP-AKI score (maximum 22.5) computed by summing weighted points for each clinical variable per the Gupta 2024 Figure 2 model, plus a categorical risk label: low, moderate, high, or very_high. Does not constitute a clinical diagnosis or chemotherapy dosing recommendation.

## 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": [
      "age",
      "hypertension",
      "diabetes",
      "current_or_former_smoker",
      "magnesium_mmol_l",
      "cisplatin_dose_mg"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Gupta 2024 Figure 2: ≤45 scores 0; 46-60 scores 2.5; 61-70 scores 3.5; >70 scores 4.5."
      },
      "wbc_ul": {
       "type": "number",
       "description": "White blood cell count per µL (10-500000). Converted as wbc_10e9_l = wbc_ul / 1000. Provide this or wbc_k_ul, not both."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Caller-assigned diabetes mellitus (Gupta 2024 Figure 2). true scores 1. magent does not diagnose diabetes."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "White blood cell count in 10^9/L (0.01-500), same as k/µL. Provide this or wbc_ul, not both. ≤12.0 scores 0; >12.0 scores 1.5 (Gupta 2024 Figure 2). magent does not assay WBC."
      },
      "albumin_g_l": {
       "type": "number",
       "description": "Serum albumin in g/L (10-60), Gupta 2024 units. Provide this or albumin_g_dl, not both. >38 scores 0; 33-38 scores 1; <33 scores 1.5. magent does not assay albumin."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Serum albumin in g/dL (1-6). Converted as albumin_g_l = albumin_g_dl × 10. Provide this or albumin_g_l, not both."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Caller-assigned hypertension (Gupta 2024 Figure 2). true scores 1. magent does not diagnose hypertension."
      },
      "hemoglobin_g_l": {
       "type": "number",
       "description": "Hemoglobin in g/L (30-220), Gupta 2024 units. Provide this or hemoglobin_g_dl, not both. ≥120 scores 0; 110-119 scores 1; <110 scores 1.5. magent does not assay hemoglobin."
      },
      "hemoglobin_g_dl": {
       "type": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-cp-aki-risk-score-gupta-2024-26529b9d/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)
