# Coin Flip — Fair Binary Random Outcome

> Coin Flip — Fair Binary Random Outcome is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns a fair random heads or tails result for binary decisions, simulations, games, and randomized agent workflows.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/coin-flip
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coin-flip-fair-binary-random-outcome-47ee332b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iC-PMn4nROckLdHWR-Vr_

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 coin-flip-fair-binary-random-outcome-47ee332b
```

Example prompt: Flip a coin for me and tell me if it lands heads or tails.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Fair heads/tails random outcome for binary decisions, simulations, games, experiments and randomized agent workflows.

## Output

A single random outcome value — either 'heads' or 'tails' — representing a fair 50/50 binary result suitable for decisions, games, simulations, or workflow branching.

## 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",
     "required": [],
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coin-flip-fair-binary-random-outcome-47ee332b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
