# Kothari ABC/2 ICH Volume Calculator

> Kothari ABC/2 ICH Volume Calculator 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).

Calculates intracerebral hemorrhage (ICH) volume using the Kothari 1996 ABC/2 formula: (A × B × C) / 2, returning the result in milliliters rounded to one decimal place.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/abc2
- 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/kothari-abc-2-ich-volume-calculator-d1c6b354
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_apRVro76QQN2mMf2NEeYE

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 kothari-abc-2-ich-volume-calculator-d1c6b354
```

Example prompt: Calculate the ICH volume using the ABC/2 formula — A is 4.2 cm, B is 3.1 cm, and C is 5.0 cm (10 slices times 0.5 cm thickness).

## When to prefer this

Use this endpoint when you already have the three CT ellipsoid dimensions (A, B, C in centimeters) extracted from a radiology report or manual measurement, and need a fast, standardized Kothari 1996 ABC/2 volume computation in milliliters. Prefer this over manual calculation to avoid arithmetic errors in clinical workflows. Not appropriate if you need the full ICH Score (which incorporates volume plus other variables), automated image analysis, or diagnostic interpretation.

## Known failure modes

- Missing required parameter (a_cm, b_cm, or c_cm) returns a 4xx error
- Values outside the valid range of 0.1–20 cm may be rejected or return an error
- Non-numeric input for any dimension will cause a validation failure
- Payment not attached or insufficient USDC will result in a 402 Payment Required response

## How this service works

Kothari 1996 ABC/2 ellipsoid ICH volume: (a_cm × b_cm × c_cm) / 2, rounded to one decimal milliliter. A is the largest diameter, B the perpendicular diameter, and C slice count times thickness; the caller supplies all three in cm. Volume estimate only; not the ICH Score. magent does not read imaging or choose A/B/C on the scan. Not a diagnosis.

## Output

Returns the estimated ICH volume in milliliters, computed as (A × B × C) / 2 and rounded to one decimal place. This is a volume estimate only — not the ICH Score — and does not involve image reading or automated measurement selection.

## 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": [
      "a_cm",
      "b_cm",
      "c_cm"
     ],
     "properties": {
      "a_cm": {
       "type": "number",
       "description": "Largest diameter A in cm (0.1-20). Caller-assigned; magent does not read a scan."
      },
      "b_cm": {
       "type": "number",
       "description": "Largest diameter B perpendicular to A, in cm (0.1-20). Caller-assigned."
      },
      "c_cm": {
       "type": "number",
       "description": "C in cm (0.1-20): number of slices times slice thickness. Caller-assigned."
      }
     }
    }
   },
   "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/abc2",
  "count": 2,
  "items": [
   {
    "a_cm": 2,
    "b_cm": 2,
    "c_cm": 2,
    "formula": "abc2",
    "citation": {
     "id": "kothari-1996",
     "doi": "10.1161/01.STR.27.8.1304",
     "title": "The ABCs of measuring intracerebral hemorrhage volumes",
     "source": "Stroke. 1996;27(8):1304-1305",
     "authors": "Kothari RU, Brott T, Broderick JP, et al."
    },
    "volume_ml": 4,
    "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_expression": "volume_ml = (a_cm * b_cm * c_cm) / 2"
   },
   {
    "a_cm": 2,
    "b_cm": 2,
    "c_cm": 2,
    "formula": "abc2",
    "citation": {
     "id": "kothari-1996",
     "doi": "10.1161/01.STR.27.8.1304",
     "title": "The ABCs of measuring intracerebral hemorrhage volumes",
     "source": "Stroke. 1996;27(8):1304-1305",
     "authors": "Kothari RU, Brott T, Broderick JP, et al."
    },
    "volume_ml": 4,
    "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_expression": "volume_ml = (a_cm * b_cm * c_cm) / 2"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kothari-abc-2-ich-volume-calculator-d1c6b354/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)
