Multimodal Model API Billing Breakdown and Cost Accounting Guide
This guide explains how to compare multimodal model API costs by completed tasks rather than request counts, how to split input, cache, and output charges into separate accounts, and why real media assets must be used to measure multimodal expenses instead of file sizes. It also covers treating caching as a measurable benefit, using replay and reconciliation to turn one-off estimates into a monthly budget, and keeping both promotional and regular pricing scenarios for long-term planning.
1. First, Align the Comparison Basis: Completed Tasks, Not Request Counts
Two API price sheets may both quote rates per million tokens, but that does not mean they can be compared directly. A document Q&A request may contain only a query and retrieved snippets, or it may include an entire file plus prior conversation turns. An image understanding request may return a single judgment, or it may generate a detailed item-by-item description. If the input content, output length, or billing unit differs, multiplying unit price by request volume can easily underestimate the budget.
A more practical approach is to define the business delivery unit first—for example, “successfully extract specified fields from one document,” “complete one image quality inspection that meets format requirements,” or “answer one question traceable to the source text.” Apply the same acceptance rules to the same sample batch, and compare the average cost per successful task while meeting quality and latency requirements. This measures both price sheet differences and the overhead from failed retries, additional content parsing, and manual remediation.
2. Split Input, Cache, and Output into Three Separate Accounts
If the billing rules divide input tokens into cache-miss and cache-hit categories, and the two categories do not overlap, use the following formula:
Token cost = (cache-miss input volume × cache-miss input unit price+ cache-hit volume × cache-hit unit price+ billable output volume × output unit price) ÷ 1,000,000Total API cost = Token cost + other billable items not included in Token cost
Unit prices in the formula are consistently per million tokens. Pay special attention to whether the “total input volume” on the bill already includes cache-hit volume. If it does, subtract cache-hit volume from total input volume before multiplying by the cache-miss input unit price. If the bill already lists the two categories in separate columns, no subtraction is needed. Whether cache writes, storage, or media processing are billed separately depends on the actual terms and bill; do not treat the three items above as a complete checklist applicable to every API.
The following example rates illustrate how discounts propagate. Assume the regular unit prices for cache-miss input, cache-hit input, and output are 0.8 CNY, 0.23 CNY, and 2.8 CNY per million tokens, respectively. A batch of business tasks generates a total of 80 million cache-miss input tokens, 20 million cache-hit tokens, and 10 million output tokens. The costs are:
| Billing Item | Usage | Regular Cost | Cost at 50% Off Each Item |
|---|---|---|---|
| Cache-miss input | 80M tokens | 64.00 CNY | 32.00 CNY |
| Cache-hit input | 20M tokens | 4.60 CNY | 2.30 CNY |
| Output | 10M tokens | 28.00 CNY | 14.00 CNY |
| Total | — | 96.60 CNY | 48.30 CNY |
These figures are accounting examples, not live quotes, and do not include other charges. Only when all three items are discounted by 50% does the total drop from 96.60 CNY to 48.30 CNY. If the discount covers only cache-miss input and the other two items remain unchanged, the total is 64.60 CNY, a reduction of about 33.1%. Therefore, when you see “50% off,” first ask which billing items the discount covers, then ask whether the promotion has volume caps, expiration dates, or account restrictions.
3. Test Multimodal Costs with Real Assets, Not File Sizes
Text, images, video, and files may use different metering bases. Images may be converted to tokens, or billed per image or by another unit. For video, confirm whether billing is by duration, frame, or converted usage. For documents, distinguish between text parsing, page image processing, and the content actually sent to the model. File size reflects storage volume only and cannot directly indicate inference cost: two documents of similar size may differ greatly—one may be searchable text, while the other may consist of many scanned pages—and their processing paths and usage will differ.
For load testing, sample assets according to the business distribution rather than using only a few small images or a few short documents. For documents, record page count, whether they are scanned, extracted text volume, and actual input volume. For images and video, record dimensions, count, duration, and which frames were actually submitted. Then reconcile costs against available usage records or bill details. If a charge has already been converted into input tokens, do not add a media fee again in your local cost sheet.
Similarly, long-context support only means a request can hold longer content; it does not mean every request should send the entire document. For localized Q&A, try relevant snippets; for batch field extraction, process by section. However, cross-page tables, fields with strong context dependencies, or tasks requiring global verification may suffer recall loss when split. Whether to shorten input should be based on quality and cost changes measured on the same acceptance sample, not on pursuing a lower token count alone.
4. Treat Caching as Measurable Benefit, Not a Fixed Discount
Caching is generally better suited to reusing stable long prefixes, such as repeated task instructions, fixed output formats, or reference materials shared across multiple queries. If the billing rules identify hits by identical prefix, try placing stable content first and variable fields—timestamps, order numbers, and the user’s current question—later. However, whether a hit occurs still depends on the actual mechanism, request content, and cache lifetime. Resubmitting similar content does not automatically mean you get the cache price.
Using the example rates, moving one million input tokens from cache-miss to cache-hit theoretically saves 0.57 CNY, provided there are no additional cache fees. Evaluate using “cache-hit input tokens ÷ total input tokens,” not just counting how many requests had a hit. A batch of requests may mostly have hits but reuse only a very short prompt, saving little. Conversely, a small number of high-frequency long-document tasks may contribute more cache benefit than many short Q&A requests.
Output also deserves separate governance. At the example regular price, one million output tokens cost the same as 3.5 million cache-miss input tokens. Therefore, if a task only needs field values, specify the return scope clearly and avoid repeating source text or including unnecessary explanations. But do not blindly lower the output limit either: if truncated results cannot be parsed, retries may cost more than a complete first generation. Compare format pass rate, truncation rate, and retry count together.
5. Use Replay and Reconciliation to Turn Ad Hoc Estimates into a Monthly Budget
Before launch, run a small-scale replay with a batch of de-identified samples covering typical requests and a few high-cost long-tail requests. For each task, record input usage, cache-hit volume, output usage, call count, latency, and acceptance result. For failed or retried calls, confirm from the actual bill whether charges were incurred; do not assume failures are always free. Use successfully delivered tasks as the cost denominator:
Cost per successful task = total cost generated by the same batch of tasks ÷ number of successfully delivered tasks
For example, Option A may be cheaper per call but often retries due to format mismatches; Option B may have a slightly higher per-call price but delivers in one attempt. Ranking by average call price may favor A, while ranking by cost per successful task may reverse the result. In addition to the average, observe the 95th percentile of cost per task to determine whether tail requests—scanned documents, long videos, or long conversations—need separate budgets or handling policies.
A monthly budget should keep at least two pricing scenarios: confirmed discounted pricing before the promotion ends, and regular rates after it ends. If the discount has a volume cap, calculate the within-cap and over-cap portions separately. When multiple currencies are involved, first align the exchange rate date, tax basis, and possible payment fees before comparing payable amounts. For package or prepaid plans, amortize according to expected actual consumption rather than using only the theoretical unit price at full utilization.
Ultimately, a price sheet is suitable for initial screening, while the actual bill is suitable for budgeting. First confirm the metering units, then validate quality, latency, and usage on the same batch of tasks, and finally measure long-term spend at regular prices while accounting for short-term savings at promotional prices. This way, even if the discount ends, cache hit rate drops, or the share of media requests rises, you can locate where the cost change comes from instead of re-estimating only after the bill exceeds expectations.
