{"uid":"cap_iC-PMn4nROckLdHWR-Vr_","slug":"coin-flip-fair-binary-random-outcome-47ee332b","name":"Coin Flip — Fair Binary Random Outcome","description":"Fair heads/tails random outcome for binary decisions, simulations, games, experiments and randomized agent workflows.","url":"https://x402-zoo.lolagent.workers.dev/api/coin-flip","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","required":[],"properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-FbLcL5OHdNOh_5HCra3Q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a fair random heads or tails result for binary decisions, simulations, games, and randomized agent workflows.","exampleAgentPrompt":"Flip a coin for me and tell me if it lands heads or tails.","exampleUseCases":[{"title":"Randomized agent workflow branching","prompt":"I need you to flip a coin to decide which of two processing paths to take next in this workflow — heads means we send the report immediately, tails means we queue it for tomorrow."},{"title":"Game tie-breaker resolution","prompt":"We have a tie in our trivia game and need a fair coin toss to decide the winner — can you flip a coin and tell me the result?"},{"title":"Random A/B experiment assignment","prompt":"For this experiment, flip a coin to randomly assign this new user to either the control group (heads) or the treatment group (tails)."}],"resultDescription":"A single random outcome value — either 'heads' or 'tails' — representing a fair 50/50 binary result suitable for decisions, games, simulations, or workflow branching.","failureModes":["Network or upstream worker error returning a 5xx status","Payment failure or insufficient USDC balance returning a 402 error","Malformed request returning a 400 error"],"whenToPreferThis":"Use this endpoint when you need a provably fair, server-side random binary outcome for any heads/tails decision, game, simulation, or workflow branch — especially when a local pseudo-random call is not trusted or sufficient, or when the randomness must be externally sourced and paid for as a service signal of legitimacy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:04:20.284Z","isFirstParty":false}