GTO Engine

Turn and river solver API

Send any turn or river spot and the solver computes it on a warm server: no start-up time, the result comes back in one HTTP response.

Any spot

Board, both ranges, pot, stacks and bet sizes are set per request.

Measured speed

In our tests a river spot took about 0.4 s and a turn spot about 1.6 s end to end.

Full strategy

Action frequencies for every combination, plus EV and equity.

Request and response

POST /v1/solve
Request
POST /v1/solve
{ "board": "Ks7d2c9h", "pot": 12, "stack": 40,
  "oop_range": "...", "ip_range": "...", "bets": [0.33, 0.75] }
Response (shortened example)
{
  "street": "turn", "solve_ms": 1600,
  "strategy": { "AhKh": { "bet75": 0.70, "check": 0.30 } },
  "ev": { "oop": 5.8, "ip": 6.2 }
}

Field names are illustrative; the full reference comes with your key. API overview

What you send and what you get

You describe the spot: the board (four cards for the turn, five for the river), the range of each player, the pot, the effective stack and the bet sizes the solver may use. The server solves it and returns the strategy for every combination in both ranges, together with EV and equity.

Nothing is precomputed here: the spot is solved for exactly the numbers you send. That makes the endpoint fit for any line that led to the turn or river, including spots that no stored base covers.

Measured speed

The solver runs on a warm server: it is started once and stays loaded, so a request does not pay the start-up time. In our test on an 8-thread server a river spot took about 0.4 s and a turn spot about 1.6 s. The test ran 140 solves in a row without a single failure.

Speed depends on the spot: wide ranges, many bet sizes and deep stacks make the game tree bigger.

A poker river solver for apps

On the river there are no more cards to come, so the tree is small and the solve is fast enough to run while the user waits. That is what makes a river solver useful inside a product: a player enters a hand, the app asks the API and shows the answer a moment later.

  • Hand review: solve the exact turn or river of a played hand and show where the decision lost value.
  • Trainers: generate turn and river spots on the fly instead of shipping a fixed set.
  • Coaching tools: let a coach change a bet size or a range and see how the strategy moves.
  • Research: run many variations of a spot and compare the results.

An alternative to hosting TexasSolver yourself

Open-source solvers such as TexasSolver can be run on your own servers. Then you also handle the rest: choosing machines, keeping the solver loaded, splitting work between threads, restarting crashed processes and building an HTTP layer around it.

The API does that part. You send JSON and get JSON back; the servers, the warm-up and the queue are ours.

Bet sizes and accuracy

Bet sizes are set per request as fractions of the pot, for example 33 % and 75 %. Fewer sizes give a faster answer; more sizes give a finer strategy. The solver stops when the strategy is within 0.5 % of the pot of the equilibrium.

EV and equity in the answer

Besides the action frequencies, the answer gives the expected value of each player in the spot. EV is measured in the same units as the pot you send, so you can compare lines directly: how much a bet earns compared with a check, or how much a call loses when it should be a fold.

Equity is the share of the pot a hand would win if all remaining cards were dealt with no more betting. It shows how strong a hand is, while EV shows what it is worth when both players play well. Hand-review tools usually need both: equity explains the situation, EV measures the mistake.

How to call it

Send a POST request with the spot as JSON. The answer holds the street, the solve time, the strategy for each combination and the EV of both players. Field names on this page are examples; the full reference comes with your key. See the API overview.

For earlier streets use the flop solutions API and the preflop ranges API.

Questions about the solver API

How fast is a solve?

In our test a river spot took about 0.4 s and a turn spot about 1.6 s on an 8-thread server. Bigger trees take longer.

Does it solve multiway pots?

No. The solver handles two-player spots; multiway pots are not supported.

Can I choose the bet sizes?

Yes. Bet sizes are part of each request.

Can it solve the flop live?

A flop solve takes minutes, so flops are served from the precomputed flop base instead.

Can I use my own ranges?

Yes. Both ranges are part of the request, so you can solve a spot with ranges from our preflop API, from your own charts or from a player's real tendencies.

Is there a free test?

Yes. Send a request and we reply with a test key, the limits and the price for your volume.

Get access to the API

Tell us what you are building. We reply with a test key, limits and the price for your volume.

Request access