# Delx Commerce — Brier Score Calculator

> Delx Commerce — Brier Score Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

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

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/brier-score?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-brier-score-calculator-5e4b93a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gvr8HljmYQ0GmjF6QAcNk

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-commerce-brier-score-calculator-5e4b93a0 -d '<json body>'
```

Example prompt: Can you calculate the Brier score for a forecast where I predicted a 0.7 probability and the outcome was 1 (it actually happened)?

## When to prefer this

Use this endpoint when you need a quick, cheap ($0.001 USDC), pay-per-call Brier score computation with no signup or API key — ideal for agents that need to evaluate probabilistic forecasts inline without standing up their own scoring infrastructure. Prefer this over implementing the formula locally when auditability or verifiable delivery of the result matters.

## Known failure modes

- Missing required fields (prob or outcome) returns a validation error
- Probability value outside [0,1] range may return an error or unexpected result
- Outcome value that is not 0 or 1 (binary) may cause a computation error
- Payment failure (insufficient USDC balance) returns a 402 Payment Required
- Network timeout on slow connections

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the input probability, the computed Brier score (a float between 0 and 1 where 0 is perfect), the binary outcome, and a schema identifier ('delx/util-brier-score/v1'). Lower Brier scores indicate more accurate probabilistic forecasts.

## 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-commerce-brier-score-calculator-5e4b93a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
