Skip to content

Submit a poker model

Use this guide to enter the user's model in the Poker League, verify the exact entry, and tell them where to follow it.

1. Check the inputs

  • Open Enter a model in the user's signed-in browser. If sign-in is required, have the user sign in there.
  • Use the exact model file and display name from the task. An authorized agent can validate and submit in the same run.
  • Use WebAssembly by default for new bots with custom code. The tournament also accepts ONNX bundles, graph JSON, and authored weights JSON. Package any source code or checkpoint in a supported format before submitting.

Shared turn and validation contract

All formats use poker-turn-v1. The engine supplies the player’s visible turn and legal moves. Wasm sees the whole observation. ONNX and JSON graphs select standard features from it. The action is fold, check, call, bet, or raise. Bets and raises include an integer total within the supplied bounds.

Server validation runs the same seeded replay for every format. It checks legal actions, a 25 ms CPU budget, and reproducibility when turns are grouped by seat. The receipt includes the contract name, fixture hash, decision count, peak CPU time, and seat-isolation result. ONNX also checks its original-policy action trace.

Build and check a WebAssembly policy

Download the WebAssembly kit or use the WebAssembly example. A module reads the full visible turn, chooses any legal action and bet size, and can carry state between turns. It can use its own encoding and computation.

For an existing authored weights or poker-graph-v1 JSON policy, the JSON-to-WebAssembly converter builds a normal WebAssembly bundle locally with Python and WASI SDK. Run admission validation on the converted bundle before entering.

Put the parsed poker-wasm-v1 bundle in weights. The replay checks action legality, timing, and independent seat state. The bracket limits are 25 ms CPU per decision, 6 MiB per module including weights, and 32 MiB of guest memory.

Build and check an ONNX model

Download the ONNX kit or start from the working ONNX example. The kit includes the manifest format, 132 seeded decisions and a command to produce a trace from your original model.

Put the parsed poker-onnx-v1 bundle in weights. Validation checks exact legal actions against your original trace, recurrent state isolation and the 25 ms CPU budget. A manifest may reset state per hand or table. Stateless ONNX models use an empty state list. ONNX is available in recurring brackets.

Build and check a graph

  • Download the graph kit and open the input and operator reference. The kit includes the working example, the tournament evaluator, and synthetic preflop, flop, turn, and river requests.
  • Unzip the kit on macOS or Linux with Python 3.11+ and a C++20 compiler available. From that directory run python3 -B check.py example.json, then python3 -B check.py /path/to/your-model.json. Check the legal action and CPU time for each sample. A failure returns a nonzero exit code.
  • The checker measures a 25 ms thread CPU budget per decision. Local timings are specific to the machine and sample states. Run signed-in server validation below before submitting.

2. Validate, submit, and verify

  1. Call validate_poker_tournament_model with label set to the display name and weights set to the parsed JSON object. Include the visibility fields below. Save the returned version hash.
  2. Once validation passes, call submit_poker_tournament_model with the same file, label, and visibility. Save the returned entry ID.
  3. Call poker_tournament_entries. Find that exact ID and confirm its version and state. If the submit request times out, read the list before retrying. The same account and model version return the existing entry.
  4. Report the model name, entry ID, version hash, current state, and the My models link. Append ?entry_id=ENTRY_ID to open the exact card.

Visibility fields

  • anonymous: true hides the model's name publicly.
  • hide_performance: true keeps its model card and tournament finish private.
  • publish_weights: true makes the exact version eligible for sale after its first settled bracket loss and is the default. publish_weights: false keeps weights private and requires the $3.99 monthly membership when available.
  • Name and finish controls default to false. Use the user's choices. Detailed stats can be shared separately from My models.

If the tools are unavailable

Create a scoped bearer key on the signed-in Membership and API keys page, then send it as Authorization: Bearer YOUR_KEY. You can also use the upload form or the same-origin API from the signed-in session. For the API, send JSON to POST /api/tournament-entry with op: "validate" or op: "submit" and the same fields. Verify with GET /api/tournament-entry. If validation fails, relay the exact error and request a corrected file.

Read the result

  • queued means registered and waiting for a draw. in_field means selected for the current bracket. rotated_out means it played and has since left the field. Its card remains in My models.
  • Brackets run back to back. The top 12 of 36 stay, and up to 24 waiting entries replace the lowest finishers, oldest submission first. Use poker_tournament_schedule or Tournament results to check progress and settled finishes.

Benchmark and archive

Use GET /api/poker-weight-market to read your marketplace settings. A member can send POST /api/poker-weight-market with entry_id and listed: false to keep a version off sale. Use listed: true to restore eligibility after a loss.

Buy archive data by API

  1. Read the archive model index for exact version hashes, public entry IDs, and settled finish counts. Check the public model card for current results. Call GET /api/poker-catalog for component IDs, prices, and checkout availability. Weights start at $4 and performance at $2. Progressive rates apply once per distinct model version, with weights at $2 and performance at $1 from the fifth model onward. The catalog gives the complete pack price.
  2. Call POST /api/poker-orders with op: "quote", kind: "archive", and the selected catalog items. For the private-weights membership use kind: "membership" and no items.
  3. Once the user approves the total, send op: "checkout" with the same selection, the quoted cents as expected_amount, and a stable UUID as idempotency_key. Save the returned order ID and direct the buyer to the Stripe checkout_url to authorize payment. Reuse the key after a retry.
  4. Poll GET /api/poker-orders?order=ORDER_ID using the same poker API key. On paid, download the download_path with that key. On active, the account can submit new private-weight models. Manage membership via POST /api/poker-membership with op: "portal".
  5. API keys belong to the user. Never pass a user's card details through a poker API call. The OpenAPI reference documents the request fields.

Learn by building

Start with the free browser lab. Change a starter policy, compare decisions, and download the resulting model JSON. The six core skills use free inputs. Two optional labs use paid archived weights or performance data. In ChatGPT use poker_learning_resources to find the appropriate materials.

Send feedback

Use the Poker AI by AO tool poker_submit_feedback or send JSON to POST /api/feedback. Include message (1–2,000 characters) and optionally path such as /tournament. The response returns a private receipt ID. Explain what you tried, what happened, and what you expected. Omit credentials, payment details, and private model weights. People can use the feedback form.

Download your live-table hands

Use My model hands, the plugin tool poker_live_table_hands, or GET /api/poker-live-hands with a poker API key. List owned models with no query. Pass model to read settled hands, and reuse the same model with before to page. Each page is free and has stable per-table opponent IDs, the betting sequence, boards, stacks, and payouts. Newly recorded bot hole cards are included. Unshown opponents’ human cards and older unrecorded cards are null.

Teach or build with Poker AI

The Learning lab offers five instructor lesson plans, practice hands, and a flexible agent skill for building and iterating.

Author data and charts

Read Author to manage your profile and filter retained performance history. Use the owner-only tool poker_author_history for visualizations in ChatGPT. Choose source: "tournament" for bracket finishes and model-level summaries or source: "league" for earlier match points, net big blinds, and recorded hands. Optionally pass model and follow the before cursor until it is null. Read the REST equivalent at GET /api/poker-author-data. Retain exact model IDs, distinguish cumulative aggregate BB/100 from per-match returns, and make a chart for the data and question the builder requests.