# Delx Commerce — Probability Clamp Utility

> Delx Commerce — Probability Clamp Utility 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).

Clamps a numeric input to a valid probability value in the range [0, 1]

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/prob-clamp?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-probability-clamp-utility-b87ca763
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0LWv4M5EHD2JKbXE_099V

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

Example prompt: Clamp the value 1.2 to a valid probability — make sure it stays within the 0 to 1 range.

## When to prefer this

Choose this endpoint when you need a simple, cheap, verifiable utility call to clamp a single numeric value into a valid probability range [0,1] without any local computation setup. Useful in agent pipelines where you want pay-per-result accountability and cryptographic delivery proof via x402 on Base or Solana, rather than implementing clamping logic yourself.

## Known failure modes

- Missing or non-numeric 'prob' field in request body returns a validation error
- Network or payment failure (x402 USDC payment not completed) blocks the request
- Extremely large or non-finite values (NaN, Infinity) may cause unexpected behavior depending on server-side handling

## 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 clamped probability value (guaranteed to be in [0,1]), the original input value, and a schema identifier string ('delx/util-prob-clamp/v1') for verifiable delivery tracking.

## 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-commerce-probability-clamp-utility-b87ca763/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)
