# ABIC Score Calculator (Alcoholic Hepatitis)

> ABIC Score Calculator (Alcoholic Hepatitis) 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 Dominguez 2008 ABIC score from age, bilirubin, creatinine, and INR to stratify alcoholic hepatitis severity into low, intermediate, or high risk categories.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/abic
- 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/abic-score-calculator-alcoholic-hepatitis-fa938d20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1wqWVwSzOeEGtXYJF3y_r

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 abic-score-calculator-alcoholic-hepatitis-fa938d20
```

Example prompt: Calculate the ABIC score for a 52-year-old patient with a bilirubin of 9.4 mg/dL, creatinine of 1.3 mg/dL, and an INR of 1.7 — tell me the score and whether they're low, intermediate, or high risk.

## When to prefer this

Use this endpoint when you need to programmatically compute the Dominguez 2008 ABIC score for alcoholic hepatitis severity stratification, especially when integrating into clinical decision support workflows or automated chart review pipelines. It accepts both SI and conventional lab units. Note: this is a scoring tool only and must not be interpreted as a diagnosis or treatment order.

## Known failure modes

- Missing required fields (age or INR) returns a validation error
- Both bilirubin_mg_dl and bilirubin_umol_l provided simultaneously causes an error
- Both creatinine_mg_dl and creatinine_umol_l provided simultaneously causes an error
- Values outside accepted ranges (e.g. age <18 or >120) may return a validation error
- Payment failure (402) if x402 payment header is missing or insufficient

## How this service works

Dominguez 2008 ABIC score from age, bilirubin, creatinine, and INR. ABIC = (age * 0.1) + (bilirubin_mg_dl * 0.08) + (creatinine_mg_dl * 0.3) + (inr * 0.8). Low <6.71, intermediate 6.71–9.0, high >9.0. Not a diagnosis of alcoholic hepatitis and not a steroid or transplant order.

## Output

Returns the numeric ABIC score computed as (age × 0.1) + (bilirubin_mg_dl × 0.08) + (creatinine_mg_dl × 0.3) + (INR × 0.8), along with the risk category: low (<6.71), intermediate (6.71–9.0), or high (>9.0).

## 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",
      "inr"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120)."
      },
      "inr": {
       "type": "number",
       "description": "International normalized ratio (0.8-10)."
      },
      "bilirubin_mg_dl": {
       "type": "number",
       "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l, not both."
      },
      "bilirubin_umol_l": {
       "type": "number",
       "description": "Total bilirubin in µmol/L (2-684). Converted as mg/dL = µmol/L / 17.1."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."
      }
     }
    }
   },
   "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/abic",
  "count": 2,
  "items": [
   {
    "age": 50,
    "inr": 1.5,
    "formula": "abic",
    "citation": {
     "id": "dominguez-2008",
     "doi": "10.1111/j.1572-0241.2008.02104.x",
     "pmid": "18721242",
     "title": "A new scoring system for prognostic stratification of patients with alcoholic hepatitis",
     "source": "Am J Gastroenterol. 2008;103(11):2747-2756",
     "authors": "Dominguez M, Rincón D, Abraldes JG, Miquel R, Colmenero J, Bellot P, García-Pagán JC, Fernández J, Marín P, Guarner C, Arroyo V, Bruguera M, Bañares R, Ginès P, Caballería J"
    },
    "abic_band": "intermediate",
    "abic_score": 7.3,
    "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.",
    "bilirubin_mg_dl": 10,
    "creatinine_mg_dl": 1,
    "formula_expression": "ABIC = (age * 0.1) + (bilirubin_mg_dl * 0.08) + (creatinine_mg_dl * 0.3) + (inr * 0.8)"
   },
   {
    "age": 50,
    "inr": 1.5,
    "formula": "abic",
    "citation": {
     "id": "dominguez-2008",
     "doi": "10.1111/j.1572-0241.2008.02104.x",
     "pmid": "18721242",
     "title": "A new scoring system for prognostic stratification of patients with alcoholic hepatitis",
     "source": "Am J Gastroenterol. 2008;103(11):2747-2756",
     "authors": "Dominguez M, Rincón D, Abraldes JG, Miquel R, Colmenero J, Bellot P, García-Pagán JC, Fernández J, Marín P, Guarner C, Arroyo V, Bruguera M, Bañares R, Ginès P, Caballería J"
    },
    "abic_band": "intermediate",
    "abic_score": 7.3,
    "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.",
    "bilirubin_mg_dl": 10,
    "creatinine_mg_dl": 1,
    "formula_expression": "ABIC = (age * 0.1) + (bilirubin_mg_dl * 0.08) + (creatinine_mg_dl * 0.3) + (inr * 0.8)"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/abic-score-calculator-alcoholic-hepatitis-fa938d20/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)
