Build garageTry it → read → next · ~10 min

Tutorials · Chapter D (4/4) · ~10 min

Cost optimization lab

Try it → see it → read → next

Cut **token spend** on hot paths — batch embeddings, cache repeats, route to cheaper models when quality allows.

On paths: Builder · Student

Try tools: Code & developers

Try yourself

Playground

Cost optimization lab

Match each workload to batching, caching, or model routing — without killing quality.

Embed 10k docs nightly

Read

Levers

| Lever | When | |-------|------| | Batch embeddings | Large offline index builds | | Semantic cache | Repeated near-duplicate queries | | Model router | Draft vs final, simple vs hard |