# PRE Score Calculator (Pittsburgh Response to Endovascular Therapy)

> PRE Score Calculator (Pittsburgh Response to Endovascular Therapy) 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-14).

Calculates the PRE score (age + 2×NIHSS − 10×ASPECTS) for acute ischemic stroke patients, returning the integer score, quartile classification, and recanalization-benefit stratum.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pre_score
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pre-score-calculator-pittsburgh-response-to-endovascular-therapy-cb475776
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oL5xbHLdpwV2EVJ3ovN33

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 pre-score-calculator-pittsburgh-response-to-endovascular-therapy-cb475776
```

Example prompt: Calculate the PRE score for a 68-year-old stroke patient with a caller-assigned NIHSS of 16 and ASPECTS of 7, and tell me which quartile and recanalization-benefit stratum they fall into.

## When to prefer this

Use this endpoint when you need a fast, reproducible computation of the Rangaraju 2015 PRE score from caller-supplied NIHSS and ASPECTS values. It is the right choice for clinical documentation workflows, retrospective cohort analysis, or educational tooling where the score and stratum need to be calculated programmatically without manual arithmetic. Do not use it as a replacement for clinical judgment or as a thrombectomy recommendation system.

## Known failure modes

- Missing required query parameters (age, nihss, or aspects) returns a validation error
- Out-of-range values (e.g. age <18 or >120, NIHSS >42, ASPECTS >10) may return an error or unexpected result
- Payment failure (x402) if USDC balance or authorization is insufficient
- Network timeout or server unavailability returns HTTP 5xx

## How this service works

PRE (Pittsburgh Response to Endovascular therapy) score: age + 2×NIHSS - 10×ASPECTS (Rangaraju 2015). Integer PRE, quartiles <0 / 0-24 / 25-49 / >=50, and recanalization-benefit strata <-24 / -24 to 49 / >=50. Not a thrombectomy recommendation. The caller assigns NIHSS and ASPECTS; magent does not assign NIHSS or read CT.

## Output

Returns an integer PRE score (age + 2×NIHSS − 10×ASPECTS), a quartile classification (less than 0 / 0–24 / 25–49 / 50 or above), and a recanalization-benefit stratum (less than −24 / −24 to 49 / 50 or above). Does not constitute a thrombectomy recommendation.

## 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",
      "nihss",
      "aspects"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120)."
      },
      "nihss": {
       "type": "integer",
       "description": "Caller-assigned NIH Stroke Scale total (integer 0-42, NINDS total). magent does not assign NIHSS or examine the patient."
      },
      "aspects": {
       "type": "integer",
       "description": "Alberta Stroke Program Early CT Score (integer 0-10). magent does not read CT."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pre-score-calculator-pittsburgh-response-to-endovascular-therapy-cb475776/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)
