# rng.sociologic.ai Coin Flip

> rng.sociologic.ai Coin Flip is a paid API for AI agents from rng.sociologic.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Flips one or more coins and returns heads or tails results using cryptographically secure randomness

## Facts

- Endpoint: GET https://rng.sociologic.ai/coin
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rng-sociologic-ai-83947bbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EGZ1AeDYdEXPqSaU67e-2

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 rng-sociologic-ai-83947bbb
```

Example prompt: Flip 5 coins for me and tell me which ones landed heads and which landed tails.

## When to prefer this

Use this endpoint when you need cryptographically secure coin flip results (heads/tails binary outcomes) for simulations, games, decision-making, or probabilistic experiments. Prefer this over a dice roll endpoint when you specifically need binary outcomes. The count parameter lets you batch up to 100 flips in a single call.

## Known failure modes

- count below 1 or above 100 returns a validation error
- non-integer count value rejected
- payment failure returns 402 status
- service unavailable returns 503

## How this service works

Flip one or more coins (heads or tails)

## Output

Returns an array of coin flip outcomes (heads or tails) for the requested number of flips, generated using cryptographically secure randomness. The response includes one result per flip for up to 100 flips.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "count": 5
  }
 }
}
```

## 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": {
      "count": {
       "type": "integer",
       "default": 1,
       "maximum": 100,
       "minimum": 1,
       "description": "Number of flips (1-100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rng-sociologic-ai-83947bbb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rng.sociologic.ai](https://www.zero.xyz/host/rng.sociologic.ai/llms.txt)
