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.
No account and no API key. Pay per successful call with MPP on Tempo (USDC.e or pathUSD). Invalid input or an upstream failure returns 402 and is not charged.
| Route | Price | What you get |
|---|---|---|
POST /v1/count | $0.001 | Shoe count and training overlay 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. |
POST /v1/events | $0.001 | Wearable / RTMP detection webhook 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. |
POST /v1/webhook | $0.001 | Webhook alias 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. |
These call POST /v1/count ($0.001) — Shoe count and training overlay. Swap the path for any other route in the table.
npx mppx https://shoe-count.fmf-x402.workers.dev/v1/count -X POST -H 'content-type: application/json' -d '{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}'
The CLI creates or reuses a Tempo account in your keychain and pays the 402 automatically. See mpp.dev/sdk.
curl -i -X POST https://shoe-count.fmf-x402.workers.dev/v1/count -H 'content-type: application/json' -d '{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}'
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'
Mppx.create({
methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })],
})
// Global fetch now pays the 402 automatically.
const res = await fetch('https://shoe-count.fmf-x402.workers.dev/v1/count', {
method: 'POST', headers: {
'content-type': 'application/json',
},
body: JSON.stringify({"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}),
})
console.log(await res.json())
# pip install pympp
# Docs: https://mpp.dev/sdk/python
import asyncio
from mpp.client import Mpp
from mpp.methods.tempo import TempoAccount
from mpp.methods.tempo import client as tempo
account = TempoAccount.from_key("0x...")
async def main():
async with Mpp(methods=[tempo.charge(account=account)]) as mpp:
response = await mpp.fetch("https://shoe-count.fmf-x402.workers.dev/v1/count", method="POST", json={"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"})
print(await response.json())
asyncio.run(main())
{
"mcpServers": {
"fmf-mpp-shoe-count": {
"url": "https://shoe-count.fmf-x402.workers.dev/mcp"
}
}
}
Transport is Streamable HTTP at https://shoe-count.fmf-x402.workers.dev/mcp. tools/list is free. Paid tools/call needs an MPP Payment header, or just use mppx against the HTTP route.
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. Count 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. For 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. Brand: FMF Tools. OpenAPI: see /openapi.json.