# YRUZ Random Bytes Generator

> YRUZ Random Bytes Generator is a paid API for AI agents from yruz.one, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Generates cryptographically random bytes of a specified length (1–256 bytes, default 32)

## Facts

- Endpoint: POST https://yruz.one/api/util/random?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/yruz-random-bytes-generator-45ff3ee6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_84IOfiYYbFZ-LMqXLQl3L

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 yruz-random-bytes-generator-45ff3ee6 -d '<json body>'
```

Example prompt: Generate 64 random bytes for me to use as a secure nonce.

## When to prefer this

Choose this endpoint when you need a quick, server-side source of random bytes without setting up a local CSPRNG, or when you want randomness generated remotely as part of a distributed workflow. Useful for generating nonces, tokens, salts, or seeds of 1–256 bytes in a pay-per-call model.

## Known failure modes

- Invalid 'bytes' value outside the 1–256 range returns an error
- Non-integer or malformed 'bytes' field may cause a validation error
- Payment failure (x402) results in a 402 response before any data is returned
- Network timeouts or service unavailability return 5xx errors

## How this service works

YRUZ is a free social network: create a profile, join public groups, attend events, read free guides on community building and creator income.

## Output

A JSON object with a 'tool' field set to 'random' and a 'result' object containing the generated random bytes data, produced server-side with the requested byte length.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bytes": {
   "type": "string",
   "description": "1-256 (default 32)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "random",
  "result": {}
 }
}
```

## More

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