Large Language Model API Pricing Comparison and Selection Guide
This guide explains why comparing per-million-token list prices alone often underestimates the real cost of large language model APIs. It presents a reusable cost model covering input, cache hits, cache storage, output, and multimodal input, introduces an output inflation factor for models with non-disableable reasoning, and compares billing mechanisms such as limited-time discounts, batch discounts, subscription credits with off-peak multipliers, and currency conversion costs. Five typical workload scenarios are used to show how to choose the right channel and model tier, followed by a practical selection workflow and engineering recommendations.
1. Why Per-Token Price Comparisons Often Lead to Wrong Estimates
When choosing a large language model API channel, many teams build a table of per-million-token prices across platforms and pick the lowest one. This approach was barely workable in the early days of single-modality, text-only usage without caching. With native multimodal models, ultra-long contexts, and reasoning processes that cannot be disabled, it systematically underestimates the real cost.
There are three reasons. First, there are more billing dimensions. In addition to input and output, there are cache hit reads, cache storage, and converted tokens for multimodal inputs such as images, videos, and files. Comparing only two numbers misses the largest cost drivers. Second, billing mechanisms can create larger gaps than unit prices. Limited-time discounts, batch discounts, subscription credits, and off-peak multipliers can make the same workload cost several times more on one channel than another. Third, output tokens are not the same as the length of the answer you see. When the reasoning process cannot be disabled, reasoning content is billed as output, and the actual output volume is usually 2 to 3 times the final answer.
Therefore, the goal of this article is not to declare which channel is cheapest. Instead, it provides a reusable estimation framework: build a pricing model first, enumerate billing mechanisms next, and then solve for the optimal channel by scenario.
2. Build a Pricing Model: Break the Bill into Computable Items
A practical cost model should include at least the following variables (all normalized to per million tokens):
Total cost = input tokens/1e6 * P_in+ cache hit tokens/1e6 * P_cache_hit+ cache storage duration * P_cache_store (0 if free for a limited time)+ output tokens/1e6 * P_out+ multimodal input converted tokens/1e6 * P_in
The output item is the easiest to get wrong. It is recommended to introduce an inflation factor k:
Billed output tokens ≈ final answer tokens * k, k ∈ [2, 3]
When a model has a long reasoning chain that cannot be disabled, choosing the upper bound for k is safer. For budgeting, use k=2 to estimate the lower bound and k=3 for stress testing to avoid an out-of-control bill at the end of the month.
Another frequently overlooked item is caching. The value of caching depends on “hit rate × hit price discount.” If cache storage is free for a limited time, a caching strategy is almost a risk-free optimization. Once storage becomes billable, “storage duration × storage unit price” must be included in the comparison. Requests with short lifecycles and low reuse are then not suitable for caching.
3. Why Pay-As-You-Go List Prices Across Mainstream Channels Are Highly Consistent
A common pattern observed in practice is that most platforms largely follow the model vendor’s list price for pay-as-you-go usage. Input and output unit prices are identical, and differences mainly appear in discounts and billing mechanisms. Taking a native multimodal model as an example, the relationship between its standard price and a limited-time 50% discount can be abstracted as:
Standard price: input 0.8 / cache hit 0.23 / output 2.850% discount: input 0.4 / cache hit 0.115 / output 1.4
The same model family usually also offers mid-tier and flagship tiers, with prices in a stepped distribution. For example, the mid-tier is about 2.5 times the standard tier, and the flagship tier is about 10 times the standard tier. This means that “choosing the right tier” is itself the biggest cost lever: using the flagship tier for a large number of simple tasks is a major source of budget waste.
It should be noted that some platforms may list only the standard version of a model without the lightweight version, and public documentation does not necessarily provide all billing information. Therefore, when building a comparison table, “not listed/not disclosed” should be explicitly marked as unavailable rather than assumed to be zero cost.
4. Billing Mechanisms Are What Really Create the Gap
Once unit prices are fixed, only four types of mechanisms remain comparable:
- Limited-time discounts: Percentage discounts offered by vendors or platforms within a specific window, applied directly to unit prices. They are straightforward but time-limited, so expiration reminders are needed.
- Batch discounts: Submitting requests to a latency-insensitive batch channel, usually around 50% off in exchange for longer completion times. Suitable for offline data processing, batch summarization, and data cleaning.
- Subscription credits plus off-peak multipliers: Obtaining credits through a monthly subscription, with a 0.3x multiplier during off-peak hours. Suitable for teams with a stable baseline load that can shift non-urgent tasks to low-traffic periods.
- Exchange rate and settlement costs of USD-priced channels: Aggregated channels quoted in USD often cost slightly more after conversion to local currency, with exchange rate fluctuations and settlement fees added on top.
These four mechanisms can be stacked or mutually exclusive. The correct engineering practice is to write discounts and multipliers as configuration items rather than hard-coding them into the business logic.
# Channel cost configuration example (illustrative, not vendor-specific parameters)channels:direct:list_price: {in: 0.8, cache_hit: 0.23, out: 2.8}promo: {type: limited_time, factor: 0.5, expire_at: "2026-09-30"}batch:list_price: {in: 0.8, cache_hit: 0.23, out: 2.8}promo: {type: batch, factor: 0.5, latency: "offline"}subscription:list_price: {in: 0.8, cache_hit: 0.23, out: 2.8}promo: {type: offpeak, factor: 0.3, window: "00:00-08:00"}
5. Monthly Cost Estimates for Five Typical Scenarios
Assume the following monthly usage scenarios, all estimated with k=2.5 for billed output:
| Scenario | Input (million) | Cache hit (million) | Final output (million) | Billed output (million) |
|---|---|---|---|---|
| A Long-document Q&A | 120 | 80 | 20 | 50 |
| B Image understanding | 60 | 0 | 10 | 25 |
| C Batch summarization | 200 | 0 | 40 | 100 |
| D High-concurrency customer service | 300 | 150 | 60 | 150 |
| E Nightly offline data processing | 150 | 0 | 30 | 75 |
Calculated separately at standard and 50% discount prices (unit: CNY):
Scenario A standard = 120*0.8 + 80*0.23 + 50*2.8 = 254.4Scenario A 50% off = 127.2Scenario C standard = 200*0.8 + 100*2.8 = 440Scenario C batch 50% off = 220Scenario E subscription off-peak 0.3x ≈ (150*0.8 + 75*2.8)*0.3 = 99
The conclusion is clear: for long-document and high-cache-reuse scenarios, prioritize “limited-time discount plus caching”; for batch offline scenarios, prioritize “batch discounts”; for scenarios whose load can be shifted to off-peak periods, prioritize “subscription plus off-peak multiplier”; and for latency-sensitive, low-volume online scenarios, simply use the official channel at list price without sacrificing stability for discounts.
6. A Reusable Selection Workflow
- Mark availability: First confirm whether the target channel actually lists the corresponding tier. Remove it if not listed.
- Build a unit price table: Normalize units and currencies, and factor in exchange rates and settlement costs.
- Layer billing mechanisms: Write limited-time discounts, batch processing, and subscription off-peak as configurable factors.
- Apply the k value for range estimation: Reserve output at 2 to 3 times, and provide a lower bound and a stress value.
- Solve by scenario: Select channels independently for each scenario, and allow the routing layer to split traffic.
- Establish a review mechanism: Set alerts for discount expiration, unit price changes, and caching strategy changes.
7. Engineering Implementation Recommendations
- Routing layer abstraction: Wrap multiple channels with a unified gateway so that the business side faces only a unified interface, reducing switching costs to configuration level.
- Cache front-loading: Turn stable prefixes such as system prompts, long documents, and tool descriptions into reusable caches. The hit unit price is usually far lower than the input unit price.
- Tier downgrade: Use the lightweight tier for intent classification and extraction first, and upgrade to the flagship tier only for complex reasoning.
- Observability: Instrument input, cache hits, output, and billed output separately to locate the source of cost anomalies.
- Budget guardrails: Set a monthly token budget and circuit-breaker threshold for each business line to prevent a single anomaly from inflating the bill.
8. Conclusion
The right way to compare prices across multiple platforms is not to find the single lowest unit price, but to put “unit price × billing mechanism × workload characteristics” into a model and solve it together. When pay-as-you-go list prices converge, discount mechanisms, batch channels, subscription off-peak, and caching strategies become the decisive variables of the cost structure. The output inflation factor and tier selection are the two most easily overlooked knobs that can save money immediately.
