Token Costs, Not Just Benchmarks: A Practical Guide to Selecting Self-Developed AI Models

    As cloud vendors release self-developed AI models at lower unit prices, enterprises need to evaluate total token consumption, promotional versus list pricing, retry rates, and ecosystem integration rather than benchmark scores alone. This article explains the token cost formula, compares promotional and list-price budgets, examines how toolchains and scenario data create switching costs, and outlines a practical evaluation workflow with a model gateway code example.

    1. Background: Why Self-Developed Models Became a New Growth Driver for Cloud Vendors

    A major technology vendor released a set of self-developed AI models at its annual technology conference, covering coding, security, image, and speech. Two code models for everyday enterprise coding attracted the most attention. The vendor’s core claim was that the price is less than half that of leading models, while production quality is close.

    This is not an isolated event. Early cloud vendors mainly relied on leading model providers to fill AI capability gaps. Now, with accumulated training data, optimized inference engineering, and improved cost control, more cloud vendors are using self-developed models and cost-effectiveness as competitive tools. For enterprise users, the number of available models has increased, and prices have generally moved downward. For the industry, AI capability supply is shifting from a single leading model to a structure with multiple suppliers plus ecosystem binding.

    The real question enterprises need to answer is: if the model is cheaper, will the bill also be cheaper? This article examines that question from three angles: benchmarks, billing, and token consumption, and then provides an actionable method for model selection and migration.

    2. High Benchmark Scores Do Not Necessarily Mean Lower Bills

    2.1 Why Benchmark Results and Actual Costs Diverge

    The vendor’s published comparison data was as follows: on a set of enterprise coding tasks, the self-developed model achieved an average score of more than 95% of the leading model, while its unit price was only a small fraction of the other model’s price. These numbers need to be treated cautiously. The vendor did not explain the task composition of each test, the sample size, or how input and output tokens were counted, so external parties cannot reproduce the conclusion from the published materials. Some practitioners also noted that the test period used promotional pricing; after list pricing is restored, the cost of completing the same work will rise significantly.

    The core issue is that billing is based on tokens, not tasks. For the same requirement, different models may generate reasoning processes of different lengths and may require different numbers of retries. If a model with a lower unit price consumes more tokens, the final bill may not be lower.

    2.2 The Correct Cost Formula

    Cost estimation should use the following formula:

    1. actual cost = unit price (CNY per million tokens) × average token consumption × number of calls ÷ 1,000,000

    The division by 1,000,000 is necessary because the unit price is expressed per million tokens, while token consumption is expressed in individual tokens. If this step is omitted, the result will be magnified by one million times.

    Here is a hypothetical example. The numbers are for demonstration only and are not the real prices of any vendor. A team makes 100,000 calls per day, with an average consumption of 2,000 tokens per call.

    • Promotional price of CNY 2 per million tokens: 2 × 2,000 × 100,000 ÷ 1,000,000 = CNY 400 per day
    • List price of CNY 5 per million tokens: 5 × 2,000 × 100,000 ÷ 1,000,000 = CNY 1,000 per day

    For the same task, the daily cost at the list price is 2.5 times the promotional price. Without this calculation, budgets can easily be set based on the promotional price and then be forced to adjust later.

    Failed calls must also be included. Effective cost can be estimated as “actual cost ÷ task success rate”. Assuming an 80% success rate and using the list price, the daily cost per successfully completed task is 1,000 ÷ 0.8 = CNY 1,250.

    2.3 Calculate Promotional and List Prices Separately

    Limited-time low pricing is not new in the cloud industry. Early cloud servers commonly used “free quota plus tiered pricing” to lower the barrier to trial. Usage-based platforms also often use similar methods, allowing developers to complete integration, tuning, and habit formation at a low-cost stage. Once the call path is embedded in a business pipeline, switching costs rise. Even if prices are later adjusted upward, the incentive for users to leave is weakened.

    Therefore, enterprises should calculate two tables at the same time:

    Calculation item Promotional price List price
    Unit price (CNY per million tokens) Fill in the vendor’s published promotional price Fill in the official list price
    Average daily token consumption Measured value Measured value (same as promotional price)
    Daily cost Calculate by formula Calculate by formula
    Budget basis Reference for pilot only Basis for long-term budgeting

    Budgets should be based on the list price. The promotional price can only be used to verify feasibility, not as a long-term cost basis.

    3. Ecosystem Binding: A New Moat in Model Competition

    The released models share one common feature: deep integration with the vendor’s own office and development tools. Code models can be embedded directly into mainstream IDE plugins and research and development pipelines. The speech transcription model targets vertical scenarios such as healthcare; the vendor says it processes tens of millions of real conversations each month and claims that error rates in multilingual scenarios have dropped significantly.

    This shows that the focus of model competition is shifting from “single-point model capability” to system capability made up of “model + toolchain + scenario data”. This is reflected in three areas:

    1. Entry-point binding: Models are built into coding assistants and documentation tools that developers use daily, making invocation a default option rather than an active choice.
    2. Scenario data feedback: Real corpus accumulated in vertical scenarios can continuously improve the model’s accuracy in specific domains, which general-purpose models will find difficult to match in the short term.
    3. Bundled billing: Model calls are included in existing subscription packages, reducing enterprise procurement and approval steps.

    For enterprises, evaluating AI capability requires not only looking at model metrics but also at the integration cost with existing R&D workflows and data compliance systems. A model with a lower unit price may require major pipeline changes or additional compliance reviews, and its actual cost may far exceed the sticker price.

    4. Selection in Practice: An Actionable Evaluation Workflow

    Facing frequent price cuts and密集 model releases, enterprises should establish an evaluation workflow. “密集” is not acceptable in the final English article; this sentence should read: Facing frequent price cuts and a dense stream of model releases, enterprises should establish an evaluation workflow. The following stages are recommended.

    Step 1: Divide tasks into profiles. Classify tasks into high-complexity reasoning and high-frequency, low-difficulty work. The former is sensitive to model capability and should prioritize testing leading models; the latter is cost-sensitive, and cost-effective models are usually sufficient.

    Step 2: Run a canary test with real business data. Extract samples by task type from business logs. Prepare at least 200 samples for each task type, covering normal inputs and edge inputs. Test candidate models one by one and record the following metrics:

    • Success rate: the proportion of outputs that pass manual or automated validation. Set the pass line at no lower than 95% of the leading model’s result.
    • Average token consumption: count input and output tokens separately.
    • Response latency: record the P95 value and separately count requests that exceed the business timeout threshold.
    • Failure retry rate: the proportion of requests that need retries before succeeding.

    The canary period should be two weeks and should cover at least one complete business peak cycle.

    Step 3: Model the long-term cost curve. Calculate monthly costs at both the promotional price and the list price, and simulate cost changes under two scenarios: 30% and 100% business volume growth. The budget should be based on the list-price scenario.

    Step 4: Design a replaceable access layer. Use a unified model gateway to isolate business code from specific model interfaces, so that switching models only requires configuration changes. The following example requires the following preparation before it can run:

    • Install dependencies, such as pip install openai or the official SDK of the vendor in use.
    • Configure the API key in an environment variable; do not write it into the code.
    • The provider must implement an invoke(prompt, **kwargs) method and return an object containing text and usage (including input_tokens and output_tokens).
    1. import logging
    2. import time
    3. from dataclasses import dataclass
    4. from typing import Protocol
    5. logger = logging.getLogger("model_gateway")
    6. @dataclass
    7. class Usage:
    8. input_tokens: int
    9. output_tokens: int
    10. @dataclass
    11. class Response:
    12. text: str
    13. usage: Usage
    14. class Provider(Protocol):
    15. def invoke(self, prompt: str, **kwargs) -> Response: ...
    16. class ModelGateway:
    17. def __init__(self, provider: Provider, max_retries: int = 2):
    18. self.provider = provider
    19. self.max_retries = max_retries
    20. def complete(self, prompt: str, **kwargs) -> str:
    21. last_error = None
    22. for attempt in range(self.max_retries + 1):
    23. try:
    24. resp = self.provider.invoke(prompt, **kwargs)
    25. self._log_usage(resp.usage, attempt)
    26. return resp.text
    27. except Exception as exc: # In production, distinguish retryable from non-retryable errors
    28. last_error = exc
    29. logger.warning("Call failed; retry %d: %s", attempt, exc)
    30. raise last_error
    31. def _log_usage(self, usage: Usage, attempt: int) -> None:
    32. logger.info(
    33. "attempt=%d input_tokens=%d output_tokens=%d",
    34. attempt,
    35. usage.input_tokens,
    36. usage.output_tokens,
    37. )