Native Multimodal LLM API Pricing and Selection: A Practical Guide
This guide breaks down how native multimodal LLM APIs are billed across input, cached input, and output tokens, and shows how to turn that pricing model into engineering decisions. It covers a cost formula with worked examples, how to handle limited-time discounts without distorting capacity planning, why prices differ across access channels, how to build a provider abstraction layer so channels stay replaceable, and the engineering practices that raise cache hit rates. A closing cost-governance checklist helps teams keep multimodal API spending measurable, portable, and under control.
1. Background: The Cost Uncertainty of Adopting Multimodal Models
Over the past year, the capability boundary of multimodal large models has expanded rapidly. A single model now accepts text, image, video, and file inputs at the same time, context windows have grown to the million-token scale, and weights are released under permissive open-source licenses.
This leap in capability has a direct consequence: billing structures become more complex. Pricing dimensions have expanded from two items, input and output, to three: input, cached input, and output, with implicit token conversion layered on top for video and files.
A recently released multimodal model is a typical example: hundreds of billions of total parameters with only a few billion activated parameters (a sparse architecture), support for million-scale context, and weights released under a permissive open-source license. Its official pay-as-you-go list price is 0.8 CNY per million input tokens, 0.23 CNY per million cached input tokens, and 2.8 CNY per million output tokens, with a limited-time 50% discount bringing these to 0.4, 0.115, and 1.4 CNY respectively.
For developers, the real question is not “what is the unit price,” but three engineering questions:
- The discount is temporary, so which price should capacity planning be based on?
- Where do price differences between access channels come from, and is it worth adding architectural complexity to save a fraction of a cent?
- Cached input pricing is widely overlooked, so how much does it actually affect total cost?
2. Breaking Down the Pricing Model: Writing the Bill as a Formula
Let the number of input tokens be $I$, of which the cached portion is $hI$ ($h$ is the hit rate), and the number of output tokens be $O$. The cost of a single request is:
Cost = (1-h)*I*P_in + h*I*P_cache + O*P_out
Three key implications:
- The output unit price is typically 3–4 times the input price, while the output-to-input ratio of conversational applications is often 0.2–0.5. The input side is therefore the main cost battlefield, and the payoff from caching strategies is amplified.
- The cached input price is roughly 0.25–0.3 times the input price. Raising the hit rate from 0 to 0.6 can cut input-side cost by about 55%.
- Million-scale context is a double-edged sword: loading a long document all at once pushes input cost up linearly, so it must be paired with chunking, retrieval, and cache reuse.
Illustrative calculation (list price, CNY per million tokens):
| Scenario | Input | Hit rate | Output | Cost per request |
|---|---|---|---|---|
| Short Q&A | 2k | 0 | 500 | 0.0030 |
| Long-document summarization | 200k | 0 | 2k | 0.1656 |
| Long document + cache reuse | 200k | 0.8 | 2k | 0.0381 |
For the same workload, only the caching strategy differs, yet cost differs by more than 4x.
3. Handling Limited-Time Discounts Correctly
Discount-period prices must not be treated as a long-term assumption. Engineering recommendations:
- Externalize configuration: put unit prices and discount factors in a configuration center rather than hardcoding them.
- Dual price ledgers: maintain two budgets at the same time, list price and promotional price. Use list price for capacity planning and promotional price for cash-flow forecasting.
- Discount-expiry drill: before the discount ends, recalculate the unit economics with list prices and confirm gross margin is still positive.
- Avoid discount-driven architecture lock-in: do not tie business logic to proprietary features of a single model for the sake of a short-term low price.
4. Why Prices Differ Across Channels
For the same model, quotes from different access channels usually fall into three categories:
- Direct from the vendor: executed at list price, with the latest model version and the best consistency between capability semantics and documentation.
- Domestic aggregation and cloud marketplace channels: pay-as-you-go pricing is basically aligned with list price. The advantages are a unified bill, low intranet latency, integration with common cloud products such as object storage, message queues, log services, and monitoring and alerting, plus mature compliance and invoicing processes.
- Overseas-priced channels: settled in US dollars, slightly higher after conversion, with added costs from exchange-rate fluctuations, cross-border network latency, and data-export compliance assessment.
Conclusion: switching channels frequently to save a fraction of a cent per million tokens is usually not worthwhile. Channel selection should be driven by four factors: compliance, latency, billing consolidation, and quota elasticity. Price is only one dimension among them.
5. Provider Abstraction Layer: Making Channels Replaceable
Consolidating model calls behind a unified gateway is the core means of controlling channel risk:
# Example: a unified multimodal request abstraction@dataclassclass MMRequest:messages: list # supports mixed text/image/video/filemax_tokens: intcache_hint: str | None # hints at a reusable prefixclass Provider(Protocol):def chat(self, req: MMRequest) -> MMResponse: ...def price(self) -> PriceTable: ... # list price and promo price kept separate
The gateway layer is responsible for normalizing billing (converting everything to a per-million-token basis), retries and fallback on failure, cross-channel quota scheduling, and cost attribution reports broken down by channel.
6. Cache Hit Rate Engineering
- Stable prefixes: place system prompts, tool definitions, and knowledge-base snippets at the very front in a fixed order, avoiding per-turn changes that invalidate the prefix.
- Batch and concurrency organization: aggregate requests that share the same prefix to reduce duplicate billing.
- Chunked retrieval instead of full loading: use retrieval recall instead of stuffing an entire long document into the context.
- Observability: bring
cached_tokens / prompt_tokensinto monitoring and alerting as a first-class metric, with an alert threshold for a minimum hit rate.
7. Cost Governance Checklist
- Establish a “cost per thousand requests” baseline for each type of workload and compare week over week.
- Set budget thresholds and circuit-breaker policies separately for input and output tokens.
- Archive raw usage logs to object storage and run offline jobs for trend and anomaly analysis.
- Re-evaluate the cost-performance of channels and models quarterly, and produce a rollback-capable switching plan.
8. Conclusion
Selecting a multimodal API is essentially an engineering problem: use list price as a capacity safety margin, use promotional price for cash-flow optimization, use caching and prefix design to drive down input cost, and use an abstraction layer to preserve the ability to switch channels. Baidu AI Cloud has complete engineering support across model services and companion general-purpose products for data, storage, and monitoring, and can help teams turn these practices into a sustainable, observable, and portable calling system.
