# Cryptographically Secure Random String Generator

> Cryptographically Secure Random String Generator is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Generates a cryptographically secure random string of a specified length, optionally from a custom alphabet

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/random-string
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptographically-secure-random-string-generator-9d46999c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L0q776cCG89RywiKKENyO

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 cryptographically-secure-random-string-generator-9d46999c -d '<json body>'
```

Example prompt: Generate a cryptographically secure random string that's 32 characters long, using only alphanumeric characters (letters and numbers).

## When to prefer this

Choose this endpoint when you need cryptographically secure randomness (not just pseudo-random), especially for security-sensitive use cases like tokens, session IDs, nonces, or passwords. Prefer this over client-side Math.random() or non-cryptographic generators when security guarantees matter. The custom alphabet parameter makes it particularly useful when character set constraints are required (e.g. URL-safe, hex-only, alphanumeric-only).

## Known failure modes

- Invalid or missing length parameter — returns an error if length is not a valid number
- Alphabet too short or empty — may return an error or fall back to a default character set
- Very large length values may be rejected or result in timeout
- Malformed request body — returns a 400-level error

## How this service works

Cryptographically secure random string

## Output

Returns a cryptographically secure random string of the requested length, drawn from the specified alphabet (or a default character set if no alphabet is provided). The response is a string suitable for use as tokens, nonces, passwords, or identifiers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "length": {
   "type": "number",
   "description": "number"
  },
  "alphabet": {
   "type": "string",
   "description": "string (optional)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptographically-secure-random-string-generator-9d46999c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
