# Animica QRNG Bulk — Quantum Random Number Generator (Bulk Draws)

> Animica QRNG Bulk — Quantum Random Number Generator (Bulk Draws) is a paid API for AI agents from animica.dev, paid per call via x402, $0.002152/call, status unknown (last checked 2026-09-14).

Generates multiple independent cryptographically-attested quantum random draws in a single call, returning raw randomness bytes with SHA3-256 hashes, source info, and per-draw attestation.

## Facts

- Endpoint: POST https://animica.dev/x402/qrng/bulk
- Price: $0.002152/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-qrng-bulk-quantum-random-number-generator-bulk-draws-329ab003
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qqh_kIKsUz8OBKDh0KtZV

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 animica-qrng-bulk-quantum-random-number-generator-bulk-draws-329ab003 -d '<json body>'
```

Example prompt: Give me 10 independent quantum random draws of 64 bytes each, with attestation, so I can use the verified randomness in my lottery contract.

## When to prefer this

Use this endpoint when you need 5–10 independent, cryptographically attested quantum random draws in a single round-trip. It is more cost-efficient than calling a single-draw endpoint 5+ times. Prefer it when verifiability and per-draw attestation are required (e.g. gaming, lotteries, smart contracts, scientific simulations). If you need fewer than 5 draws, use the single-draw endpoint instead.

## Known failure modes

- 400 Bad Request if draws < 5 (too few draws — use single endpoint instead)
- 400 Bad Request if draws > 10 or bytes > 1024 or draws*bytes > 65536
- 402 Payment Required if x402 payment header is missing or insufficient (price: $0.008077 USDC)
- 503/health degraded if quantum source is unavailable or unhealthy
- Invalid attestation if downstream QRNG source is compromised

## How this service works

5..10 INDEPENDENT randomness draws — each one its own node call with its own signed digest attestation and health report — delivered under ONE payment of $0.004. Fewer than 5 draws is refused with a 400 that points at GET /x402/qrng/draw ($0.001 per draw), because only at 5+ draws is this genuinely cheaper per draw. Priced per draw, not per byte: if you just need many bytes under one attestation, a single 1024-byte qrng draw is cheaper — the response states which is cheaper for the call you made.

## Output

A JSON object containing an array of draw results (each with index, raw randomness bytes, SHA3-256 hash, source, health, and attestation), plus aggregate count, bytes-per-draw, pricing info, overall health status, attestation scope (per-draw), verification metadata, and derivation/independence rules.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bytes": {
   "type": "integer",
   "description": "bytes per draw, 1..1024 (default 32; draws*bytes <= 65536)"
  },
  "draws": {
   "type": "integer",
   "description": "how many INDEPENDENT draws, 2..10 (default 10; alias count). Below 2 this endpoint is more expensive than 2 single draws and refuses with a 400."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-qrng-bulk-quantum-random-number-generator-bulk-draws-329ab003/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
