Analysis
Analyze a complete chess game
Analyze a complete chess game from PGN.
What you get:
- Move-by-move evaluation with error classification (blunder/mistake/inaccuracy)
- Per-side phase summaries (opening/middlegame/endgame for White AND Black)
- Mistakes separated by side with best move alternatives
- Expandable overview bullet points and a 4-category study plan (opening/tactics/strategy/endgame)
- Turning points with phase context
- Natural language game narrative
Per-move data (for eval charts, board overlays, move arrows): evaluation_before, best_move_uci, fen_before, fen_after, coaching_text.
post/analyze_game
Request body
Example request
{
"pgn": "[Event \"Test\"]\n[Result \"1-0\"]\n\n1. e4 e5 2. Nf3 Nc6 3. Bb5 1-0",
"question": "What were my biggest mistakes?",
"player_color": "black",
"max_moves_analyzed": 20,
"reasoning_effort": "low",
"max_tokens": 500,
"position_analysis_scope": "key"
}Response
Structured game review. Per-move evaluations are pawn-unit floats (White's perspective) and are null on terminal plies — distinct from /analyze_position's integer centipawns.