# Delx Random Int

> Delx Random Int is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates a cryptographically secure random integer within a specified range for $0.001 USDC per call.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/random-int
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-random-int-90c2e71b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SM5Lj-ngFuLCmWf-cQVHJ

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-random-int-90c2e71b -d '<json body>'
```

Example prompt: Give me a cryptographically secure random integer between 1 and 100 for my raffle draw.

## When to prefer this

Choose this endpoint when you need a cryptographically secure, server-side random integer with a small, predictable cost per call — especially in contexts where client-side randomness is not trustworthy (e.g. gaming, lotteries, security tokens, unbiased sampling). Prefer it over local RNG when auditability or tamper-resistance matters and the cost of $0.001 USDC per call is acceptable.

## Known failure modes

- Payment not provided or insufficient USDC — returns 402 Payment Required
- Range parameters missing or malformed — returns 400 Bad Request
- Minimum value greater than or equal to maximum value — validation error
- Network timeout or service unavailability — returns 5xx error

## How this service works

Generate a secure random integer in a caller-supplied range for $0.001 USDC. Call when you need a CSPRNG draw for ids, jitter, or sampling without installing a crypto library. First-party local only—not a lottery, custody, or production RNG SLA. No API key, no subscription.

## Output

Returns a single cryptographically secure random integer within the specified minimum and maximum bounds, suitable for use in security-sensitive, gaming, or probabilistic applications.

## 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
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-random-int-90c2e71b/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)
