# Delx Brier Score

> Delx Brier Score is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes the Brier score for a probabilistic forecast given a predicted probability and a binary outcome

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/brier-score
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-brier-score-361e332a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vgAJgg-oWcHf7nA7yf313

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 delx-brier-score-361e332a -d '<json body>'
```

Example prompt: Calculate the Brier score for a forecast where I predicted a 70% probability and the outcome was 1 (it happened).

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call Brier score computation without setting up local statistical libraries. Ideal for agents that periodically evaluate forecast quality inline, score individual predictions in real time, or need a stateless, dependency-free scoring step in a larger pipeline.

## Known failure modes

- Missing required 'prob' field returns a validation error
- 'prob' value outside [0,1] range may produce mathematically invalid results
- 'outcome' must be 0 or 1; other integer values may cause unexpected scoring
- Malformed request body returns a 400 or 422 error

## How this service works

Brier score for a probabilistic forecast vs binary outcome. Call when scoring prediction calibration on resolved markets. Returns brier score in [0,1] as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns a JSON object containing the input probability, the binary outcome, and the computed Brier score (a float between 0 and 1 where lower is better), along with a schema identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prob": {
   "type": "number",
   "description": "Input field: prob."
  },
  "outcome": {
   "type": "integer",
   "description": "Input field: outcome."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prob": 0.7,
  "brier": 0.09000000000000002,
  "schema": "delx/util-brier-score/v1",
  "outcome": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-brier-score-361e332a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
