LLM API cost guides and playbooks
Original, practical writing on the mechanics behind an LLM API bill — cost optimization, prompt caching, token economics, and how to pick the best-value model for a given workload. Written and maintained by the TokenCost editorial team; see our editorial policy.
Vector Database Costs Compared: What 1M, 10M and 100M Vectors Cost on Each
What 1M, 10M and 100M vectors cost per month on nine vector databases, why the cheapest one changes with scale, and how it compares with LLM answer costs.
Nov 202611 min readToken economicsWhat Is a Token? How Tokenization Decides Your LLM Bill
What tokens are, why one text costs different amounts across models, and worked bills for a page, a 50-page PDF and a 20-turn chat on six models.
Nov 202610 min readVoice and mediaVoice AI Costs: Text-to-Speech, Speech-to-Text and Realtime Voice Agents
What text-to-speech, speech-to-text and realtime voice APIs cost per character, hour and minute, with a priced 10-minute support call built two ways.
Nov 202611 min readToken economicsReasoning Models: How Thinking Tokens Change Your Bill
Thinking tokens are billed as output. See what a 2x to 10x output multiplier does to a real bill on six models, and when a non-reasoning model is cheaper overall.
Nov 20268 min readChoosing a modelOpen-Weight vs Proprietary LLMs: The Real Cost Difference
Open-weight models cost a median 5.7x less per token, but the gap shrinks at equal quality. Priced by ECI tier, with what self-hosting adds on top.
Nov 202610 min readOperationsLLM API Rate Limits Explained: RPM, TPM, Tiers and How to Plan Around Them
What RPM, TPM and concurrency limits mean, how nine providers gate them, and a worked example of sizing requests and tokens per minute for 5,000 daily users.
Nov 20269 min readOperationsWhen an LLM Is Deprecated: How to Migrate Without a Cost Surprise
What deprecation schedules look like, how cost shifts when you move to the successor, and monthly cost comparisons for seven real deprecated-to-successor pairs.
Nov 20269 min readOperationsSetting Budgets and Monitoring LLM API Spend
How to forecast an LLM budget, what to log per request, which alerts and caps to set, and how often prices change, measured over 54 days of tracked changes.
Nov 20269 min readChoosing a modelClaude vs GPT vs Gemini API: What the Same Workload Costs on Each
Claude, GPT and Gemini priced tier by tier on four real workloads, with ECI quality scores, so you can see where each family is cheapest and where it is not.
Nov 202610 min readChoosing a modelThe Cheapest LLM for RAG and Document Q&A
RAG requests are input-heavy, so input price and top-k decide the bill. Priced across models with caching, long context and embeddings costs included.
Nov 202610 min readPlanningWhat a Customer-Support Chatbot Costs per Conversation and per User
Token-by-token cost model of an 8-turn support chat with retrieved context, priced per conversation and per 1,000 users on six models, with caching and history trimming.
Nov 20268 min readVoice and mediaAI Image and Video Generation API Costs per Asset
Image and video generation API prices per image and per second, with a 30-image catalogue, a 60-second video and Arena quality scores beside price.
Nov 202613 min readPlanningHow Much Does an AI Agent Cost per Task? Worked Examples With Real Prices
Why agent tasks cost 10 to 40 times a single chat call, with step-by-step token math for a coding fix and a research task, priced on five models with and without caching.
Nov 20268 min readMarketHow LLM API Prices Actually Changed: A Data-Driven Look at Our Own Tracking Log
Real numbers from our own daily-tracked price-change log — how often prices actually move, by how much, in which direction, and which providers move the most.
Aug 20266 min readToken economicsLLM Fine-Tuning Costs: What Each Provider Actually Charges (2026)
A provider-by-provider look at where fine-tuning is still available, how it's priced, and which major providers have wound it down or never offered it.
Aug 20265 min readCost optimizationBatch API Pricing: Which Providers Actually Discount It (2026)
A provider-by-provider breakdown of batch API discounts — who offers 50% off, who offers less, who offers none at all, and the two nuances most guides miss.
Aug 20265 min readCost optimizationPrompt Caching Explained: How It Bills and How Much It Saves
How prompt caching works, what providers charge for cache reads and writes, typical discounts across 150 tracked models, and a worked example of savings at different cache-hit rates.
Jul 20267 min readToken economicsInput vs Output Tokens: Why Output Pricing Drives Most Chat and Generation Bills
Why output tokens cost about 5 times more than input on the median model, how reasoning tokens bill as output, and how to design prompts around the gap, with real ratios from current price data.
Jul 20266 min readPlanningHow to Estimate LLM Costs Before You Build: A Worked Example
A step-by-step method for turning expected traffic into a monthly LLM bill, with a full worked example at current prices and the mistakes that most often make estimates wrong.
Jul 20266 min readCost optimizationHow to Cut Your LLM API Bill by 80%: The Complete Cost-Optimization Playbook
Four concrete levers — prompt caching, batch processing, model routing, and context trimming — with real math showing how much each one saves.
Jul 20266 min readChoosing a modelWhich LLM Is Cheapest for Your Workload? It Depends on Input vs Output
Why the cheapest model changes with your input-to-output ratio and quality floor, shown with three contrasting workloads (RAG, chat, long generation) priced from current data.
Jul 20266 min readChoosing a modelThe Cheapest LLM for Coding: FrontierCode Score per Dollar
Why the top-ranked coding model on a leaderboard is rarely the smartest buy, and how to find the best value using cost-vs-quality analysis.
Jul 20265 min read