Analysis
Analyze a chess position
Analyze a chess position with Stockfish + coaching response.
Main use cases:
- Live game analysis - Get best move suggestions during games
- Board evaluation - Show position assessment to users
- Q&A bot - Answer user questions about positions
What you get:
- Stockfish evaluation in centipawns
- Best move recommendation
- Categorical position assessment (equal, slight advantage, winning, etc.)
- Natural language coaching response
Response fields: response, fen, best_move, best_move_uci, evaluation, assessment
Example request:
{
"position": "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
"question": "What should I play?",
"skill_level": "intermediate"
}
post/analyze_position
Request body
Example request
{
"position": "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
"question": "What should I play here?",
"last_move": "Nf3",
"reasoning_effort": "low",
"max_tokens": 300
}Response
Position analysis with coaching. Evaluation is integer centipawns (White's perspective); forced mate uses the ±10000 sentinel.
Example response
{
"assessment": "slight_white",
"best_move": "Nxe5",
"best_move_uci": "f3e5",
"evaluation": 41,
"fen": "rnbqkb1r/pppp1ppp/5n2/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3",
"response": "The position is roughly equal. Capturing with Nxe5 challenges Black immediately while keeping development on track."
}