# FLIPI 2004 Calculator (Follicular Lymphoma International Prognostic Index)

> FLIPI 2004 Calculator (Follicular Lymphoma International Prognostic Index) 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 Solal-Céligny 2004 FLIPI score (0–5) and risk category (low/intermediate/high) from five binary clinical flags for follicular lymphoma prognosis.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/flipi
- 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/flipi-2004-calculator-follicular-lymphoma-international-prognostic-ae659300
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m29NJetsfQQM37VMtA9Ym

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 flipi-2004-calculator-follicular-lymphoma-international-prognostic-ae659300
```

Example prompt: Calculate the 2004 FLIPI score for a follicular lymphoma patient who is over 60, has Ann Arbor stage IV disease, hemoglobin of 110 g/L (so below 120), more than 4 nodal areas, and LDH within normal limits — what is their score and risk category?

## When to prefer this

Use this endpoint when you need a deterministic, cited implementation of the original 2004 Solal-Céligny FLIPI (not FLIPI-2) and already have the five binary clinical flags assigned from external clinical data. It is appropriate for automating prognostic scoring in oncology workflows, annotating EHR data, or checking trial eligibility criteria that reference FLIPI. Do not use it to stage lymphoma, measure hemoglobin, count nodal sites, or measure LDH — those must be resolved upstream.

## Known failure modes

- Missing required boolean query parameter returns a validation error
- Invalid (non-boolean) value for any parameter causes a 400-level error
- Payment not provided or insufficient results in x402 payment required response
- All five flags false returns score 0 / low risk (expected, not an error)

## How this service works

Solal-Céligny 2004 FLIPI: age >60, Ann Arbor III–IV, hemoglobin <120 g/L, nodal areas >4, LDH above ULN; 1 point each, max 5. Low 0–1, intermediate 2, high ≥3. Deterministic published score with citation; not a follicular-lymphoma diagnosis or treatment choice; FLIPI 2004 not FLIPI-2. magent does not stage lymphoma, assay hemoglobin, count nodal sites, or measure LDH.

## Output

Returns the numeric FLIPI total score (0–5, one point per positive flag) and the corresponding risk category: low (0–1), intermediate (2), or high (≥3), based on the Solal-Céligny 2004 publication. The endpoint performs only arithmetic on the five caller-supplied boolean inputs.

## 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_gt_60",
      "stage_iii_iv",
      "hemoglobin_lt_120_g_l",
      "nodal_sites_gt_4",
      "ldh_above_uln"
     ],
     "properties": {
      "age_gt_60": {
       "type": "boolean",
       "description": "Age >60 years as assigned by the caller (Solal-Céligny 2004). true scores 1. magent does not assign age."
      },
      "stage_iii_iv": {
       "type": "boolean",
       "description": "Ann Arbor stage III–IV as assigned by the caller (Solal-Céligny 2004). true scores 1. magent does not stage lymphoma."
      },
      "ldh_above_uln": {
       "type": "boolean",
       "description": "Serum LDH above the upper limit of normal as assigned by the caller (Solal-Céligny 2004). true scores 1. magent does not measure LDH."
      },
      "nodal_sites_gt_4": {
       "type": "boolean",
       "description": "Nodal areas >4 as assigned by the caller (Solal-Céligny 2004). true scores 1. magent does not count nodal sites."
      },
      "hemoglobin_lt_120_g_l": {
       "type": "boolean",
       "description": "Hemoglobin <120 g/L as assigned by the caller (Solal-Céligny 2004). true scores 1. magent does not assay hemoglobin."
      }
     }
    }
   },
   "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/flipi",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "flipi",
    "citation": {
     "id": "solal-celigny-2004",
     "doi": "10.1182/blood-2003-12-4434",
     "pmid": "15126323",
     "title": "Follicular lymphoma international prognostic index",
     "source": "Blood. 2004;104(5):1258-1265",
     "authors": "Solal-Céligny P, Roy P, Colombat P, White J, Armitage JO, Arranz-Saez R, Au WY, Bellei M, Brice P, Caballero D, Coiffier B, Conde-Garcia E, Doyen C, Federico M, Fisher RI, Garcia-Conde JF, Gisselbrecht C, Haioun C, LeBlanc M, Lister AT, Lopez-Guillermo A, McLaughlin P, Milpied N, Morel P, Mounier N, Proctor SJ, Rohatiner A, Smith P, Soubeyran P, Tilly H, Vitolo U, Zinzani PL, Zucca E, Montserrat E"
    },
    "max_score": 5,
    "components": [
     {
      "factor": "age_gt_60",
      "points": 0,
      "present": false
     },
     {
      "factor": "stage_iii_iv",
      "points": 0,
      "present": false
     },
     {
      "factor": "hemoglobin_lt_120_g_l",
      "points": 0,
      "present": false
     },
     {
      "factor": "nodal_sites_gt_4",
      "points": 0,
      "present": false
     },
     {
      "factor": "ldh_above_uln",
      "points": 0,
      "present": false
     }
    ],
    "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.",
    "flipi_band": "low",
    "formula_expression": "FLIPI = age_gt_60 1 + stage_iii_iv 1 + hemoglobin_lt_120_g_l 1 + nodal_sites_gt_4 1 + ldh_above_uln 1; Solal-Céligny 2004; max 5; low 0-1, intermediate 2, high ≥3"
   },
   {
    "score": 0,
    "formula": "flipi",
    "citation": {
     "id": "solal-celigny-2004",
     "doi": "10.1182/blood-2003-12-4434",
     "pmid": "15126323",
     "title": "Follicular lymphoma international prognostic index",
     "source": "Blood. 2004;104(5):1258-1265",
     "authors": "Solal-Céligny P, Roy P, Colombat P, White J, Armitage JO, Arranz-Saez R, Au WY, Bellei M, Brice P, Caballero D, Coiffier B, Conde-Garcia E, Doyen C, Federico M, Fisher RI, Garcia-Conde JF, Gisselbrecht C, Haioun C, LeBlanc M, Lister AT, Lopez-Guillermo A, McLaughlin P, Milpied N, Morel P, Mounier N, Proctor SJ, Rohatiner A, Smith P, Soubeyran P, Tilly H, Vitolo U, Zinzani PL, Zucca E, Montserrat E"
    },
    "max_score": 5,
    "components": [
     {
      "factor": "age_gt_60
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/flipi-2004-calculator-follicular-lymphoma-international-prognostic-ae659300/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)
