# OpenVerbs Random String Generator

> OpenVerbs Random String 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-15).

Generates a random string of a specified length using a named charset or custom alphabet, with unbiased character selection.

## Facts

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

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-string-generator-cba12702 -d '<json body>'
```

Example prompt: Generate a random alphanumeric string that's 32 characters long — I need it as a session token.

## When to prefer this

Choose this endpoint when you need a random string with a specific charset or custom alphabet and require unbiased character distribution. It is ideal for generating tokens, nonces, IDs, passwords, coupon codes, or any string-based random value where character set control matters. Prefer it over UUID generators when you need non-UUID formats, custom lengths, or specific character sets like base58 or hex.

## Known failure modes

- Length out of range (must be 1–4096) returns a validation error
- Custom alphabet shorter than 2 characters is rejected
- Invalid charset enum value returns an error
- Missing required 'length' field returns a validation error
- Payment failure (x402) if USDC funds are insufficient

## How this service works

Generate a random string of a given length from a named charset (alphanumeric, alpha, lower, upper, numeric, hex, base58) or a custom alphabet. Unbiased character selection.

## Output

Returns a randomly generated string of the requested length, composed of characters drawn uniformly from the specified named charset (alphanumeric, alpha, lower, upper, numeric, hex, or base58) or a custom alphabet. The selection is unbiased, meaning each character position is independently and uniformly sampled.

## 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": [
      "length"
     ],
     "properties": {
      "length": {
       "type": "integer",
       "maximum": 4096,
       "minimum": 1,
       "description": "Length of the string."
      },
      "charset": {
       "enum": [
        "alphanumeric",
        "alpha",
        "lower",
        "upper",
        "numeric",
        "hex",
        "base58"
       ],
       "type": "string",
       "description": "Named charset (alphanumeric, alpha, lower, upper, numeric, hex, base58). Default alphanumeric."
      },
      "alphabet": {
       "type": "string",
       "maxLength": 256,
       "minLength": 2,
       "description": "Custom alphabet; overrides charset. Duplicate characters are collapsed."
      }
     },
     "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-string-generator-cba12702/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)
