{"openapi":"3.1.0","info":{"title":"FMF Tools Shoe Count","version":"1.0.0","description":"Pay-per-call Hi-Lo, KO, Omega II, Hi-Opt I, Zen and Wong Halves shoe counts, with true count, decks remaining, Illustrious 18 deviations, a training advantage estimate, and a compact HUD / TTS readout for glasses and video review. The API takes already-detected cards — not raw camera video. Intended use: training, home practice, streaming and video review only. Using a counting device at a live casino table may be illegal (for example in Nevada) and is typically against casino rules. Do not use this API for live casino play. Docs: https://shoe-count.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://shoe-count.fmf-x402.workers.dev/llms.txt and https://shoe-count.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://shoe-count.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-browser.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://mpp-compat.fmf-x402.workers.dev, https://mpp-domain.fmf-x402.workers.dev, https://mpp-utils.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev, https://pokemon-tcg-sim.fmf-x402.workers.dev, https://yugioh-sim.fmf-x402.workers.dev, https://mpp-cryptotax.fmf-x402.workers.dev, https://mpp-biz.fmf-x402.workers.dev, https://lorcana-sim.fmf-x402.workers.dev, https://onepiece-sim.fmf-x402.workers.dev, https://hearthstone-sim.fmf-x402.workers.dev, https://chess-sim.fmf-x402.workers.dev, https://dota2-sim.fmf-x402.workers.dev, https://cs2-sim.fmf-x402.workers.dev, https://shoe-count.fmf-x402.workers.dev. Wearable integration (Meta Wearables Device Access Toolkit, Snap Spectacles, Vuzix, Xreal, phone camera, RTMP): the camera stream stays in the caller's app. Run your own vision model, then POST detections here. DAT docs: https://wearables.developer.meta.com/docs/develop/dat/streaming/ — start a DeviceSession, addCamera, stream frames at 7 or 15 FPS, assign frame.id or ts_ms, and post committed cards to /v1/events?output=wearable.\n\nCount systems: Hi-Lo (2-6 +1, 7-9 0, ten/face/ace -1); KO (2-7 +1, 8-9 0, ten/face/ace -1, IRC 4×(1−decks), true count is the KO-preferred equivalent); Omega II; Hi-Opt I (ace-neutral, ace side count reported); Zen; Wong Halves. True count = running count ÷ decks remaining (balanced systems). Default training bet is 1 unit at a true count of 1 or below, otherwise round(true count) units. Advantage estimate is about 0.5% per true-count unit minus a 0.5% off-the-top house edge (training rule of thumb, not a result guarantee). Illustrious 18 indexes are Schlesinger's Hi-Lo multi-deck set, using the floored Hi-Lo true count.\n\nFor training, home practice, streaming and video review only. Using a device to count cards at a live casino table may be illegal (for example in Nevada) and is typically against casino rules. Do not use this API for live casino play.\n\nBrand: FMF Tools. OpenAPI: see /openapi.json.","x-guidance":"POST JSON to /v1/count or /v1/events and pay the 402 with MPP on Tempo (USDC.e or pathUSD) or x402 v2 on Base (USDC). Bad input returns 402 and is not charged. output=wearable returns a one-line HUD and a short TTS sentence; output=low is the smallest JSON; output=hud is text/plain. Send the previous snapshot back on the next call. Post only committed detections (stable track_id), not every raw frame. Illustrious 18 uses the Hi-Lo true count when player_hand and dealer_up are provided. /llms.txt, /docs, /openapi.json and the homepage are free.","contact":{"name":"FMF Tools","url":"https://shoe-count.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://shoe-count.fmf-x402.workers.dev/docs","x-mcp":"https://shoe-count.fmf-x402.workers.dev/mcp","x-llms":"https://shoe-count.fmf-x402.workers.dev/llms.txt","x-fmf-id":"shoe-count"},"servers":[{"url":"https://shoe-count.fmf-x402.workers.dev"}],"paths":{"/v1/count":{"post":{"operationId":"_v1_count","summary":"Shoe count and training overlay","description":"Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decks":{"type":"number","description":"Number of decks in the shoe (default 6)"},"system":{"type":"string","description":"hi-lo, ko, omega-ii, hi-opt-i, zen, or wong-halves (default hi-lo)"},"cards":{"type":"array","items":{"type":"string"},"description":"Committed cards, e.g. Ah, 10s, 5d"},"detections":{"type":"array","description":"Vision detections with optional track_id; counted once per id"},"snapshot":{"type":"object","description":"Opaque shoe snapshot from the previous response"},"frame":{"type":"object","description":"frame.id or frame.ts_ms from a wearable or RTMP pipeline"},"action":{"type":"string","description":"append (default) or reset for a new shoe"},"output":{"type":"string","description":"full, wearable, low, hud, or svg"},"source":{"type":"string","description":"meta-dat, spectacles, vuzix, xreal, rtmp, or phone"},"player_hand":{"description":"Optional player hand for Illustrious 18 (e.g. [\"T\",\"6\"] or 16)"},"dealer_up":{"description":"Optional dealer upcard for Illustrious 18 (e.g. 10 or A)"},"all_systems":{"type":"boolean","description":"If true, also return running and true counts for every supported system"}}},"example":{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/v1/events":{"post":{"operationId":"_v1_events","summary":"Wearable / RTMP detection webhook","description":"Same as /v1/count, for a frame id or timestamp plus detections from a glasses SDK, phone camera, or RTMP capture. Deduplicates frame.id and track_id. Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decks":{"type":"number","description":"Number of decks in the shoe (default 6)"},"system":{"type":"string","description":"hi-lo, ko, omega-ii, hi-opt-i, zen, or wong-halves (default hi-lo)"},"cards":{"type":"array","items":{"type":"string"},"description":"Committed cards, e.g. Ah, 10s, 5d"},"detections":{"type":"array","description":"Vision detections with optional track_id; counted once per id"},"snapshot":{"type":"object","description":"Opaque shoe snapshot from the previous response"},"frame":{"type":"object","description":"frame.id or frame.ts_ms from a wearable or RTMP pipeline"},"action":{"type":"string","description":"append (default) or reset for a new shoe"},"output":{"type":"string","description":"full, wearable, low, hud, or svg"},"source":{"type":"string","description":"meta-dat, spectacles, vuzix, xreal, rtmp, or phone"},"player_hand":{"description":"Optional player hand for Illustrious 18 (e.g. [\"T\",\"6\"] or 16)"},"dealer_up":{"description":"Optional dealer upcard for Illustrious 18 (e.g. 10 or A)"},"all_systems":{"type":"boolean","description":"If true, also return running and true counts for every supported system"}}},"example":{"source":"meta-dat","output":"wearable","snapshot":{"v":1,"decks":6,"system":"hi-lo","rc":0,"seen":0,"track_ids":[],"frame_ids":[]},"frame":{"id":"f-1024","ts_ms":1732500000123},"detections":[{"card":"Ah","track_id":"trk-18","confidence":0.94}]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/v1/webhook":{"post":{"operationId":"_v1_webhook","summary":"Webhook alias","description":"Alias of /v1/events. Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decks":{"type":"number","description":"Number of decks in the shoe (default 6)"},"system":{"type":"string","description":"hi-lo, ko, omega-ii, hi-opt-i, zen, or wong-halves (default hi-lo)"},"cards":{"type":"array","items":{"type":"string"},"description":"Committed cards, e.g. Ah, 10s, 5d"},"detections":{"type":"array","description":"Vision detections with optional track_id; counted once per id"},"snapshot":{"type":"object","description":"Opaque shoe snapshot from the previous response"},"frame":{"type":"object","description":"frame.id or frame.ts_ms from a wearable or RTMP pipeline"},"action":{"type":"string","description":"append (default) or reset for a new shoe"},"output":{"type":"string","description":"full, wearable, low, hud, or svg"},"source":{"type":"string","description":"meta-dat, spectacles, vuzix, xreal, rtmp, or phone"},"player_hand":{"description":"Optional player hand for Illustrious 18 (e.g. [\"T\",\"6\"] or 16)"},"dealer_up":{"description":"Optional dealer upcard for Illustrious 18 (e.g. 10 or A)"},"all_systems":{"type":"boolean","description":"If true, also return running and true counts for every supported system"}}},"example":{"source":"rtmp","output":"low","snapshot":{"v":1,"decks":6,"rc":0,"seen":0},"frame":{"id":"f-1"},"cards":["5d"]}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://shoe-count.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}