# Cryptographic Random Bytes Generator

> Cryptographic Random Bytes Generator is a paid API for AI agents from agent-micro.annushka1190.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates cryptographically secure random bytes via a GET request, paid in USDC via x402

## Facts

- Endpoint: GET https://agent-micro.annushka1190.workers.dev/v1/crypto/random-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/cryptographic-random-bytes-generator-9b60ecab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pVyyXMFmo-40htLHe4FWn

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 cryptographic-random-bytes-generator-9b60ecab
```

Example prompt: Give me 32 cryptographically secure random bytes for use as a nonce in my encryption workflow.

## When to prefer this

Choose this endpoint when your AI agent needs a cheap, fast, pay-per-use source of cryptographically secure random bytes without standing up your own entropy service. At $0.002 per call paid in USDC via x402, it is ideal for agent pipelines that occasionally need randomness without infrastructure overhead. Prefer over local Math.random() or pseudo-random generators when true cryptographic security is required.

## Known failure modes

- Missing or invalid query parameters may return a 400 error
- Payment not provided or insufficient USDC results in a 402 Payment Required response
- Network or worker timeout returns a 5xx error
- Invalid byte-count parameter may cause a validation error

## How this service works

Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.

## Output

Returns a JSON object with ok: true and the generated cryptographically secure random bytes, suitable for use as nonces, seeds, IVs, or key material in security-sensitive applications.

## 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"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptographic-random-bytes-generator-9b60ecab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-micro.annushka1190.workers.dev](https://www.zero.xyz/host/agent-micro.annushka1190.workers.dev/llms.txt)
