Large Model Platform Makes Server-Side Web Search and Page Fetching Free, Billing Only by Token Usage
This article explains a recent API pricing change from a large model platform. Server-side web search and web page fetching no longer carry separate per-request fees and are now billed only through model token usage. It covers what the change includes, how the new billing works, how it affects costs for RAG and Agent applications, and what developers should do in response.
I. Background: From Per-Request Pricing to Per-Token Billing
Recently, a large model platform in China changed its API pricing. From the date the new pricing took effect, search and web fetching that run during model calls are no longer billed as separate items. They are now part of the model’s token-based billing. In other words, developers who used to pay for each search request and each fetch request now pay only for the model tokens they consume.
The earlier pricing model worked differently. About one month before this change, the platform launched two server-side interfaces, one for web search and one for web fetching. Both are built on the platform’s in-house search engine and are designed to give AI Agents and RAG (Retrieval-Augmented Generation) applications access to real-time web content. Back then, billing was based on request count: a fixed fee applied to every set number of successful requests. The search interface retrieved web pages based on a query and returned structured results. The fetch interface extracted the content of a single web page and returned its title and body text in Markdown format.
On the surface, moving from per-request billing to per-token billing looks like a change in how usage is counted. In substance, it reflects a rethinking of where external tool calls fit within the overall inference workflow.
II. Key Points of the Change
- Scope of the free capabilities
The change covers search and web fetching triggered during model calls. These are not external systems that developers build and run on their own. They are web capabilities executed on the model service side. When the model determines that it needs real-time information, the server runs a search or fetch request on its behalf and injects the results into the context so the model can continue reasoning.
- Triggering scenarios
According to public information, the following call methods trigger server-side search: first, the platform’s built-in web connectivity tools; second, web search tools provided in APIs that are compatible with third-party protocols; and third, built-in search tools in Responses-style APIs designed for structured workflows. These three methods cover the main integration patterns in use today. Whether a developer uses a Chat-style interface or an API designed for Agent orchestration, the same billing rules apply.
- Unified billing
After the change, the cost of the entire call chain depends only on model token usage. This means:
- Search and fetching do not create any additional charges.
- Search results and the body text of fetched pages are injected into the context as input. They use up input tokens and are billed as usual.
- Output tokens that the model generates from the retrieved results are billed at the standard rate.
As a result, developers need a new cost model. The “execution cost” of external capabilities drops to zero, but “context cost” remains. It scales directly with the length of the returned content.
III. Practical Impact on Developer Costs
- Costs drop noticeably for small and medium applications
Consider a typical RAG question-answering application. After a user asks a question, the system searches, fetches several web pages, and then has the model summarize them into an answer. Under per-request billing, every successful search or fetch incurs a fee. At volumes of tens of thousands of calls per day, those charges add up. Under per-token billing, the per-request fees for these intermediate steps disappear. Total cost depends mainly on model inference, which noticeably eases cost pressure for small and medium teams.
- Large-scale Agent workloads need to be recalculated
For complex Agent applications that run multiple rounds of searching and fetching, the picture is more nuanced. Individual requests are no longer charged, but the structured search results and the Markdown body of each fetched page still enter the context and push up input token consumption. If an Agent loops through more than ten rounds of search and fetch within a single reasoning chain, the accumulated context tokens may far exceed the length of the user’s original question. Cost optimization should therefore shift from reducing the number of requests to controlling the size of the context injected.
- Estimating costs
Developers can estimate the cost of each request after the change with a simple formula:
Total tokens = user input + Σ(search result summary length) + Σ(fetched page content length) + model output
Example pseudocode:
def estimate_tokens(user_query, search_results, fetched_pages, output):total = count_tokens(user_query)total += sum(count_tokens(r) for r in search_results)total += sum(count_tokens(p.content) for p in fetched_pages)total += count_tokens(output)return total
Based on this estimate, applications can add strategies such as truncation, summarization, and relevance filtering. These prevent full page text from being copied into the context unchanged.
IV. Implications for Application Architecture
- Trimming retrieved content becomes a key optimization
Since requests are free but tokens are billed, the best strategy is to search broadly and inject selectively. Let the model issue as many search requests as it needs to improve recall, but strictly trim the results before injecting them into the context. For example, keep only the passages most relevant to the question, and summarize long documents in sections. In effect, cost control moves from the API call layer to the context engineering layer.
- Server-side tool calls reduce engineering complexity
Because the server runs searches and fetches on the developer’s behalf, developers no longer need to maintain their own crawlers, proxy pools, anti-bot handling, or web parsing infrastructure. They also do not need to deduplicate and clean search results. For teams without strong data engineering capabilities, this lowers the barrier to building real-time question-answering, market data lookup, and research summarization applications.
- Observability should be built in from the start
After a billing change like this, developers should set up fine-grained monitoring of token consumption. Track the share of user input, tool returns, and model output separately. A common approach is to parse the usage fields in each response, report them to a centralized logging and monitoring system, and set alerts that flag unusual cost spikes caused by context growth. General-purpose logging and monitoring services can cover this need.
V. Industry Perspective: The Evolution of External Tool Billing
From a broader view, this change reflects a wider trend in the large model service market. The unit price of basic inference tokens keeps falling, while value-added capabilities such as web connectivity, code execution, and file parsing are moving away from separate line items. Instead, they are being bundled into token pricing or billed on a model of “free capability, pay for usage.” For enterprise customers, this means simpler price lists and more predictable cost models. For platforms, lowering the barrier to external capabilities encourages developers to build richer Agent ecosystems.
Free capabilities still carry real retrieval and bandwidth costs behind them. Whether the platform will keep this approach over the long term, or rebalance through small adjustments to token rates, remains to be seen. When making long-term architecture decisions, developers should not assume that external capabilities will always be free. Instead, they should keep the billing integration in an abstraction layer so the application can adapt to different pricing rules.
VI. Practical Recommendations
- Act now: Update internal cost models and budget assumptions. Remove the former request-count fee line items and calculate costs based on tokens.
- Optimize context: Set maximum injection lengths for search and fetch results, and trim them based on relevance ranking.
- Strengthen monitoring: Track token usage by category and set alerts to prevent runaway costs from multi-round Agent loops.
- Stay flexible: Keep a billing adapter interface in the tool-calling layer to handle future pricing changes.
- Measure the benefit: Compare actual costs before and after the change for representative business scenarios to confirm which architecture optimizations matter.
Overall, this pricing change benefits applications that rely on web connectivity. It also shifts the focus of optimization toward context engineering and fine-grained token management. Developers who restructure their cost control strategies accordingly can build applications that retrieve more thoroughly and answer more reliably within the same budget.
