LLM API Billing Update: Built-In Search and Web Scraping Now Covered by Token Fees

    A major LLM service provider has revised its API billing rules: server-side web search and page scraping triggered automatically during model inference are no longer charged per call, and developers pay only for consumed tokens. This article explains the new billing boundary, compares the cost structures of model-built-in search versus standalone search and scraping APIs, and outlines practical cost accounting and optimization steps for agent and web-retrieval applications.

    1. Core Changes to the Billing Rules

    An LLM service provider recently adjusted its API billing rules. Under the new policy, server-side web search and web content scraping that are automatically triggered during model inference are no longer billed as separate items by call count. Developers pay only for the tokens the model actually consumes.

    There is an important boundary to note: only server-side search and scraping triggered during a model call are covered. If developers bypass the model and call standalone search APIs or web scraping APIs directly, they still pay by successful request count. The published list price shows both standalone interfaces at CNY 5 per 1,000 successful requests.

    At the same time, the vendor’s open-source agent development framework released a new pre-release version with changes to its default search strategy. When using the vendor’s own models, the framework defaults to the model service’s built-in search, so no per-call search charges are incurred. When connecting to third-party models, it falls back by default to the standalone search API, and fees are still calculated by API call count.

    2. Comparing the Cost Models of Two Search Trigger Paths

    The key to understanding this change is to distinguish between two different invocation paths:

    Path 1: Model-native invocation (no separate search charge)

    When sending a request to the model, the developer declares the available search or scraping tools. During inference, the model decides whether web access is needed. Once triggered, search and scraping happen on the server side, and the results are injected as context. Ultimately, the developer is billed only for input and output tokens.

    1. POST /chat/completions
    2. {
    3. "model": "xxx",
    4. "messages": [...],
    5. "tools": [{"type": "web_search"}]
    6. }

    Path 2: Standalone API calls (charged per request)

    The developer directly requests a search API or scraping API from their own business code, then inserts the results into the prompt. Each successful request is billed once, independently of model token fees.

    From a cost-structure perspective, Path 2 can scale quickly in multi-turn conversations and multi-step agent tasks. A task that requires five rounds of search incurs five per-call charges. Path 1 converts part of that cost into token consumption, which is usually more controllable. This is why the change is widely seen as a significant benefit for agent applications that rely heavily on web access.

    3. Impact on Developer Cost Accounting

    Before making an integration decision, it is advisable to quantify your own usage profile:

    1. Measure search trigger frequency: On average, how many searches does the model trigger per agent task? If a task triggers three or more searches, the model-native path is often more cost-effective.
    2. Estimate token increment: Server-side search results enter the model as context, which significantly increases input tokens. As a rough estimate, one web search injection may add thousands of input tokens. If the token cost is higher than the per-call fee after accounting for token pricing, a standalone API plus result trimming may be more economical.
    3. Check framework default behavior: If you use an open-source agent framework, verify whether the default search channel has changed after upgrading to avoid an unexpected billing path switch. Explicitly specify the setting in configuration rather than relying on defaults.
    1. # Explicit configuration example (pseudocode)
    2. agent = Agent(
    3. model="target-model",
    4. search_backend="model_builtin", # or "standalone_api"
    5. max_search_rounds=3,
    6. )

    4. General Practices for LLM Application Cost Optimization

    Regardless of which path you choose, the following engineering practices can effectively reduce the cost of web-retrieval applications:

    1. Result caching

    Identical or similar queries are commonly repeated within a short period. Build a cache layer based on a normalized hash of the query and set a reasonable TTL, such as 5 minutes for news content and 24 hours for knowledge content. Cache hits can be returned directly, avoiding repeated search triggers.

    2. Context trimming

    Scraped web page content often contains a large amount of navigation, advertising, and other noise. Before injecting it into the model, perform main-content extraction, deduplication, and truncation, keeping only paragraphs strongly relevant to the question. This reduces token consumption and can also improve answer quality.

    3. Concurrency and retry governance

    Under per-call billing, failed requests are usually not charged, but uncontrolled concurrency can cause rate limiting. Implement retries with exponential backoff and token-bucket rate limiting, and use message queues to smooth peak traffic.

    4. Monitoring and budget alerts

    Include search trigger counts, token consumption, and per-task cost in logging, monitoring, and alerting systems. Set daily and weekly budget thresholds, and automatically degrade when limits are exceeded, such as disabling web access or switching to a cheaper model. On cloud platforms, such capabilities can often be assembled from general logging, monitoring and alerting, and object storage services.

    It is worth noting that this billing adjustment follows a series of other actions. Two days earlier, some users reported that long conversations on the web and app could not continue, the single-input limit was shortened, and daily conversation quotas were restricted. Some long sessions inactive for more than seven days were terminated by the system with the reason “insufficient compute.” This reflects the pressure on compute supply as inference demand grows rapidly, and refined management of free quotas has become common among leading model providers.

    On the product side, the vendor has iterated frequently. A new model version released in mid-October reached a maximum pass rate of 77.0% on software engineering benchmarks, up from about 74% in the previous version. At the highest score, the average cost per task was about CNY 1.3. In early November, its open-source agent platform introduced a “Creation Mode” that allows users to describe requirements in natural language, with the agent automatically writing, installing, and running plugins to turn requirements directly into usable tools.

    6. Summary

    The essence of this adjustment is to merge web retrieval from a standalone billing item into the token-based billing system for model inference. This lowers the marginal cost of agent applications and uses framework defaults to guide developers toward model-native capabilities. For developers, the core actions are threefold: clarify your own trigger paths, use data to calculate the real cost of both paths, and implement general optimizations such as caching and trimming. In an environment of continued compute scarcity, billing rules and quota policies may still change frequently. Building a flexible adaptation layer and a cost monitoring system is the more durable approach.