{"uid":"cap_pdieZCkbmiAZYuXl7uk41","slug":"saylor-innovations-dice-roller-f08a4366","name":"Saylor Innovations Dice Roller","description":"Dice roller - any number of faces and dice, with each roll and the total","url":"https://saylorinnovations.com/api/fun/dice?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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)"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vKmxda7CVUoUrdWnswGuj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rolls any number of dice with any number of faces, returning each individual roll result and the total sum","exampleAgentPrompt":"Roll 3 dice with 20 faces each and tell me every result plus the total.","exampleUseCases":[{"title":"Tabletop RPG character stat generation","prompt":"Roll 4d6 for me — I need to see each of the 4 dice results and the total so I can generate a D&D character stat."},{"title":"Board game turn randomizer","prompt":"Roll 2 standard six-sided dice for my board game turn and show me each die plus the combined total."},{"title":"Random number via custom dice","prompt":"Roll a single 100-sided die for me — I need a random number between 1 and 100."}],"resultDescription":"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.","failureModes":["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)"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:08:27.337Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-dice-roller-f08a4366"}