# Saylor Innovations Dice Roller

> Saylor Innovations Dice Roller is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Rolls any number of dice with any number of faces, returning each individual roll result and the total sum

## Facts

- Endpoint: GET https://saylorinnovations.com/api/fun/dice?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-dice-roller-f08a4366
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pdieZCkbmiAZYuXl7uk41

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 saylor-innovations-dice-roller-f08a4366
```

Example prompt: Roll 3 dice with 20 faces each and tell me every result plus the total.

## When to prefer this

Choose this endpoint when an agent needs fair, server-side random dice rolls for gaming, simulation, or decision-making, especially when standard dice notation (e.g. 2d20, 5d6) is involved. Prefer it over client-side random number generation when auditability or a timestamped result is needed, or when you need the individual rolls broken out alongside the total.

## Known failure modes

- count parameter out of range (must be 1–20) returns an error
- faces parameter out of range (must be 2–1000) returns an error
- non-numeric or malformed query parameters rejected by pattern validation
- payment not provided or insufficient (x402 payment required)

## How this service works

Dice roller - any number of faces and dice, with each roll and the total

## Output

A JSON object containing the array of individual die results (each between 1 and the number of faces), the total sum of all rolls, the dice count, face count, standard dice notation (e.g. '3d20'), and a UTC timestamp of when the roll was generated.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "count": {
       "type": "string",
       "default": "1",
       "pattern": "^[0-9]{1,2}$",
       "examples": [
        "1",
        "2",
        "5"
       ],
       "description": "How many dice to roll, 1 to 20 (default 1)"
      },
      "faces": {
       "type": "string",
       "default": "6",
       "pattern": "^[0-9]{1,4}$",
       "examples": [
        "6",
        "20",
        "100"
       ],
       "description": "Number of faces on each die, 2 to 1000 (default 6)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "rolls",
      "total"
     ],
     "properties": {
      "count": {
       "type": "number",
       "description": "Number of dice rolled"
      },
      "faces": {
       "type": "number",
       "description": "Number of faces on each die"
      },
      "rolls": {
       "type": "array",
       "items": {
        "type": "number"
       },
       "description": "Each die result in roll order, from 1 to faces"
      },
      "total": {
       "type": "number",
       "description": "Sum of all rolls"
      },
      "notation": {
       "type": "string",
       "description": "Standard dice notation, e.g. 2d20"
      },
      "generated_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time this response was generated (UTC)"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-dice-roller-f08a4366/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
