Saqqa Academy blog
Tokens & costs
Understand tokens, context windows and pricing, and cut what you spend on AI without losing quality.
4 guides
Tokens & costs
What is a context window? Why long AI chats get slower, pricier and worse
Everything a model can see in one request, reply included. What fills the context window, what happens when it overflows, and how to keep a long chat inside it.
13-Nov-2026 · 6 min read
Tokens & costs
How prompt caching works in the Claude API, and when it saves money
Prompt caching lets Claude reuse the long, unchanging start of your prompt at a fraction of the price. How to switch it on, check it works and work out the saving.
10-Nov-2026 · 5 min read
Tokens & costs
How to count tokens before you send a prompt to Claude or OpenAI
Count a prompt's input tokens before you pay for it, with Claude's free count_tokens endpoint and OpenAI's input_tokens endpoint, then use the number to stay on budget.
10-Nov-2026 · 5 min read