LLM Token Optimization: 9 Techniques in the Order to Apply Them
Blog post from Firecrawl
LLM token optimization reduces application costs without sacrificing quality by shrinking sent and generated tokens while using lower-cost mechanisms such as prompt caching, batching, and task-appropriate model routing. Agent workloads are especially expensive because stateless APIs repeatedly resend system prompts, tool definitions, conversation history, and retrieved content, with studies indicating that input tokens account for much of the spending and output tokens typically cost five times more per token. The recommended sequence begins with measuring token use and success rates per task, then reducing retrieved material at the source by returning targeted answers, structured fields, or clean markdown rather than full web pages or raw HTML. Stable prompt prefixes and tool schemas should be organized for cache reuse, while output and reasoning limits, deferred tool loading, removal or summarization of obsolete history, smaller models for simple work, and asynchronous batch APIs can further reduce costs. A worked research-agent example estimates that combining extraction, caching, shorter replies, and batching could reduce a 10,000-task monthly bill from $11,648 to $425, though the text emphasizes that compression, routing, and lossy extraction require evaluation because lower token use can backfire if it increases errors, retries, or human review.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 20 | 2,649 | 517 | 161 | -56% |
| RAG | 6 | 371 | 102 | 56 | -57% |
| Cost per task | 3 | 54 | 20 | 17 | -58% |
| Opus 5.5 | 3 | 212 | 48 | 25 | -59% |
| Loop engineering | 2 | 27 | 25 | 17 | -72% |
| MCP | 2 | 4,908 | 480 | 161 | -53% |
| Subagents | 2 | 120 | 42 | 26 | -54% |
| AI Agents | 1 | 2,616 | 663 | 181 | -53% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.