# Delx Seeded Coin Flip

> Delx Seeded Coin Flip is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Performs a deterministic, seeded sequence of coin flips returning heads/tails outcomes with a cryptographic audit trail.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/seeded-coin-flip
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-seeded-coin-flip-8f2ef24b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9QCT9X9k0GKLO_kykJsBS

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 delx-seeded-coin-flip-8f2ef24b -d '<json body>'
```

Example prompt: Flip a coin 8 times using the seed 'morning42' and show me the full sequence of heads and tails results.

## When to prefer this

Choose this endpoint when you need deterministic, reproducible coin flip randomness tied to a specific seed — especially when auditability matters (the response includes a SHA-256 of inputs and confirms no external calls or data retention). It is preferable over general randomness APIs when you need a verifiable, tamper-evident paper trail for agent decisions, games, lotteries, or fair selection processes. Use it over true random generators when reproducibility is a requirement.

## Known failure modes

- Seed exceeds 8192 character limit — request rejected
- Flips parameter is non-integer or negative — validation error
- Malformed JSON body — 400 bad request
- Payment not attached or insufficient — 402 payment required
- Service temporarily unavailable — 5xx error

## How this service works

Seeded Coin Flip: Seeded Coin Flip generates a reproducible sequence of binary outcomes from bounded caller-supplied values without an external provider. Call Seeded Coin Flip when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Coin Flip as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-on…

## Output

Returns a JSON object containing an array of flip outcomes (each 'heads' or 'tails'), total heads count, total tails count, the operation schema identifier, a pass/fail status, and an evidence block confirming no data was retained and providing the SHA-256 hash of the input and a count of zero external calls made.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Coin Flip; used only for this bounded calculation and processed in memory without retention."
  },
  "flips": {
   "type": "integer",
   "description": "Flips supplied to Seeded Coin Flip; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "flips": [
    "heads",
    "heads",
    "heads",
    "heads",
    "tails",
    "tails",
    "tails",
    "heads"
   ],
   "heads": 5,
   "tails": 3
  },
  "schema": "delx/util-seeded-coin-flip/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "e2c71a78a4e46fc961d346ebdb850d06889aaf4b959c10e3a8ad8cdb0a10a036",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_coin_flip"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-seeded-coin-flip-8f2ef24b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
