# Dice Roller (Cryptographically Secure)

> Dice Roller (Cryptographically Secure) is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-15).

Rolls any number of dice with any number of faces using CSPRNG with rejection sampling, returning each individual roll and the total.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/random/dice
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dice-roller-cryptographically-secure-39135ecc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r803kMeigdDPx-VSPCw9Q

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 dice-roller-cryptographically-secure-39135ecc -d '<json body>'
```

Example prompt: Roll 3d6 for me — I need three six-sided dice rolled fairly with each result shown and the total.

## When to prefer this

Prefer this endpoint when you need cryptographically fair dice rolls (CSPRNG + rejection sampling, not biased modulo arithmetic), especially for gaming, simulations, or any use case where statistical fairness matters. Suitable for standard dice notation like 3d6 or 1d20, and supports up to 100 dice with up to 1,000,000 faces each.

## Known failure modes

- count out of range (must be 1–100) returns an error
- faces out of range (must be 2–1,000,000) returns an error
- non-integer or missing parameters may cause validation errors
- x402 payment failure if USDC balance is insufficient

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

Returns a JSON object containing the requested count and faces, an array of individual roll results (each as an object), the summed total across all dice, and the dice notation string (e.g. '3d6').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number",
   "description": "How many dice to roll, 1-100. Defaults to 1."
  },
  "faces": {
   "type": "number",
   "description": "Faces per die, 2-1000000. Defaults to 6."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "faces": {
   "type": "number"
  },
  "rolls": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "total": {
   "type": "number"
  },
  "notation": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dice-roller-cryptographically-secure-39135ecc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
