# Delx Clamp

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

Clamps a numeric value between a specified minimum and maximum bound, returning the constrained result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/clamp?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-clamp-6a651333
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IbkDalLiscjWmk5EjnO2Q

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-clamp-6a651333 -d '<json body>'
```

Example prompt: Clamp the number 150 so it stays between 0 and 100.

## When to prefer this

Use this endpoint when you need a simple, reliable numeric clamping operation with minimal overhead, especially in agent workflows that already use x402 micropayments and need consistent, serverless math utilities without spinning up custom code.

## Known failure modes

- Missing required parameters (number, min, or max) results in an error response
- Non-numeric inputs cause a validation error
- Min greater than max may return an error or undefined behavior
- Payment failure for the $0.001 USDC fee may block the request

## How this service works

Clamp a number between min and max for $0.002 USDC for $0.002 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns the clamped numeric value: the original number if it falls within [min, max], the min if the number is below min, or the max if the number is above max.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

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