Free Web Search in LLM APIs: Pricing Changes and Cost Control
A major LLM provider recently made its built-in web search and page fetching free while keeping standalone search APIs paid. This article explains the different billing logic of the two approaches, why per-call pricing struggles in Agent scenarios, the business logic behind going free, and how to estimate per-request costs with a parameterizable example.
Recently, a major LLM provider announced that the web search and page fetching capabilities embedded in its API would change from paid to free. The following is based on the known details of this adjustment. Because such pricing rules change frequently, always refer to the provider’s official pricing page for the exact prices and terms.
1. Two Types of Web Search, Two Different Billing Models
LLM web access typically comes in two forms. The first is a standalone search or scraping API that developers call directly to retrieve web content. The second is a tool embedded in the chat model, where the model itself decides whether to search while generating a response. The two differ in what is billed, how calls are triggered, and how bills are structured. The table below summarizes the main differences.
| Aspect | Standalone search/scraping API | Built-in model search tool |
|---|---|---|
| Caller | The developer’s program calls it directly | The model triggers it autonomously during inference |
| Billing object | Charged per call | Free after this change; only model tokens are billed |
| Bill predictability | High—call counts are determined by the program | Low—depends on the model’s judgment |
| Typical use case | Data pipelines that only need retrieval results | Building full Q&A or Agent applications |
| Main risk | Call volume exceeding budget | Search results consuming context and driving up token usage |
Under this adjustment, the provider’s standalone API remains paid, while developers using its LLM inference capabilities can use the built-in search for free.
2. Why Per-Call Pricing Struggles in Agent Scenarios
Previously, the provider charged per call for both types of functionality but soon dropped the fee for built-in search. The root cause is that search volume in Agent applications is hard to predict. Developers typically hand search to the model as a tool, letting the model decide when to call it. A single response may trigger one search, or multiple searches and multiple page fetches.
This creates two concrete problems.
First, cost is difficult to estimate at the request level. When designing a conversation flow, developers can hardly set a cost ceiling for each user request. To control spending, teams sometimes restrict the model’s use of tools, which weakens the product’s capabilities.
Second, bills are hard to align with business logic. Platform billing counts calls, while business teams care about the cost of a specific feature, user segment, or task. Bridging these two perspectives requires extra logging and mapping, increasing accounting overhead.
After the change, the direct cost of search disappears, but search still carries an implicit cost. The web content returned by search is injected into the model’s context and billed as input tokens. Even with fewer paid searches, the token bill can still rise. Developers therefore need to watch both search frequency and token usage.
3. The Business Logic Behind Going Free
One interpretation is that the provider is lowering the barrier to using its LLM with free add-on tools, thereby driving consumption of inference tokens. This reading has some merit, but the provider’s actual rationale should be based on its official statements. What is certain is that scenario-based pricing gives the two user groups different payment paths: standalone API users pay per call, while built-in search users pay per token.
To judge whether a pricing change works in your favor, start by estimating the cost of a single request. The code below passes all unit prices in as parameters and contains no real prices from any provider. Before using it, replace the parameters with values from the official pricing page.
def estimate_request_cost(prompt_tokens: int,completion_tokens: int,search_calls: int,price_in_per_k: float,price_out_per_k: float,price_per_search: float = 0.0,) -> float:"""Estimate the cost of a single request.prompt_tokens must include all input tokens after searchresults are injected into the context.A price_per_search of 0 means built-in search is free."""token_cost = (prompt_tokens / 1000 * price_in_per_k+
