LLM API Billing Update: Server-Side Search and Fetch Included in Token Pricing, Standalone APIs Still Charged Per Call

    An LLM provider has updated its billing policy: server-side web search and page fetching triggered autonomously during model inference are now billed through token usage instead of per-call fees, while standalone Search API and Fetch API calls remain charged per 1,000 successful requests. This article explains the new billing logic, the technical background behind tool-call pricing, the practical benefits for developers, a companion toolkit update, and cost optimization best practices.

    1. The Core Logic Behind the Billing Change

    In real-world LLM applications, model calls often require external information retrieval—for example, real-time Q&A, web content aggregation, or knowledge base updates. Traditionally, providers charged a separate per-request fee for these “tool calls.” This meant that for search-heavy workloads, total cost equaled token fees plus tool-call fees, with the latter unrelated to output token volume—a significant extra expense.

    The key change is this: any server-side search or web fetching autonomously triggered by the model during inference is now included in token-based billing. In other words, as long as a developer lets the model complete the “retrieve-then-answer” flow within a single model call, billing is based solely on input and output token counts—regardless of how many internal searches or fetches were executed. This greatly simplifies the cost model. Developers no longer need to track each internal tool invocation; they only need to monitor total token usage, making budgeting and optimization far more predictable.

    It is important to note that this change does not apply to the standalone Search API and Fetch API. If developers call these two endpoints directly—for upfront retrieval or batch scraping—they are still billed at the standard rate of 5 CNY per 1,000 successful requests. This differentiated design reflects the provider’s distinction between “embedded tool calls” and “explicit tool APIs”: the former is part of the model’s reasoning pipeline, an auxiliary action during inference; the latter is an independent data-retrieval operation actively initiated by the developer, suited to higher-frequency, more controllable scenarios.

    2. Technical Background: Why Were Search and Fetch Charged Separately?

    Before models supported built-in web access, developers had to orchestrate retrieval themselves: call an external search API to get result snippets, then assemble them into the prompt. This approach had three problems:

    1. Complex context management: Search results are often verbose and noisy. Dumping them into the context wastes tokens and can distract the model.
    2. High latency: Multiple sequential external requests significantly increase end-to-end response time.
    3. Uncontrollable cost: Search APIs charge per call, so fees accrue regardless of whether the results are useful.

    To address this, mainstream providers introduced “server-side search”—the model automatically triggers retrieval during generation as needed, packages the results into a specific format, and injects them into the context. This reduces orchestration overhead, but per-call pricing still burdened certain applications (such as intelligent customer service and public opinion monitoring).

    By folding embedded search and fetching into token billing, this update effectively lowers the barrier to retrieval-augmented generation (RAG). Developers no longer need to worry about occasional multi-round searches blowing up their bills and can instead focus on prompt engineering and output quality.

    3. Practical Benefits and Implications for Developers

    3.1 More Transparent Cost Structure and Easier Budgeting

    Suppose a developer builds a legal document parsing application where the model frequently fetches statute texts. Under the old rules, each call might trigger 0.5 searches and 0.2 fetches, adding hundreds of CNY in tool fees per thousand calls. Under the new rules, these costs are absorbed into token billing, so the developer only needs to estimate cost based on output length—and token prices are relatively stable and quantifiable. For high-frequency, low-token simple queries, tool fees may disappear entirely, achieving “zero marginal tool cost.”

    3.2 Incentives for Better Prompt Design

    Because token billing now includes the hidden costs of search and fetch, developers have a strong incentive to avoid unnecessary retrieval. For example, a system prompt can control whether the model should go online, or structured outputs can let the model give a reasonable, conservative answer even without external information. This positive incentive pushes applications to decide intelligently when retrieval is needed, rather than triggering it blindly.

    3.3 Standalone APIs Remain Per-Call, Suited for Batch Workloads

    For offline data analysis and knowledge base construction, developers typically need to scrape large volumes of pages in advance. Here, the standalone Fetch API is more appropriate: at 5 CNY per 1,000 calls, it is relatively inexpensive and independent of token usage. Developers should clearly distinguish between the two scenarios:

    • During online inference: Prefer model-triggered embedded search to benefit from merged token billing.
    • During preprocessing: Use standalone APIs for batch data pulls, avoiding stuffing large amounts of web text into the model context and saving tokens.

    4. Toolkit Update: Changes to the Default Search Strategy

    Alongside the billing change, the provider released a new toolkit version (v0.2.2-rc.5, a pre-release) that primarily revises the default search behavior. According to reliable sources, this version optimizes result ranking, deduplication, and the robustness of web content extraction.

    Specifically, the new version adopts a hybrid retrieval strategy by default, combining keyword matching with semantic similarity to reduce irrelevant results that waste tokens. The HTML parsing logic during fetching has also been enhanced to more accurately strip ads, navigation, and other semi-structured noise, improving the cleanliness of extracted body text.

    Notably, this toolkit update only affects server-side behavior and does not change how developers use the APIs. However, developers who want the updated behavior should check the provider’s version compatibility notes. Since this is a pre-release version, it is recommended to validate it in a non-production environment first to ensure output quality is not affected.

    5. Cost Optimization Best Practices

    5.1 Evaluate the Frequency and Token Ratio of Embedded Calls

    Developers can use logging tools to record how many searches the model triggers per request and the associated token consumption. Identify anomalous cases with “high search counts but low token output” and optimize system prompts accordingly—for example, adding a constraint like “only search when the user explicitly requests the latest information.”

    5.2 Use Caching to Reduce Repeated Fetches

    For fixed sources (such as a company website or news sites), build a short-TTL cache at the application layer. When the model needs to fetch the same URL, return the cached result first. This avoids higher token overhead from repeated fetches, since fetched content itself counts as input tokens. While caching does not directly affect the billing rules, it reduces overall token consumption.

    5.3 A Decision Matrix: Standalone APIs vs. Embedded Calls

    Use Case Recommended Approach Rationale
    Real-time user questions needing latest news Model-embedded search Cost tied to tokens; convenient
    Batch knowledge base construction Standalone Fetch API Per-call pricing; suited to offline work
    Post-processing search results Standalone Search API Flexible control over query parameters
    Simple factual queries (no web needed) No search triggered Saves tokens

    6. Conclusion and Outlook

    This billing update sends a clear signal: providers are internalizing tool-calling capabilities as a fundamental model feature rather than a profit center. This business model mirrors the cloud computing trend of bundling bandwidth into compute instances—the goal is to let developers focus on core logic instead of infrastructure chores.

    For developers, the recommended path is to actively adopt embedded calls under the new rules and re-examine existing standalone API usage: Can it be merged into model calls? Can better prompting eliminate unnecessary retrieval? At the same time, keep an eye on toolkit version updates and optimize default search behavior to obtain more accurate context, ultimately improving both response quality and cost efficiency of LLM applications.

    Looking ahead, as context windows grow larger and retrieval capabilities continue to improve, we can expect more complex multi-step reasoning applications—such as automated research and data insight reports—to emerge. Simplified billing is a key step in unlocking that innovative potential. Developers should adapt early: treat embedded tool calls as the default option in technical selection, while keeping standalone APIs as the fallback for high-throughput batch processing.