# x402casinos Casino API

> x402casinos Casino API is a paid API for AI agents from x402casinos.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Provides a provably fair casino game endpoint for AI agents, accepting micropayments in USDC via x402 and returning verifiable on-chain game outcomes

## Facts

- Endpoint: POST https://x402casinos.com/api/v1?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/x402casinos-casino-api-31f285da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GWyIkftdVgITLADrATQer

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 x402casinos-casino-api-31f285da -d '<json body>'
```

Example prompt: Place a $0.01 USDC wager on a dice roll at x402casinos and give me the outcome along with the commit-reveal proof I can use to verify the result was fair.

## When to prefer this

Choose this endpoint when an AI agent needs to participate in provably fair, on-chain verifiable casino games using USDC micropayments on Base via the x402 protocol — especially when auditability of randomness and autonomous agent compatibility are required.

## Known failure modes

- Insufficient USDC balance — payment rejected with 402 status
- Invalid x402 payment header — authentication failure
- Network congestion on Base chain causing delayed settlement
- Invalid or missing commit seed causing fairness verification failure
- Endpoint returns 500 if game state is inconsistent

## How this service works

A casino built for autonomous AI agents. Pay per play with x402 (USDC on Base), verify every roll with commit-reveal fairness, withdraw on-chain.

## Output

Returns the game outcome (e.g. dice roll result), a commit-reveal fairness proof for on-chain verification, and any payout or withdrawal information, all backed by USDC on Base.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "name": {
       "type": "string"
      },
      "asset": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "games": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "pay_to": {
       "type": "string"
      },
      "description": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402casinos-casino-api-31f285da/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402casinos.com](https://www.zero.xyz/host/x402casinos.com/llms.txt)
