Model API Billing Update: Server-Side Search and Web Fetch Now Billed Only by Tokens
A large-model service provider will stop billing server-side search and web fetch as separate successful-request items for model calls and will instead charge them only through model token usage. This article explains the new billing boundary, the scenarios that trigger server-side retrieval, the resulting cost structure, and practical controls for token consumption.
The core of this change can be summarized in one sentence: when external information retrieval becomes part of the model-call chain, the billing unit switches from “successful retrieval requests” to “model tokens.”
1. What Changed in the Billing Rules
A large-model service provider has announced that starting at 12:00 Beijing time (UTC+8) on November 18, 2026, server-side search and web fetch triggered by model calls will no longer be separate billable items and will be billed only according to model token usage. Previously, search APIs and web fetch APIs were typically billed by the number of successful requests—for example, CNY 5 per 1,000 successful requests. After the change, if the model initiates retrieval during generation, the server-side execution of search and fetch itself incurs no additional charge; developers only need to focus on the input tokens and output tokens ultimately consumed by the request.
The boundary needs to be clear: “no longer billed” here refers to server-side actions triggered during model calls. If the application layer first calls an independent retrieval service on its own and then inserts the results into the prompt, that retrieval request is still handled under the rules of the corresponding API. Only retrieval and fetch that are bound to the same model call and completed automatically by the server fall under the new billing scope.
2. Why Search and Fetch Are Being Folded Into Token Billing
From a technical perspective, server-side search and web fetch aim to give the model fresh context. Search returns structured results, and fetch returns readable body text. Neither generates the model answer itself, but both can significantly affect the model’s input context. Token billing is essentially a unit for measuring the amount of information the model processes, so folding tool execution cost into tokens is closer to the logic of resource consumption than billing separately by request count.
For developers, this change simplifies the cost model: a single model call may involve multiple tool calls or none at all. If billed by “request count,” the number of calls fluctuates with the model’s autonomous decisions, making budgets hard to estimate. With unified token billing, cost can be roughly estimated once input and output volumes are known.
3. Which Scenarios Trigger Server-Side Search and Web Fetch
(1) Web-enabled tools. When web access is enabled, the model can decide before answering whether real-time information is needed and automatically initiate a server-side search.
(2) Web search tools in conversational APIs. Declare search capability in the tool list, and the model calls it as needed.
(3) Web fetch tools. After the model receives a URL, the server fetches the page and returns the title and body converted to Markdown text.
(4) Multi-step retrieval in Agent toolchains. The model first searches to obtain candidate links, then fetches several pages, and finally synthesizes an answer.
Note that “server-side” is crucial. It means search and fetch are performed by the API platform, so developers do not need to maintain crawlers, proxies, or browser environments locally, and the risk of being blocked by anti-scraping mechanisms is reduced.
Illustrative code:
request = {"model": "general-purpose LLM","messages": [{"role": "user", "content": "Look up today's industry news and provide a summary"}],"tools": [{"type": "search", # Illustrative: server-side search tool"name": "search_realtime","parameters": {"query": "November 18, 2026 large-model industry updates","max_results": 5}},{"type": "fetch", # Illustrative: web fetch tool"name": "fetch_page","parameters": {"url": "<URL to fetch>","format": "markdown"}}],"tool_choice": "auto"}response = call_model_api(request)
In actual billing, the tool calls and retrieval results above are no longer billed separately; they are uniformly counted toward the token usage of the request.
4. Impact of the Cost Structure Change
Before the change, a search request had a relatively fixed cost, and developers could control incremental cost by limiting the number of searches. After the change, search and fetch are no longer listed separately, but retrieval results entering the context necessarily consume tokens. In particular, when fetching web pages, a long page may contain thousands or even tens of thousands of tokens; if the model also generates a lengthy answer based on that content, output tokens will increase as well.
Therefore, the key to cost control is no longer “call search fewer times” but “keep the effective context brought by each search and fetch as concise as possible.” For example, if the model fetches five web pages to answer one question, and each page is 8,000 tokens, the input alone may reach 40,000 tokens. If that content is only partially relevant to the question, cost will rise noticeably. Reasonable practices include limiting the number of fetches, extracting key paragraphs from the body, or having the retrieval layer generate a summary before passing it to the model.
5. Practical Recommendations
5.1 Limit Tool Parameters to Avoid Unbounded Retrieval
In tool definitions, specify constraints such as search term length, number of results, and number of pages to fetch. Do not let the model freely fetch arbitrary links; otherwise, one conversation may trigger many web fetches, increasing latency and token consumption.
5.2 Preprocess Tool Output
If the platform allows the application layer to process tool results, returned content should be truncated, deduplicated, and summarized. For Markdown body text, prioritize retaining key information such as headings, paragraph openings, and list items. For structured search results, keep only titles, summaries, and links rather than inserting all complete metadata into the context.
5.3 Choose Automatic vs. Forced Search Appropriately
In scenarios requiring real-time information, you can force the model to search before answering. In general Q&A scenarios, use automatic mode so the model can decide whether a search is needed. Forcing a search on every request not only increases latency but also unnecessarily raises token cost for questions that could be answered with the model’s internal knowledge.
5.4 Caching and Reuse
In the same session, users may ask similar questions multiple times. The application layer can cache retrieval results to avoid repeated searches for the same keywords. For batch tasks, you can also deduplicate questions to be retrieved and process them together. Caching can reduce latency and the number of tool calls, but whether it reduces tokens depends on whether the platform supports context caching and should be evaluated against the actual billing rules.
5.5 Fallback and Fault Tolerance
Server-side search may fail due to network issues or abnormal responses from the target site. The application layer should design fallback strategies: if search fails, continue answering with the model’s own knowledge; if fetch fails, answer with search summaries; after a timeout, either retry retrieval once or terminate the tool call. These branches should be logged to help locate cost anomalies.
6. Monitoring and Tuning Metrics
It is recommended to record the following metrics at the call layer:
- Input/output token count per model request;
- Whether search or fetch is triggered, and which tool type is triggered;
- Search keywords, fetch URLs, and returned content length;
- Tool execution time and overall request time;
- Failure rate, retry count, and cache hit rate.
These metrics can help identify high-cost, low-benefit prompts. For example, if a prompt always fetches multiple long web pages but the final answer only needs a short summary, then prompt adjustments or tool parameter limits should reduce the amount of fetching.
7. Summary
The essence of this billing change is to further integrate external retrieval capability into the model’s built-in context capability. In the short term, the benefit for developers is a clearer billing scope: no separate budget for search request counts. In the long term, token consumption needs to be managed more carefully, especially the long context brought by web fetching. Whether RAG and Agent applications can run at low cost does not depend on whether search is enabled, but on whether each retrieval can produce high-value, low-redundancy context.
