Docs /Recipes /Explain .md

Explain

Describe a whole position in words, with its pawn structure, who stands better and each side's plans.

A short explanation of a position, for a study tool, an annotated game or a puzzle's solution. It is a Recipe: copy it, then change the prompt to suit your app.

Calls: one Generate call, on Queen here, about $0.02; on Knight, about $0.002.

The prompt and the request

An explanation describes a position as a whole: the pawn structure, who stands better, and each side's plans. It suits a study tool, an annotated game or a puzzle's solution. This one uses Queen, the stronger Model, for a richer answer; Knight works too and costs less.

Reading lines: in an explanation a Line is a plan rather than a forced sequence, so it includes the other side's likely replies. Show it as a link that plays the plan on the board, and leave the position where the plan ends so the reader can see the result.

curl https://api.chessdrive.io/v1/generate \
  -H "Authorization: Bearer $CHESSDRIVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "queen-1",
    "system": "Explain this position to a club player in under 150 words.\nCover the pawn structure, who stands better and why, and one plan for each side.\nShow each plan as a short sequence of moves from the current position.\nJudge positions in words, such as \"White is slightly better\", never in numbers.",
    "position": { "fen": "rnbq1rk1/pp2bppp/2p2n2/3p2B1/3P4/2N1P3/PPQ2PPP/R3KBNR w KQ - 3 8" },
    "messages": [{ "role": "user", "content": "Explain this position." }]
  }'