# Card Odds Calculator

> Card Odds Calculator is a paid API for AI agents from probability-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Calculates poker hand probabilities (5-card and 7-card), outs-to-river odds, and blackjack natural odds via configurable modes.

## Facts

- Endpoint: GET https://probability-calc.x402tookit.com/card-odds?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/card-odds-calculator-812f2e25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__loVldXQC7_PF5clZBFX1

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 card-odds-calculator-812f2e25
```

Example prompt: I'm on the flop with a flush draw — I have 9 outs — what's the probability I hit my hand by the river? Use outs mode at the flop stage.

## When to prefer this

Use this endpoint when you need precise, enumerated card probability calculations for standard card game scenarios — especially poker hand frequencies, draw completion odds using the rule of 2 and 4, or blackjack natural probabilities. Prefer this over general-purpose probability endpoints when the question is specifically about card games with fixed deck compositions.

## Known failure modes

- Missing required 'mode' query parameter returns an error
- Invalid mode value (not poker5, poker7, outs, or blackjack) returns an error
- For outs mode, missing 'outs' parameter may return null or error
- Outs value out of realistic range may return degraded or invalid results
- Invalid stage value (not flop or turn) may default or error
- Decks value outside 1-8 range for blackjack mode may be rejected

## How this service works

Card odds: 5-card and 7-card poker hand probabilities, chance of hitting your outs by the river, blackjack natural odds.

## Output

Returns a structured JSON object with fields like probabilityByRiver, probabilityNextCard, ruleOf2And4 (shortcut estimate), unseenCards, cardsToCome, oneIn (1-in-N odds), a human-readable summary, and a disclaimer. For blackjack and poker modes, returns hand frequency probabilities and associated metadata.

## 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": [
      "mode"
     ],
     "properties": {
      "mode": {
       "type": "string",
       "description": "poker5, poker7, outs or blackjack"
      },
      "outs": {
       "type": "integer",
       "description": "For mode outs: cards that complete your hand (flush draw 9, open-ended straight draw 8, gutshot 4)"
      },
      "decks": {
       "type": "integer",
       "description": "For mode blackjack: number of 52-card decks, 1 to 8 (default 1)"
      },
      "stage": {
       "type": "string",
       "description": "For mode outs: flop (two cards to come, 47 unseen) or turn (one card to come, 46 unseen); default flop"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "outs": {
       "type": [
        "null",
        "number"
       ]
      },
      "oneIn": {
       "type": [
        "null",
        "number"
       ]
      },
      "stage": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "cardsToCome": {
       "type": [
        "null",
        "number"
       ]
      },
      "ruleOf2And4": {
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/card-odds-calculator-812f2e25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from probability-calc.x402tookit.com](https://www.zero.xyz/host/probability-calc.x402tookit.com/llms.txt)
