# Delx Commerce Calibration Bucket

> Delx Commerce Calibration Bucket 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-02).

Converts a probability value and bin count into a discrete calibration bucket index for quantile/binning use cases.

## Facts

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

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

Example prompt: I have a probability score of 0.73 — can you split the range into 10 equal bins and tell me which bucket that score falls into?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call, no-signup way to discretize a probability value into a fixed number of bins — ideal for AI agents performing calibration, histogram construction, or quantile assignment at low cost ($0.001 USDC) without managing infrastructure. Prefer it over writing custom binning logic when you need verifiable, deterministic results on-chain via x402.

## Known failure modes

- Missing required fields (bins or prob) returns an error
- Non-integer bins value causes a validation error
- Probability value outside 0–1 range may return an error or unexpected bucket
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Network or service unavailability returns a 5xx error

## 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 original bin count, the input probability, the computed bucket index (zero- or one-based integer indicating which bin the probability falls into), and a schema identifier string '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-commerce-calibration-bucket-f61e4cc0/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)
