Sub-Second GTO Poker Solves Over HTTP: Architecture
How a poker solver API returns full-range flop, turn, and exact river strategies in under a second using preflop charts, neural leaf evaluation, and CFR.
Traditional desktop poker solvers were built for single-player study: you configure a tree, allocate 32 GB of RAM, wait two to ten minutes for a flop solve to converge, and inspect the result manually.
If you are building a poker trainer, hand history analyzer, coaching platform, Discord bot, or AI poker agent, waiting minutes per spot is a non-starter. Your product needs equilibrium strategies and EVs over HTTP in under a second.
Here is how the AnonGTO Solver API (POST https://api.anongto.com/v1/solve) achieves sub-second full-range solves from preflop to the river—and what you get back in every response.
Why naive CFR cannot serve live web or bot traffic
A full no-limit Hold’em flop subgame with two 1,326-combo ranges and multiple bet sizes contains tens of millions of decision nodes. Even on a fast multi-core server, running vanilla Discounted CFR from scratch to 0.5% pot exploitability takes tens of seconds per flop.
When teams try to self-host a solver behind a product, they usually hit one of two walls:
- Precomputed databases answer quickly, but only for a fixed set of preflop lines, stack depths, and bet trees. The moment a user enters an off-tree sizing or a custom range, the lookup misses.
- Live CPU solving handles arbitrary spots, but latency spikes into minutes and server bills scale linearly with concurrent users.
The hybrid pipeline: street by street
Instead of forcing one engine to do everything, the Solver API routes each street to the fastest accurate engine for that game state:
| Street | Engine | Typical server time | Accuracy |
|---|---|---|---|
| Preflop | Solved chart pack + live preflop solver | < 15 ms (charts) | Equilibrium |
| Flop | Depth-limited CFR + neural leaf evaluator | ~0.5 s | ~0.3–0.5% pot |
| Turn | Depth-limited CFR + neural river evaluator | ~0.3 s | ~0.3–0.5% pot |
| River | Exact full-range CFR solver | ~0.35 s | Exact |
Every response includes accuracy_pct_pot (how far the returned strategy is from Nash equilibrium, measured as a percentage of the pot) and source metadata so your application can log, display, or gate on solve quality.
Two ways to call /v1/solve
You do not have to maintain your own preflop range library to get started. The API exposes two request modes on the same endpoint:
mode: "hand"— Describe the table (seats, stacks, rake, ante, straddle) and the action history from preflop to the current decision. The API derives both players’ ranges automatically and solves the current street.mode: "ranges"— Pass any two custom ranges (standard range strings likeAA, AKs, AQs:0.5, 22+or explicit 1,326-combo weight arrays), a board, pot, stacks, and up to three bet sizes and two raise sizes.
curl https://api.anongto.com/v1/solve \
-H "Authorization: Bearer $ANONGTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "hand",
"table": {
"max_seats": 6,
"seats": [
{"seat": "UTG", "stack_bb": 100}, {"seat": "HJ", "stack_bb": 100},
{"seat": "CO", "stack_bb": 100}, {"seat": "BTN", "stack_bb": 100},
{"seat": "SB", "stack_bb": 100}, {"seat": "BB", "stack_bb": 100}
],
"rake": {"pct": 5, "cap_bb": 0.6},
"ante_bb": 0,
"straddle": false
},
"streets": {
"preflop": [
{"seat": "UTG", "type": "fold"}, {"seat": "HJ", "type": "fold"},
{"seat": "CO", "type": "fold"}, {"seat": "BTN", "type": "raise", "to_bb": 2.5},
{"seat": "SB", "type": "fold"}, {"seat": "BB", "type": "call"}
],
"flop": {"cards": ["Jh", "9s", "4d"], "actions": [{"type": "check"}]}
},
"detail": "classes"
}'
Choosing the right detail payload
To keep wire latency low, ask only for the granularity your UI or bot needs:
summary: Action frequencies and range-wide EVs only. Smallest payload—ideal for Discord bots, telemetry, and quick checks.classes: Strategy, EV, and range weight for all 169 hand classes (AA,AKs,AJo, etc.). Ideal for 13×13 strategy grids and trainers.combos: Exact per-combo strategy and EV for all 1,326 starting hands (e.g.,AsKhvsAcKdwith suit blockers). Ideal for hand history analyzers and river spot breakdowns.
Pre-warming and trace inspection
If your app walks a user street-by-street (like a trainer or interactive replayer), you can call POST /v1/warm while the user is thinking so the next street is already warm in cache. You can inspect real server timings and cache hits live on the Trace & Latency Inspector or walk a full hand in the Interactive Demo.
Read the full request schema in the API Reference, or grab a free key below to run your first 100 solves a day.
Try it with a free API key
100 solves a day, every endpoint, no card required. Wire the solver into your poker app, trainer, or bot in minutes.