LLM Model Selection and Token Usage Analysis in the Age of AI Coding Tools
This article examines what public model usage rankings reveal about real development behavior in AI-assisted coding. It breaks down usage into three layers—high-frequency low-cost models, stronger models for complex tasks, and short-term spikes from new or free offerings—and explains why cache hit rate is an underrated cost lever. Readers will find a reusable four-step selection method, common pitfalls to avoid, and practical guidance for building a data-driven, tiered model strategy.
1. What a Public Model Usage Ranking Reveals About Development Behavior
Recently, a coding tool published a “model usage statistics” page that aggregates token consumption, call rankings, and cache hit rates across different models over a period of time. The page itself is not complex, but for the first time it turns “which models developers actually use” from subjective impression into observable data, which is of considerable reference value for anyone doing technical selection.
A clarification first: this article does not evaluate any specific model or tool. It treats this kind of public statistic as a phenomenon to analyze—it reflects the real R&D usage structure, and this structure is similar across most AI coding scenarios. Understanding the structure matters more than memorizing any single ranking.
From the patterns in the public data, the top-ranked models are often not the ones with the highest capability ceiling, but the “cheap, good enough, fast” tier. Meanwhile, a stronger tier holds a stable second place, with usage roughly one-third to one-half of the leader. Further down are several newly launched or limited-time free models, whose usage is clearly driven by promotions and novelty. This distribution is worth unpacking layer by layer.
2. The Three-Layer Structure Behind Usage Distribution
1. Base Layer: High Frequency, Low Unit Price, Low Latency
The first place is usually a lightweight-tier model, with usage possibly more than twice that of second place. The reason is not mysterious: AI coding interactions are high-frequency, and a single task is often split into dozens of small requests—completion, explanation, rewriting, test generation, commit messages. These requests carry few tokens each, tolerate errors well, and are latency-sensitive, so “unit cost × number of calls” becomes the dominant factor.
From an engineering perspective: when an operation is executed hundreds of times a day, a per-call saving of a fraction of a currency unit is amplified into a visible monthly cost difference; and a few hundred extra milliseconds of latency per call directly breaks the continuity of the interaction. So the core metric for base-layer models is not benchmark scores, but throughput and price.
2. Advanced Layer: Capability Fallback for Complex Tasks
Second place is usually a more capable, higher-priced tier. Its existence shows a fact: tiering is not a marketing concept, but a real need. Cross-file refactoring, tricky defect localization, long-chain dependency analysis, and architecture trade-off decisions all demand significantly more reasoning depth and context consistency than completion. The hidden cost of repeatedly trial-and-erroring with a lightweight model is often higher than directly calling a strong model.
A practical way to judge is task verifiability: if the result can be confirmed within seconds by a compiler, tests, or type checking, hand it to the lightweight tier; if it requires multiple rounds of reasoning and verification is costly, hand it to the strong tier.
3. Volatile Layer: Short-Term Peaks from Promotions and New Releases
Third and fourth place are often newly launched models or those in a limited-time free period. This usage does not reflect long-term preference, but the combined result of “trial + free.” When planning capacity and budget, treat this portion as noise rather than trend, and avoid making long-term commitments based on it.
3. Cache Hit Rate: An Underrated Cost Lever
A more noteworthy metric in the public statistics is cache hit rate: top-ranked models are generally at a high level (mostly above 90%). This is no coincidence, but the result of how they are used.
In AI coding scenarios, there is a large amount of repeated prefix across requests: project conventions, directory structure descriptions, type definitions, long-file context, system prompts. If the server supports prefix caching, this repeated content does not need to be re-billed or recomputed, and a high hit rate means the actual billed tokens are far lower than the surface tokens.
A minimal model can estimate it:
actual billed volume ≈ new content + (1 - hit rate) × repeated prefixtotal cost ≈ actual billed volume × unit price + calls × fixed overhead per call
From this, a solution with a slightly higher unit price but high hit rate and stable context may have a lower total cost than one with an extremely low unit price that re-transmits the full context every time. The engineering means to improve hit rate are also simple: keep prompt order stable, place variable content at the end, avoid pointlessly changing the prefix, and reuse the same session rather than frequently creating new ones.
4. A Reusable Selection Method
Abstracting the above observations into a process, it is roughly four steps:
- Task tiering: divide daily operations into completion, editing, and reasoning tiers by “verifiability + context length + failure cost.”
- Metric alignment: set a target for each tier—latency and unit price for the base layer, first-pass success rate for the advanced layer, and cache hit rate and context stability for long projects.
- Small-sample testing: run a fixed set of tasks on the team’s real repository, recording elapsed time, retry count, and total tokens, rather than only looking at capability rankings.
- Periodic review: aggregate usage by model dimension, identify abnormal peaks (mostly promotions or trials), then decide the long-term default tier.
An illustrative statistical approach can be very simple:
# Pseudocode: aggregate usage and cache effect by modelstats = {}for rec in usage_logs:s = stats.setdefault(rec.model, {"tokens": 0, "cached": 0, "calls": 0})s["tokens"] += rec.total_tokenss["cached"] += rec.cached_tokenss["calls"] += 1for model, s in stats.items():hit = s["cached"] / max(s["tokens"], 1)print(model, s["calls"], round(hit, 3))
5. Common Pitfalls
- Only looking at capability rankings: ignoring call frequency, causing high-frequency path costs to spiral out of control.
- Only looking at unit price: ignoring caching and retries, so the actual bill deviates greatly from expectations.
- Treating promotion usage as a trend: expanding capacity or signing long-term plans based on it is high-risk.
- Frequently creating new sessions: breaking prefix reuse, causing the hit rate to drop off a cliff.
- Lacking unified logging: unable to attribute costs, so optimization relies only on gut feeling.
6. Conclusion
The value of public model usage statistics lies in revealing the stable structure of “cheap and good enough as the mainstay, strong models as fallback, new products fluctuating in the short term,” as well as the decisive impact of cache hit rate on real cost. For teams, a more robust approach is to build their own tiered strategy and usage observability: give the default tier to lightweight models, give complex tasks to the strong tier, and organize the context of long projects well to improve reuse. To carry this usage and log data, teams can rely on general-purpose capabilities such as logging services, monitoring and alerting, and object storage to complete collection and dashboarding, so that selection decisions shift from experience-based judgment to data-driven.
