Embed
Positions and chess text as vectors in one space. Similar positions and texts sit close together, so you can search, cluster and recommend.
Signed out? You’ll sign up first. Your own account gets $10 of Trial credits once, never expiring, no card. Only successful responses carry usage and cost_usd.
- Open games
- Sicilian
- French
- Queen’s Gambit
- King’s Indian
positions and texts, an illustration of the space, not the model's output. Zoom in for the texts as place names, then for the boards; drag to pan, or pinch.
- 0 Position
- 1 text “White gives up the queen on b8 and mates with the rook on d8.” Illustrative cosine to the position 0.82
- 2 text “A Queen’s Gambit Declined: White’s pawns on c4 and d4 against Black’s on d5 and e6.” Illustrative cosine to the position 0.12
{
"id": "req_01M4G4A5TG3HB7P6XS5KJJX4BE",
"model": "chessdrive-embed-1",
"dimensions": 512,
"data": [
{
"index": 0,
"embedding": [0.0213, -0.118, 0.0472, -0.0205, … 508 more]
},
{
"index": 1,
"embedding": [0.0465, -0.1223, 0.0435, 0.0193, … 508 more]
},
{
"index": 2,
"embedding": [-0.0052, -0.0009, -0.0067, -0.0215, … 508 more]
}
],
"usage": { "positions": 1, "texts": 2 },
"cost_usd": "0.000120"
}
What it takes
A model (chessdrive-embed-1, a versioned ID with no alias) and input: 1 to 256 typed items, positions and texts mixed, {type: "position", fen} or {type: "text", text} of up to 77 tokens, about 300 characters.
What it returns
dimensions (512) and data: one L2-normalised {index, embedding} per item, in the order you sent them. One bad item rejects the whole call and names it, for example param: "input[3].fen". Vectors compare only within one Embedding model version, so store which one made them.
Price and limits
- Price on ChessDrive Embed
- $0.04 positions · $0.04 texts
- per 1K items
- Typical call
- ≈ $0.00004
- per position
- Streaming
- No
- one JSON response
- Batch
- 256
- items a call, 512 dims
- Model ID
- chessdrive-embed-1
- Positions and texts share one space.
- Up to 256 items a call, billed per position and per text.
curl https://api.chessdrive.io/v1/embed \
-H "Authorization: Bearer $CHESSDRIVE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "chessdrive-embed-1",
"input": [{"type": "position", "fen": "4kb1r/p2n1ppp/4q3/4p1B1/4P3/1Q6/PPP2PPP/2KR4 w k - 0 16"}, {"type": "text", "text": "White gives up the queen on b8 and mates with the rook on d8."}, {"type": "text", "text": "A Queen’s Gambit Declined: White’s pawns on c4 and d4 against Black’s on d5 and e6."}]
}'The sample calls Embed on the Opera Game Specimen, reading the key from the environment.
Signed out? You’ll sign up first. Your own account gets $10 of Trial credits once, never expiring, no card. Only successful responses carry usage and cost_usd.