# OpenVerbs Random Bytes Generator

> OpenVerbs Random Bytes Generator is a paid API for AI agents from random.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates cryptographically-secure random bytes returned in hex, base64, or base64url encoding

## Facts

- Endpoint: POST https://random.openverbs.com/v1/bytes
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openverbs-random-bytes-generator-0a0e74ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v_eYiIWEWkWDymRP7D6rz

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 openverbs-random-bytes-generator-0a0e74ac -d '<json body>'
```

Example prompt: Generate 32 cryptographically-secure random bytes and return them as a base64url string.

## When to prefer this

Choose this endpoint when you need cryptographically-secure randomness (not pseudo-random) and want output directly in a web-safe or binary-compatible encoding (hex, base64, base64url). Ideal for generating tokens, nonces, salts, or keys. Prefer over sibling endpoints when the output is raw bytes rather than integers or strings from a charset.

## Known failure modes

- Count out of range (must be 1–4096): validation error returned
- Invalid encoding enum value: request rejected
- Missing required 'count' field: error response
- Payment failure (x402): 402 response if USDC payment not provided or insufficient

## How this service works

Generate cryptographically-secure random bytes, returned as hex, base64 or base64url.

## Output

Returns a JSON object containing a string of random bytes encoded in the requested format (hex, base64, or base64url). The byte count matches the requested count (1–4096 bytes), and defaults to hex encoding if none is specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "count"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "maximum": 4096,
       "minimum": 1,
       "description": "Number of random bytes."
      },
      "encoding": {
       "enum": [
        "hex",
        "base64",
        "base64url"
       ],
       "type": "string",
       "description": "Output encoding (hex, base64, base64url). Default hex."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openverbs-random-bytes-generator-0a0e74ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from random.openverbs.com](https://www.zero.xyz/host/random.openverbs.com/llms.txt)
