Quickstart
1. Get a key
Sign in to your dashboard with Google. New accounts receive a live Default key and a one-click first request. Existing accounts can create a key from the setup panel or API keys.
Your new key appears in the dashboard. It is shown once; store it as STOCKFISH_API_KEY. Start with 100 lifetime requests with a verified email and no card: depth up to 14, 5 requests a second.
2. Try 100 requests, then add a card
After your trial, open Plan & billing in the dashboard and choose Add card for Free. Start with 100 free requests with a verified email, then add a card for 2,000 units/day and automatic overage billing. The trial is shared across your account, never resets, and is never charged. All prices are in USD.
3. Evaluate a position
curl -s https://stockfishapi.com/v1/eval \
-H "Authorization: Bearer $STOCKFISH_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fen":"r1bqkbnr/pppp1ppp/2n5/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3","depth":1,"multipv":1}' const res = await fetch("https://stockfishapi.com/v1/eval", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.STOCKFISH_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"fen": "r1bqkbnr/pppp1ppp/2n5/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3",
"depth": 1,
"multipv": 1
}),
});
const data = await res.json(); import os, requests
r = requests.post(
"https://stockfishapi.com/v1/eval",
headers={"Authorization": f"Bearer {os.environ['STOCKFISH_API_KEY']}"},
json={
"fen": "r1bqkbnr/pppp1ppp/2n5/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 2 3",
"depth": 1,
"multipv": 1
},
)
data = r.json() 4. Read what it cost
X-Cost-Units: 2
X-RateLimit-Remaining: 4
X-Engine: stockfish-19-native Before a bigger request, ask for the price: GET /v1/price?depth=20&multipv=3. The engine stops at the quoted node budget, so the quote is a ceiling.
5. When you need more
After the trial, 402 payment_method_required includes remaining: 0 and a card setup link. Depth upgrade errors carry plan options and a checkout link. Open it once; the same key keeps working with the new limits within a minute. See errors and pricing.
Next
- Full reference for
/eval, including engine versions and options - Python, JavaScript, MCP and Claude