# Delx Probability Clamp

> Delx Probability Clamp 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-23).

Clamps a floating-point probability value to the valid [0, 1] range, returning the corrected value.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/prob-clamp?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-probability-clamp-ed0b7968
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GIrU-uOjNNfs1VkRC1PJ3

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-probability-clamp-ed0b7968 -d '<json body>'
```

Example prompt: Clamp this probability value 1.2 to make sure it's within the valid 0 to 1 range.

## When to prefer this

Use this endpoint when you need a simple, fast, reliable micro-service to clamp a probability or confidence score to [0,1] without implementing the logic yourself — especially useful inside agent pipelines where numerical drift, model output overflow, or scraping artifacts can produce out-of-range floats. Prefer this over custom code when you want auditability via the schema tag on the response.

## Known failure modes

- Missing or non-numeric 'prob' field returns a validation error
- Non-finite values (NaN, Infinity) may cause unexpected behavior
- Payment failure (402) if USDC balance is insufficient for the $0.001 call cost

## How this service works

Clamp a probability into (eps, 1−eps) for stable odds/math. Call when preventing 0/1 probs from blowing up logs and odds. Returns clamped probability 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 clamped probability (guaranteed to be within [0,1]), the original input value, and a schema identifier string ('delx/util-prob-clamp/v1') for traceability.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prob": 0.999999999,
  "input": 1.2,
  "schema": "delx/util-prob-clamp/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-probability-clamp-ed0b7968/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)
