# Saylor Innovations Coin Flip

> Saylor Innovations Coin Flip 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).

Returns a cryptographically secure random coin flip result (heads or tails) with a fairness flag and entropy source name

## Facts

- Endpoint: GET https://saylorinnovations.com/api/fun/coinflip?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-coin-flip-770ffed7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lvZYbS_ft1jtToGJANVwU

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-coin-flip-770ffed7
```

Example prompt: Flip a fair coin for me using a cryptographically secure source and tell me whether it's heads or tails.

## When to prefer this

Choose this endpoint when you need a provably fair, cryptographically secure random binary (heads/tails) outcome — not a simple pseudo-random result. It is ideal when verifiability and fairness matter (e.g. disputes, games, auditable workflows) and when you want an explicit confirmation that the source is a CSPRNG. Prefer over rolling your own Math.random() when auditability of the entropy source is required.

## Known failure modes

- HTTP 402 Payment Required if x402 payment header is missing or invalid
- Network timeout if the server is unreachable
- Unexpected null for generated_at if server clock is unavailable
- Invalid JSON response on server-side error

## How this service works

Coin flip - returns result heads or tails from a cryptographically secure random source, with a fairness flag and the entropy source name

## Output

A JSON object containing: 'result' (enum: 'heads' or 'tails'), 'fair' (boolean, always true confirming 50/50 uniform distribution), 'source' (string naming the entropy source, e.g. 'Node crypto'), and 'generated_at' (UTC timestamp string or null).

## 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"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "result"
     ],
     "properties": {
      "fair": {
       "type": "boolean",
       "description": "Always true: uniform 50/50 outcome"
      },
      "result": {
       "enum": [
        "heads",
        "tails"
       ],
       "type": "string",
       "description": "Outcome of the flip: heads or tails"
      },
      "source": {
       "type": "string",
       "description": "Random source used (Node crypto)"
      },
      "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-coin-flip-770ffed7/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)
