Menu

Hand-history grading

Send raw hand histories and get every hero decision graded against solver play, with EV loss in big blinds.

POST/api/grading/hands

Grades every decision the hero made: the solver's frequency and EV for each action and the EV lost, in big blinds and as a share of the pot, plus totals per hand and for the batch. There are no tiers: you set your own thresholds for what counts as a mistake. For post-session review only.

Needs a Studio token.

curl https://www.pokerstudy.ai/api/grading/hands \
  -H "Authorization: Bearer psk_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --rawfile text session.txt '{text: $text, accuracy: "standard"}')"

What gets graded

Supported
GameNo-limit hold'em
Cash2–6 players, graded against the 6-max 100bb ranges
TournamentsTournament hands and any hand with antes (2–8 players), graded against the 8-max tournament ranges: chip EV, 1bb big-blind ante, 10–300bb, at the nearest stack depth. ICM is not modelled.
PotsRaised pots that reach the flop heads-up. Limped pots (limped_pot) and pots three or more players see the flop in (multiway_pot) are skipped whole.
SitesPokerStars, GGPoker, Winamax, WPN/ACR, 888, PartyPoker, iPoker, CoinPoker, DriveHUD XML

Request body

FieldTypeDefaultMeaning
textstringrequiredHand-history text: one or many hands, any supported format.
herostringthe "Dealt to" playerPlayer name to grade.
accuracyfast | standard | precisestandardExploitability target for new flop solves: 2%, 1% or 0.5% of the pot.
solveWaitSeconds0–30030How long the whole request waits on live solves. It answers within that plus a few seconds.
maxHands1–10025Hands to grade. The rest are counted.
maxFlopSolves0–208New flop solves one request may start.
includearray["ranges", "strategy", "classes", "equity"]Study data per decision. Add "combos" for per-combo reach, mix and EVs, or send [] for grades only.

Each decision

  • evLossBb: the EV given up against the best action, even for an action the solver mixes in.
  • evLossPot: that loss as a share of the pot, 0–1.
  • bestAction, and actions (label, freq, evBb, lossBb).
  • source: preflop_ranges, stored_flop, exact_flop_solve, nearest_flop or street_solve.
  • context: the node as Study shows it: both players' ranges (reach per hand class), the actor's strategy, hand classes postflop, heroReach, and the hero's equity against each live opponent's range. context.reliable is false where the solver all but never reaches the spot (hero_off_range or line_off_range).

A decision we can't grade says why in reason:

ReasonMeaning
off_tree_preflopThe solved tree has no action of that kind there.
no_solveNo solve covers the spot.
solve_pendingThe solve keeps running and is cached. Send the hand again.
flop_solve_limitThe request used all its maxFlopSolves. Send the hand again to solve that flop.
after_off_strategyAn earlier action was one the solver plays under 1% of the time with the hero's hand (the hand's offStrategyAt), so the solver never reaches this spot.

Preflop

Preflop lines snap to the nearest solved line: each raise to the nearest size the solver uses, and an action the tree has no branch for (a cold call, say) to the nearest kind it has. Each preflop decision gives the rangesLine it read, and snapped: true when an earlier action changed kind. An action the solver never takes with that hand has no EV to measure: it comes back with evEstimated: true and no evLossBb (unmeasured, not 0).

Flops

A flop we have solved grades at once. Any other flop is solved exactly, at your accuracy, from the same preflop ranges, pot and stack. While that solve runs past solveWaitSeconds, the decision grades from the nearest solved flop (nearest_flop, with solvedBoard) and says exactSolve: "pending". Send the hand again once it finishes for the exact grade.

A flop we solve for the hand also solves the hand's own first flop bet (rounded to 5% of the pot) beside the tree's standard size, so that bet and every decision after it grade on the size played. Other bets and raises map to the nearest size in the solved tree: the actions labels carry the tree's sizes, while toCallBb and potBb are the hand's real amounts.

No flop is pre-solved from the tournament ranges: each tournament flop is solved from both players' walked ranges at the hand's pot and stack. Turns and rivers re-solve from the flop solve in about a second.

Accuracy and response times

A solve we have already run answers in under a second at any level. A new spot takes, on one solver box:

LevelTargetMonotone flopPaired flopDry flop
fast2% of pot17 s33 s56 s
standard1% of pot25 s49 s87 s
precise0.5% of pot36 s70 s125 s

Measured on 100bb single-raised pots (9s7s5s, 3h3d2s, 7s3h2d), 24 threads, on the 75% bet tree. A flop whose first bet was small solves on the 33% tree, which has more raises and takes about 7 minutes to 1%. A new solve needs about 4 GB of memory.