API Billing Across Four Cloud Platforms: Same List Price, Different Bill and Cost-Reduction Paths
This article explains why the same large-model API can carry identical list prices on four cloud platforms while producing noticeably different monthly bills. It breaks down batch discounts, subscription and idle-time rules, cache billing, and free quotas using a target large language model as an example, and provides formulas, calculation examples, scenario guidance, and cost-optimization practices that readers can apply to estimate and audit their own API costs.
The same large-model API can have identical list prices on four cloud platforms and still produce a noticeably different monthly bill. The gap comes from billing-rule details, including batch discounts, subscription and idle-time rules, cache billing, and free quotas. Using a target large language model (the “target model”) as an example, this article breaks down those rules and provides formulas and examples that developers can use to calculate costs themselves while maintaining service quality.
1. List Prices Match, but Billing Rules Differ
The standard version of the target model has the same pay-as-you-go list price on all four platforms: CNY 20 per million Tokens for input (prompt processing), CNY 2 per million Tokens for cache hits, and CNY 100 per million Tokens for output (generated content). The Pro version is uniformly priced at CNY 13 for input, CNY 1.3 for cache hits, and CNY 68 for output.
Identical unit prices do not mean identical total costs. The platforms differ in batch processing, subscription plans, free quotas, and cache rules. The table below summarizes the rule information in the source material. Items marked “Not listed in source” should be checked on the corresponding platform’s pricing page before selection.
| Item | Alibaba Cloud Model Studio (Bailian) | Tencent Cloud TokenHub | Target Model Open Platform | Qiniu Cloud AI Large Model Platform |
|---|---|---|---|---|
| Standard pay-as-you-go list price | Input CNY 20, cache hit CNY 2, output CNY 100 per million Tokens | Same as left | Same as left | Same as left |
| Pro pay-as-you-go list price | Input CNY 13, cache hit CNY 1.3, output CNY 68 per million Tokens | Same as left | Same as left | Same as left |
| Batch discount | Not listed in source | Discount not specified in source | 60% of standard price | Not listed in source |
| Subscription and idle time | Not listed in source | Not listed in source | Not listed in source | Token Plan subscription, with idle-time rules |
| Free quota | 1 million Tokens per new model | Not listed in source | Not listed in source | Not listed in source |
| Cache rules | Not listed in source | Not listed in source | Repeated prefixes cached automatically, default TTL 5 minutes; K3 series writes can use 5-minute or 1-hour TTL, billed separately | Not listed in source |
The prices above are example figures at the time of writing; platform prices change. Before publication and procurement, check each platform’s current pricing page.
2. Three Paths That Determine the Bill
1. Batch: Discounts for Offline Workloads
Batch is an asynchronous batch processing mode. It is suitable for data cleaning, batch classification, overnight offline generation, and other tasks that do not require real-time responses. The Target Model Open Platform bills Batch task input, cache hits, and output uniformly at 60% of the standard price.
Take an offline task that processes 1 billion input Tokens and 200 million output Tokens per month:
- Input: 1,000 million Tokens × CNY 20 = CNY 20,000
- Output: 200 million Tokens × CNY 100 = CNY 20,000
- Standard-price total: CNY 40,000
- Batch at 60%: CNY 40,000 × 60% = CNY 24,000
- Savings: CNY 16,000
This discount applies only to the Batch channel; real-time requests are still billed at standard prices. The higher the share of offline work, the more obvious the savings. If a task has a hard completion-time requirement, it should not be moved to an asynchronous channel.
2. Subscription Plans and Idle-Time Rules
The Qiniu Cloud AI Large Model Platform offers a Token Plan subscription that covers the standard version of the target model. Users first purchase a monthly plan containing a fixed quota; usage beyond that quota is billed pay-as-you-go. The value of the subscription lies in offsetting the fixed quota, while idle-time rules are another variable.
According to the source, idle time refers to non-peak periods (such as 18:00 to 8:00 the next day), and calls during idle time can receive an additional discount. The combined savings rate can be estimated with the following approximate formula:
Savings rate ≈ idle-time call share × idle-time discount rate
This formula does not include the offset from the subscription quota. Assume the idle-time discount rate is 20% (for demonstration only; actual values depend on platform rules). The results are as follows:
| Idle-time call share | Approximate savings rate |
|---|---|
| 30% | 6% |
| 50% | 10% |
| 60% | 12% |
The higher the idle-time share, the greater the savings. Whether calls can be scheduled to idle time depends on the business. Tasks that can be deferred, such as content moderation and user-profile generation, are suitable for scheduling. Real-time conversational calls are difficult to schedule.
A simple condition can help judge whether a subscription is worthwhile: the monthly average pay-as-you-go cost must be consistently higher than the plan’s monthly fee. When usage fluctuates widely and peaks are hard to predict, plan quota can sit idle, and pay-as-you-go billing is safer.
3. Cache Billing: Saving on Repeated Prefixes
The Target Model Open Platform says that repeated prefixes automatically enable caching, with a default time-to-live (TTL) of 5 minutes. For the K3 series, cache writes can use a 5-minute or 1-hour TTL and are billed separately. When the cache hits, only the hit price is charged.
The example below assumes that a customer-service bot sends a fixed 4,000-Token prefix (system instructions and conversation history) with every request. The source assumes the cache write fee is billed separately at the standard input price, so on a miss, the per-request cost is the standard input price plus one write fee. The write rate must follow the platform; it is used here only for calculation.
- Without cache: 4,000 × CNY 20/million = CNY 0.08 per request
- Cache hit: 4,000 × CNY 2/million = CNY 0.008 per request
- Cache miss (standard price plus write fee): 0.08 + 0.08 = CNY 0.16 per request
At an 80% hit rate, the average cost per request is 0.8 × 0.008 + 0.2 × 0.16 = CNY 0.0384, about 52% lower than without cache. At 10,000 requests per day over 30 days, the monthly savings are about CNY 12,480.
When the hit rate is low, caching can increase costs instead. Under the assumptions above, the break-even hit rate compared with no cache is about 53%. Below that value, caching has a negative return.
Therefore, cache benefits depend on three things: whether the prefix is stable, whether the request interval is shorter than the TTL, and whether the hit rate can remain above the break-even line. Putting fixed instructions, examples, and format requirements at the beginning of the request and keeping the content byte-identical helps improve the hit rate. Conversational applications suit a 5-minute TTL, while long-term stable system instructions suit a 1-hour TTL.
3. Selection Guidance for Four Scenarios
- Calls are mainly real-time interaction, and the model version is not locked: The four platforms have the same list price, so selection should be based on stability, operations support, and bill clarity. For existing workloads on a cloud provider, connecting nearby usually does not create additional fees.
- Offline tasks account for a high share: Prioritize platforms that offer Batch discounts, move non-real-time tasks to the Batch channel, and keep real-time requests on the standard channel.
- Real-time calls dominate, but some traffic can be scheduled to idle time: Compare the subscription plan’s monthly fee with the idle-time discount, and use the formula above to estimate the savings rate.
- Prompts are fixed and repeated content is high: Regardless of which platform is chosen, optimize the request structure first. This does not require platform migration; it only requires adjusting the prompt template.
Before selection, use the following fields for a self-check: real-time request share, offline task volume, share of traffic that can be scheduled to idle time, prompt repetition rate, and monthly call volume range.
4. General Cost-Optimization Practices
- Classify requests: Divide calls into synchronous interaction and asynchronous batch processing, and route them to the corresponding billing channel.
- Use cache-friendly templates: Put fixed content first and dynamic variables later. Avoid inserting variables in the middle in a way that invalidates the cache.
- Schedule to idle time: For non-urgent tasks, use message queues or scheduled jobs to concentrate execution during non-peak periods.
- Monitor with a dashboard: Record the API, model version, input Tokens, output Tokens, cache hit status, unit price, and daily cost for each call, and calculate hit rates on daily and weekly dimensions. Without measurement, it is impossible to judge whether optimization is effective.
- Migrate model versions promptly: According to the source, an older model series was closed to new users starting October 31, 2026, and is planned to be fully retired by the end of December. The official recommendation is to migrate to the Pro version. The later the migration, the higher the risk of service interruption.
5. Applicability Boundaries and Caveats
The rules in this article apply only to the standard and Pro versions of the target model described in the source. Other models or platforms cannot apply these numbers.
- Price timeliness: The unit prices in this article are example figures at the time of writing, and platforms may adjust them at any time. Review prices and rules quarterly.
- Regional differences: According to the source, some overseas nodes may have list prices about 5% to 10% higher than domestic nodes. If data-residency requirements allow, non-sensitive traffic can be scheduled to domestic nodes.
- Service level: When choosing a platform, confirm whether the service-level agreement (SLA) covers the availability requirements of the business. Do not sacrifice the stability of critical business for a small price difference.
The price may be the same, but the bill can differ because of billing rules and call structure. Audit call volume quarterly, calculate the benefits of Batch, idle time, subscriptions, and caching, and then decide on the platform and calling method.
