How LLM Relay Services Bill: A Guide to Real Cost Accounting

    This article explains how LLM relay services charge for usage and how to calculate their real cost. It covers token units, price multipliers, exchange rates, and a verifiable cost formula with a worked example. It then shows how to compare services using representative tasks and effective task cost, and what enterprises should consider beyond token prices, including data governance and migration.

    1. Why LLM Relay Services Have Become a Business

    As large language models are adopted for coding assistance, knowledge question answering, content processing, and business automation, developers’ needs have shifted. The question is no longer whether they can access a model, but whether they can reliably manage a group of models. Differences in model interfaces, authentication, quota management, billing formats, and error handling all add to engineering overhead.

    The basic function of a relay service is to add an access and management layer between the caller and upstream model providers. It may offer a unified interface, request forwarding, usage statistics, budget control, and failure handling. These are common technical directions, but not every relay service offers all of them, and none of them is inherently reliable.

    From a business perspective, a relay service may earn revenue from the price difference on model calls, or from fees for access management, operations support, and enterprise governance. Whether that value holds depends on whether the service reduces users’ integration costs and delivers stability, transparency, and management capabilities that match what it charges.

    Therefore, analyzing these services should go beyond asking who has entered the market. Instead, ask why users need the service, how the bill is formed, and whether the price paid corresponds to real delivered value.

    2. Start with Units: Tokens Are Not Words

    A token is the basic unit by which a model processes text. No fixed conversion ratio applies to all models between tokens and Chinese characters, English words, or characters. The same content can produce different token counts under different tokenizers.

    “Price per million tokens” is a common pricing basis, but comparisons must distinguish input from output:

    • Input tokens: content sent to the model, typically including system instructions, user questions, conversation history, and attached material.
    • Output tokens: content generated by the model.
    • Cached input tokens: in services that explicitly support caching and apply the corresponding billing method, these may be charged at a different price from regular input.
    • Other billable items: images, audio, calls to external capabilities, or additional processing may use different units and must be checked separately.

    Do not treat the average of input and output prices as the model’s unit price. Long-document analysis usually involves much more input, while long-form generation may have a higher share of output. Even with the same model, actual costs differ considerably depending on the workload structure.

    3. Why Prices Look Low but Are Hard to Calculate

    3.1 The displayed price may not be the final price paid

    Some services display prices in CNY, some in foreign currency, and others use internal points or quotas. Users first need to determine whether the number on the page is a currency amount, a quota, or a base reference price.

    If you pay in CNY and receive an internal balance, confirm the actual exchange relationship between the balance and CNY. Bonus credits reduce the effective purchase cost of the nominal quota. However, whether the bonus is restricted to certain models, has an expiry date, or is refundable all affect its final value.

    3.2 Multipliers may apply at different calculation stages

    Common rules include account group multipliers, model multipliers, channel multipliers, and promotional discounts. A multiplier is not inherently unreasonable. The real issues are whether the rules are public, whether their meaning is clear, and whether they are applied more than once.

    For example, if a page already shows the final price for an account group, multiplying again by the account group multiplier overstates the cost. Conversely, if the page shows a base price rather than a settlement price, ignoring the multiplier understates the cost.

    The most reliable approach is to make sure every price factor maps to a clear rule, and then verify the result with actual bills.

    3.3 Exchange rates must be identified by source

    When foreign currency is involved, distinguish at least the reference exchange rate, the service’s settlement rate, and the rate actually applied at payment. These may differ, and payment processing fees may add to the cost.

    If a service quotes a fixed price in CNY, calculate according to its CNY settlement rules. Do not multiply by an exchange rate again. The conversion rate for an internal balance should also not be treated as a foreign exchange rate.

    4. Build a Verifiable Cost Formula

    For a text request with only regular input and output charges, the base cost can be written as:

    Base cost = input tokens ÷ 1,000,000 × input price + output tokens ÷ 1,000,000 × output price

    When input and output prices are both expressed in the same settlement unit and the other factors take effect independently, this can be extended to:

    CNY cost = base cost × applicable multiplier × CNY cost per settlement unit + extra fees

    The applicable multiplier should include only factors not already included in the unit price. Discounts that have already been built into the price must not be deducted again. Extra fees may include fixed service fees or clearly stated per-request fees, and should follow the actual rules.

    For services that include input caching, split the input portion:

    Input cost = uncached input tokens ÷ 1,000,000 × regular input price + cached input tokens ÷ 1,000,000 × cached input price

    If there are cache write fees, storage fees, or validity period restrictions, list them separately. Do not infer a fixed savings percentage just because caching is supported.

    For cross-service comparison, you can calculate a supporting metric:

    Blended cost per million tokens = actual CNY cost ÷ total input and output tokens × 1,000,000

    This metric must be labeled with the input-to-output ratio, caching conditions, and the test workload. Otherwise, the values are not directly comparable across different workloads.

    5. A Worked Example with Hypothetical Numbers

    The figures below only illustrate the calculation method. They do not represent the price of any real service.

    Suppose a business generates the following in one billing cycle:

    • 8 million input tokens in total;
    • 2 million output tokens in total;
    • an input price of 2 settlement units per million tokens;
    • an output price of 8 settlement units per million tokens;
    • an applicable multiplier of 1.2;
    • 90 CNY paid for 100 settlement units;
    • caching, fixed fees, and other charges not considered.

    First, calculate the base cost:

    8 × 2 + 2 × 8 = 32 settlement units

    Next, apply the multiplier:

    32 × 1.2 = 38.4 settlement units

    The CNY purchase cost per settlement unit is:

    90 ÷ 100 = 0.9 CNY

    Therefore, the CNY cost of these calls is:

    38.4 × 0.9 = 34.56 CNY

    The input and output total is 10 million tokens, so the blended cost per million tokens is:

    34.56 ÷ 10 = 3.456 CNY

    This result applies only to the input-output ratio and billing conditions above. It should not be treated as a fixed unit price for every business.

    Also, 34.56 CNY is the purchase cost of the consumed quota, not the cash spent in this period. The user paid 90 CNY. Whether the remaining quota can still be used, whether it expires, and whether it can be refunded require separate analysis.

    6. More Important Than the Listed Price Is the “Effective Task Cost”

    What a developer buys is usually not tokens themselves, but a usable answer, a qualified summary, or a successfully completed business process.

    Therefore, a metric closer to the business can be used:

    Cost per accepted task = total cost associated with a batch of tasks ÷ number of tasks that pass acceptance

    The total cost should include not only successful requests but also failed, retried, and fallback requests that generate charges under the rules. Check each billing item. Do not assume failed requests are free.

    For example, after a request times out, the client may not receive a complete result, but the upstream model may already have started generating. If the business retries immediately, extra usage may occur. In practice, set reasonable timeouts, limit retry counts, distinguish retryable errors, and use idempotency controls where the relevant API supports them.

    Similarly, a low-priced service that often produces unqualified results may require more rounds of correction. If you only compare first-call prices, you will miss the cost of additional input, regeneration, and manual review.

    7. How to Run a Fair and Repeatable Price Comparison

    7.1 Use the same set of real tasks

    The test set should cover the main business patterns, such as short Q&A, long-document analysis, multi-turn conversations, and structured output generation. Do not judge the cost of all business uses based on a single short question.

    Also fix or record the conditions, including system instructions, context scope, and output length limits. Services may differ in how they support these settings, and those differences should be documented in the test notes.

    7.2 Record cost together with quality

    Collect at least the following information:

    Dimension What to Record
    Usage Input, output, cache hit, and other billable quantities
    Cost