LLM API Pricing Changes: A Practical Guide to Low-Cost Model Selection

    This guide explains how to evaluate large language model API costs when prices keep shifting. It covers the three main billing models, a reusable method for converting subscription credits into a real per-million-token price, cache-hit pricing as a cost lever, the risks of free or limited-time tiers, and four practices for building a stable, cost-controlled model selection strategy.

    1. Price Changes Are the New Normal, and Cost Modeling Matters More Than Chasing Cheap Access

    Inference pricing for large language models has been changing frequently. Some coding subscription services marketed as “low-cost” or even “free” adjust their usable quota whenever upstream model prices change, and some aggregation platforms post advance notice of price revisions. For developers, building a stable cost model and selection process is more reliable than chasing a short-term low-price entry point.

    Price fluctuations ultimately reflect supply, demand, and compute costs: unit prices rise when compute is tight during peak periods and fall when resources sit idle during troughs. This is why any promise of a “permanent low price” lacks stability. The rational approach is to calculate your cost model clearly and keep replaceable alternatives ready.

    2. Three Billing Models and When to Use Each

    Current mainstream billing falls into three categories:

    1. Pay-as-you-go: Billed on actual input and output tokens consumed, usually with separate prices for cache hits and misses. The advantage is zero barrier to entry—you pay only for what you use. The drawback is unpredictable bills when traffic spikes.
    2. Subscription plans: A fixed monthly fee buys a certain quota of credits or API calls, with service downgraded or stopped once the quota is exhausted. The advantage is predictable cost. The drawback is that the conversion between quota and actual unit price is often opaque.
    3. Monthly or annual plans with bundled capabilities: Bundles capabilities such as chat, code completion, image generation, and multi-device collaboration. Suited to teams with stable usage that need multiple scenarios.

    The selection principle is simple: prioritize pay-as-you-go when usage is volatile and hard to forecast; when usage is stable and long-term, plans are usually more cost-effective, but you must first convert the quota into a “per-million-token unit price” before comparing.

    3. Converting Credits to a Real Unit Price: A Reusable Calculation

    Subscription plans are the easiest way to fall into the “looks cheap” illusion. The correct approach is to normalize everything:

    1. Real unit price (per million tokens) = monthly fee / (monthly credit quota × tokens per credit) × 1,000,000

    For example, with a monthly fee of 30 yuan and a quota of 60,000 credits, if 1 credit corresponds to 1,000 tokens, the total is 60 million tokens and the input price is about 0.5 yuan per million tokens. After applying discount factors such as a “weight reduction,” the final unit price may end up below the official list price—or actually higher. The key is whether the discount applies to credit consumption or to the unit price.

    Teams should maintain a comparison table that normalizes the input, cache-hit input, and output prices of candidate services before making a decision, avoiding being misled by the “quota number.”

    4. Cache-Hit Pricing: An Undervalued Cost Lever

    Most inference services offer cache-hit discounts for repeated prefixes (such as fixed system prompts, long documents, and code context), with hit prices typically only a fraction—sometimes a few hundredths—of the miss price. Engineering can amplify the benefit in three ways:

    • Keep the system prompt, tool definitions, and few-shot examples fixed at the front of the request, byte-for-byte identical;
    • Reuse the same session context instead of resending the full history every time;
    • For long documents, produce a structured summary first to reduce repeated prefix size.

    Illustrative pseudocode:

    1. def build_request(system_prompt, history, user_input):
    2. # Keep the prefix stable to improve cache hit rate
    3. prefix = system_prompt + serialize(history)
    4. return {"messages": prefix + user_input}

    5. Free and Limited-Time Quotas: Usable, but Manage the Risk

    The market has services that are free for a limited time and support standard chat completion APIs. These resources suit prototyping and lightweight trials, but note the following: API capabilities may be incomplete (for example, only basic chat completion, without support for more advanced response-style APIs); rate limiting and insufficient-credit notices appear intermittently; and data retention and compliance policies are opaque. Production environments should not depend on such resources, and extra caution is warranted when sensitive data is involved.

    6. Four Practical Recommendations for Rational Selection

    1. Abstract a unified call layer: Wrap model calls behind an internal interface that hides differences between services, making it easy to switch at any time.
    2. Build a cost dashboard: Track token consumption and cost by project and by person, with budget alerts.
    3. Keep two providers: Maintain a primary and a backup to avoid business disruption from a single channel’s price hike or rate limiting.
    4. Evaluate total cost first: Factor in migration cost, stability, and compliance requirements rather than looking only at unit price.

    If an organization wants to balance compliance and cost, it can look at general-purpose model services and compute resources offered by providers such as Baidu AI Cloud, combining pay-as-you-go with plans to form a controllable budget structure.