{
  "x402Version": 2,
  "id": 39575,
  "slug": "39575",
  "resource": "https://api.magentlab.com/api/calc/albi",
  "description": "Johnson 2015 albumin-bilirubin (ALBI) grade from total bilirubin and albumin. xb = 0.66*log10(bilirubin umol/L) + albumin_g_l*(-0.085). Grade 1 if xb <= -2.60, grade 2 if xb <= -1.39, else 3. Returns albi_score (4 decimals) and albi_grade. Not a listing protocol, Child-Pugh, survival estimate, mALBI, PALBI, or EZ-ALBI.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "bilirubin_mg_dl": 1,
                "bilirubin_umol_l": 10
              },
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "bilirubin_mg_dl": 1,
                "bilirubin_umol_l": 10
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "albi_grade": 1,
                "albi_score": -2.74,
                "albumin_g_l": 40,
                "bilirubin_umol_l": 10,
                "citation": {
                  "authors": "Johnson PJ, Berhane S, Kagebayashi C, et al.",
                  "doi": "10.1200/JCO.2014.57.9151",
                  "id": "johnson-2015",
                  "pmid": "25512453",
                  "source": "J Clin Oncol. 2015;33(6):550-558",
                  "title": "Assessment of liver function in patients with hepatocellular carcinoma: a new evidence-based approach-the ALBI grade"
                },
                "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.",
                "formula": "albi",
                "formula_expression": "albi_score = (log10(bilirubin_umol_l) * 0.66) + (albumin_g_l * -0.085)"
              },
              {
                "albi_grade": 1,
                "albi_score": -2.74,
                "albumin_g_l": 40,
                "bilirubin_umol_l": 10,
                "citation": {
                  "authors": "Johnson PJ, Berhane S, Kagebayashi C, et al.",
                  "doi": "10.1200/JCO.2014.57.9151",
                  "id": "johnson-2015",
                  "pmid": "25512453",
                  "source": "J Clin Oncol. 2015;33(6):550-558",
                  "title": "Assessment of liver function in patients with hepatocellular carcinoma: a new evidence-based approach-the ALBI grade"
                },
                "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.",
                "formula": "albi",
                "formula_expression": "albi_score = (log10(bilirubin_umol_l) * 0.66) + (albumin_g_l * -0.085)"
              }
            ],
            "path": "/api/calc/albi"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "albumin_g_dl": {
                          "description": "Albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Johnson 2015 uses g/L.",
                          "type": "number"
                        },
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40). Converted as µmol/L = mg/dL × 17.1. Provide this or bilirubin_umol_l, not both.",
                          "type": "number"
                        },
                        "bilirubin_umol_l": {
                          "description": "Total bilirubin in µmol/L (2-684). Provide this or bilirubin_mg_dl, not both. Johnson 2015 uses µmol/L in log10.",
                          "type": "number"
                        }
                      },
                      "required": [],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "albi",
    "liver",
    "hcc",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T13:51:45.388Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T13:51:45.262Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "bilirubin_mg_dl": 1,
                  "bilirubin_umol_l": 10
                },
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "bilirubin_mg_dl": 1,
                  "bilirubin_umol_l": 10
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "albi_grade": 1,
                  "albi_score": -2.74,
                  "albumin_g_l": 40,
                  "bilirubin_umol_l": 10,
                  "citation": {
                    "authors": "Johnson PJ, Berhane S, Kagebayashi C, et al.",
                    "doi": "10.1200/JCO.2014.57.9151",
                    "id": "johnson-2015",
                    "pmid": "25512453",
                    "source": "J Clin Oncol. 2015;33(6):550-558",
                    "title": "Assessment of liver function in patients with hepatocellular carcinoma: a new evidence-based approach-the ALBI grade"
                  },
                  "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.",
                  "formula": "albi",
                  "formula_expression": "albi_score = (log10(bilirubin_umol_l) * 0.66) + (albumin_g_l * -0.085)"
                },
                {
                  "albi_grade": 1,
                  "albi_score": -2.74,
                  "albumin_g_l": 40,
                  "bilirubin_umol_l": 10,
                  "citation": {
                    "authors": "Johnson PJ, Berhane S, Kagebayashi C, et al.",
                    "doi": "10.1200/JCO.2014.57.9151",
                    "id": "johnson-2015",
                    "pmid": "25512453",
                    "source": "J Clin Oncol. 2015;33(6):550-558",
                    "title": "Assessment of liver function in patients with hepatocellular carcinoma: a new evidence-based approach-the ALBI grade"
                  },
                  "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.",
                  "formula": "albi",
                  "formula_expression": "albi_score = (log10(bilirubin_umol_l) * 0.66) + (albumin_g_l * -0.085)"
                }
              ],
              "path": "/api/calc/albi"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "albumin_g_dl": {
                            "description": "Albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Johnson 2015 uses g/L.",
                            "type": "number"
                          },
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40). Converted as µmol/L = mg/dL × 17.1. Provide this or bilirubin_umol_l, not both.",
                            "type": "number"
                          },
                          "bilirubin_umol_l": {
                            "description": "Total bilirubin in µmol/L (2-684). Provide this or bilirubin_mg_dl, not both. Johnson 2015 uses µmol/L in log10.",
                            "type": "number"
                          }
                        },
                        "required": [],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}