# magent pFIB-c Pediatric Liver Fibrosis Score

> magent pFIB-c Pediatric Liver Fibrosis Score 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 Lefere 2025 pFIB-c logistic probability of significant (≥F2) liver fibrosis in pediatric MASLD using sex, hypertension, ALT, weight Z-score, HOMA-IR, and Black ethnicity.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pfib_c
- 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-pfib-c-pediatric-liver-fibrosis-score-6fd3d44b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_voFzAM97o6_JJLWV1EVIm

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-pfib-c-pediatric-liver-fibrosis-score-6fd3d44b
```

Example prompt: Calculate the Lefere 2025 pFIB-c fibrosis probability for a boy with hypertension, ALT of 85 U/L, weight Z-score of 2.1, HOMA-IR of 4.3, and no Black ethnicity — I need to know his risk of significant liver fibrosis.

## When to prefer this

Use this endpoint when you need the specific Lefere 2025 pFIB-c logistic model for pediatric MASLD fibrosis risk estimation and already have all six inputs pre-computed (ALT in U/L, caller-assigned weight Z-score, HOMA-IR, hypertension status, sex, and Black ethnicity). Prefer this over pFIB-6 or adult fibrosis scores when the patient is a child and the Lefere 2025 Table 2 formulation is required. Do not use if you need LMS Z-score computation, HOMA-IR calculation from raw glucose/insulin, race assignment, or a diagnostic conclusion.

## Known failure modes

- Missing required query parameters (sex, hypertension, alt_u_l, weight_z_score, homa_ir, black_ethnicity) returns a validation error
- ALT outside 5–500 U/L range may return an out-of-range error
- HOMA-IR outside 0–50 range may be rejected
- weight_z_score outside -5 to 8 may be rejected
- Invalid sex value (not 'boy' or 'girl') returns an enum validation error
- Payment not provided or insufficient USDC returns 402 Payment Required

## How this service works

Lefere 2025 pFIB-c logistic probability of significant (>=F2) liver fibrosis in pediatric MASLD from sex (boy/girl), hypertension, ALT (U/L), caller-assigned CDC/WHO weight Z-score, HOMA-IR, and caller-assigned Black ethnicity. Table 2 coefficients. Derivation rule-out cutoff 0.226. magent does not assign race or ethnicity and does not compute LMS Z-scores. Not a biopsy, not pFIB-6, and not a diagnosis.

## Output

Returns the pFIB-c logistic probability (0–1) of significant (≥F2) liver fibrosis in a pediatric MASLD patient, derived from Lefere 2025 Table 2 coefficients. A result below 0.226 meets the derivation rule-out cutoff. This is a probability estimate only — not a biopsy result, not pFIB-6, and not a clinical diagnosis.

## 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": [
      "sex",
      "hypertension",
      "alt_u_l",
      "weight_z_score",
      "homa_ir",
      "black_ethnicity"
     ],
     "properties": {
      "sex": {
       "enum": [
        "boy",
        "girl"
       ],
       "type": "string",
       "description": "Sex as Lefere 2025 Table 2 (boy or girl). boy adds 1.194 (sex_boy=1); girl adds 0. Paper terms."
      },
      "alt_u_l": {
       "type": "number",
       "description": "Alanine aminotransferase in U/L (5-500). Lefere 2025 Table 2: +0.019 per U/L. magent does not convert other ALT units."
      },
      "homa_ir": {
       "type": "number",
       "description": "Caller-assigned HOMA-IR (0-50). Lefere 2025 Table 2: +0.079 per unit. magent does not compute HOMA-IR from glucose and insulin."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Hypertension as assigned by the caller (true or false). Lefere 2025 Table 2: true adds 1.636."
      },
      "weight_z_score": {
       "type": "number",
       "description": "Caller-assigned CDC or WHO weight-for-age Z-score (-5 to 8). Lefere 2025 Table 2: +0.633 per unit. magent does not compute LMS tables from height, weight, age, or sex."
      },
      "black_ethnicity": {
       "type": "boolean",
       "description": "Caller-assigned Black ethnicity as used in Lefere 2025 (true or false). Table 2: true adds -2.453. magent does not assign race or ethnicity."
      }
     }
    }
   },
   "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-pfib-c-pediatric-liver-fibrosis-score-6fd3d44b/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)
