# Delx Calibration Bucket

> Delx Calibration Bucket is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Maps a probability value to a discrete bucket index given a specified number of bins, useful for histogram-style binning in agent pipelines.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/calibration-bucket?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-calibration-bucket-97fecf21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PiOKILxYWFil0YxZaHDjJ

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-calibration-bucket-97fecf21 -d '<json body>'
```

Example prompt: I have a probability score of 0.73 and I want to bin it into 10 equal-width buckets — which bucket does it land in?

## When to prefer this

Use this endpoint when an agent needs to discretize a continuous probability or confidence score into a fixed number of integer bins — for example, to route downstream logic, build histogram tallies, or tier model outputs into categories. Prefer this over implementing custom bucketing logic inline when operating in a Delx-native agent pipeline where deterministic, schema-versioned utility calls are preferred for auditability.

## Known failure modes

- Missing required field bins or prob returns a 4xx validation error
- prob values outside [0, 1] may yield out-of-range bucket indices or an error
- Non-integer bins value causes schema validation failure
- bins value of 0 or negative likely causes a division error
- Network or payment failure returns a 402 or 5xx status

## How this service works

Bucket a probability into a calibration bin for reliability charts. Call when building simple calibration histograms from many forecasts. Returns bucket index and bounds 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 echoed bins and prob inputs alongside a zero-based integer bucket index indicating which bin the probability falls into, plus a schema identifier string (e.g. delx/util-calibration-bucket/v1).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bins": 10,
  "prob": 0.73,
  "bucket": 7,
  "schema": "delx/util-calibration-bucket/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-calibration-bucket-97fecf21/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)
