{"uid":"cap_2dQFcW87XJ0Fev4mSddqq","slug":"tavaglione-2023-fibrotic-nash-index-fni-calculator-6ea124f3","name":"Tavaglione 2023 Fibrotic NASH Index (FNI) Calculator","description":"Tavaglione 2023 fibrotic NASH index (FNI) from AST, HbA1c, and HDL cholesterol. FNI = e^x/(1+e^x) with x = -10.33 + 2.54*ln(AST) + 3.86*ln(HbA1c) - 1.66*ln(HDL mg/dL). HDL may be mg/dL or mmol/L (×38.67). Rule-out ≤0.10; indeterminate between 0.10 and 0.33; rule-in ≥0.33. Not a biopsy, not FIB-4, not the NAFLD fibrosis score, not SAFE, and not BARD.","url":"https://api.magentlab.com/api/calc/fni","method":"GET","headers":{},"bodySchema":{"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":["ast_u_l","a1c_percent"],"properties":{"ast_u_l":{"type":"number","description":"Aspartate aminotransferase in U/L (1-10000)."},"hdl_mg_dl":{"type":"number","description":"HDL cholesterol in mg/dL (5-150). Provide this or hdl_mmol_l, not both. Used in the natural-log term."},"hdl_mmol_l":{"type":"number","description":"HDL cholesterol in mmol/L (0.1-3.9). Converted as mg/dL = mmol/L * 38.67. Provide this or hdl_mg_dl, not both."},"a1c_percent":{"type":"number","description":"HbA1c in percent (4-15). magent does not convert from eAG."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BBctKBwpeOliz_E29yMFF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Tavaglione 2023 Fibrotic NASH Index (FNI) from AST, HbA1c, and HDL cholesterol to rule in or rule out fibrotic NASH without a liver biopsy.","exampleAgentPrompt":"A patient has an AST of 52 U/L, HbA1c of 7.8%, and HDL of 38 mg/dL — can you calculate their Tavaglione 2023 Fibrotic NASH Index (FNI) score and tell me whether they rule in, rule out, or fall in the indeterminate zone?","exampleUseCases":[{"title":"Pre-biopsy NASH fibrosis triage","prompt":"My patient has AST 67 U/L, HbA1c 8.2%, and HDL 42 mg/dL. Calculate their FNI score to see if I can rule out fibrotic NASH without sending them for a biopsy."},{"title":"Metabolic clinic NASH screening","prompt":"I'm reviewing a panel of metabolic syndrome patients. For this one with AST 45 U/L, HbA1c 6.9%, and HDL 1.1 mmol/L, what does the Tavaglione FNI say about their fibrotic NASH risk?"},{"title":"Automated liver disease risk stratification","prompt":"As part of my hepatology workflow, compute the Fibrotic NASH Index for a patient with AST 88 U/L, HbA1c 9.1%, and HDL 33 mg/dL and tell me whether they rule in for fibrotic NASH."}],"resultDescription":"Returns a continuous FNI probability score between 0 and 1 derived from the logistic formula (e^x / (1+e^x)) with x = -10.33 + 2.54·ln(AST) + 3.86·ln(HbA1c) − 1.66·ln(HDL mg/dL). Scores ≤0.10 indicate rule-out, 0.10–0.33 are indeterminate, and ≥0.33 indicate rule-in for fibrotic NASH.","failureModes":["Missing required parameters (ast_u_l or a1c_percent) returns a 400 error","Providing both hdl_mg_dl and hdl_mmol_l simultaneously causes a validation error","Out-of-range values (e.g. AST outside 1–10000 U/L, HbA1c outside 4–15%) may return an error or undefined result","HDL or AST of zero would cause a logarithm domain error","Payment failure (insufficient USDC balance) returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need a validated, formula-based non-invasive risk score specifically for fibrotic NASH (not general NAFLD fibrosis or liver fibrosis broadly). It is distinct from FIB-4, APRI, NAFLD Fibrosis Score, SAFE score, and BARD score — choose it when the clinical question is specifically whether a patient has fibrotic NASH per the Tavaglione 2023 publication. It requires only three routine blood values (AST, HbA1c, HDL) and accepts HDL in either mg/dL or mmol/L.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:40:04.956Z","isFirstParty":false}