instibrain
instibrain  /  guides  /  ai basics

The words under your AI, in eight short lessons.

Every company uses the same models. These lessons say how a generic model becomes yours, and define the words under that: token, vector, embedding, cosine, chunk, RAG, context. Every number is computed in front of you or is a list price.

No mathematics beyond adding, multiplying and a square root. Lessons 5 and 7 have a live toy to type into.

what you learned

The numbers to hold.

Claude prices are Anthropic's list prices for its API. The rest are computed in the lessons.

NumberWhat it is
about 0.75 wordsOne token. 1,000 tokens is about two pages.
1,000,000 tokensThe context window of current Claude models.
128,000 tokensThe most one answer holds.
$4 / $20Opus 5.5, per million tokens read / written.
$2 / $10Sonnet 5.5, per million tokens read / written.
$0.10 / $0.50Haiku 5.5, per million tokens read / written, for prompts up to 100,000 tokens. 40 times under Opus.
$0.20A cached read on Opus 5.5, per million: a twentieth of a fresh one.
$0.04 → $0.002A 10,000-token instruction file per call on Opus 5.5, fresh, then cached.
50% offThe Batch API, for work that can wait a few hours.
768 to 3,072The numbers in one embedding, by model.
200 to 800 tokensOne chunk. The setting that matters most in RAG.
5 to 20Chunks pasted into the prompt per question.