LLM API Adds Built-in Web Search and File Parsing, Reshaping Agent Cost Structures
This article explains how a major model platform's API now lets chat requests use built-in web search, deep-thinking search, file input, and link reading. It also covers the standalone Search, Fetch, OCR, ASR, and TTS endpoints, how server-side tool calling reduces the orchestration code developers must write, and how the billing model changes the cost of building agents.
1. From Self-Built Tools to Built-in Tools: Expanding the API’s Scope
Previously, developers who wanted an agent with real-time information retrieval or document processing had to assemble a complex stack themselves. They connected an external search service, added a document parsing library, and wrote substantial glue code to combine model outputs with tool results through splicing, reranking, and context management. This process was tedious and easily introduced hidden costs, such as state synchronization and error handling.
A major model platform has recently upgraded its API. Capabilities that previously existed only inside the platform’s own application, including web search, deep-thinking search, file input, and link reading, are now exposed directly in the chat API. Developers can enable them on demand. This move shows that model providers are shifting tool use from something developers build themselves to a standardized service the platform provides. The platform also released standalone interfaces for search, web fetching, OCR, speech recognition, and speech synthesis. Together, these form a two-layer architecture: conversational tools and atomic capabilities.
2. The Core Value of Server-Side Tool Calling: Removing the Glue Layer
The most significant change in this release is not the new feature switches. It is that tool calling and context assembly have moved entirely to the server side. In the traditional approach, developers had to maintain a loop in which the model calls tools several times within one conversation: issuing a search, retrieving results, truncating context, and sending another request to the model. Each step required careful control. Otherwise, the context window could overflow or the logic could break down.
Now, developers only enable the relevant tools in an API request. The model decides on its own when to search and which links to read, and it completes multiple tool operations within a single conversation flow. According to the documentation, one turn supports more than twenty tool operations, including searches, opening web pages, and finding text within a page. The server manages the injection and truncation of tool output. The client only needs to maintain conversation state and render the final result. In effect, the platform takes on the most difficult orchestration work, which substantially lowers the complexity and failure rate of agent development.
Take file input as an example. The feature supports PDF, Word, and PowerPoint files, with a maximum of 100 MiB and 1,000 pages per file. Developers do not need to pre-parse documents. They can upload the original file directly, and the model can read its contents. This relies on the platform’s in-house parsing and vectorization pipeline, which is transparent to most developers.
3. Standalone Interfaces: Building Flexible Tool Chains
Beyond the tool switches in the chat API, the platform offers five interfaces that can be called separately: Search, Fetch, OCR, ASR (speech recognition), and TTS (speech synthesis). These interfaces are not tied to the conversation flow, so they suit developers building custom pipelines. For example, an application that must process many web links asynchronously could first fetch page content in bulk through Fetch, extract text from images with OCR, and then send everything to the model for inference. This atomic design gives developers more flexibility. It also means that reproducing the results of the in-chat tools still requires implementing some orchestration logic yourself.
From an architectural perspective, this design productizes part of how the platform’s own application works: searching while reasoning, reading files, and reading links. It exposes that behavior to external developers. It does not replace the value of the standalone interfaces. Instead, it offers a ready-to-use shortcut, so developers at different skill levels can choose what fits their needs.
4. Reshaping Cost Structures: From Hidden to Explicit
Cost is one of the top concerns for developers. Before this release, developers who needed search had two options: free third-party search libraries, whose quality and stability were not guaranteed, or paid professional search APIs, whose costs were relatively fixed. Document parsing and OCR usually required dedicated services billed by usage.
The platform now charges per call for search and fetching. This per-call billing applies only to server-side processing. Tool calls within a conversation follow the existing token-based billing. In effect, the cost structure moves from fixed subscriptions plus hidden integration costs to pay-per-use billing with minimal integration overhead. For low-concurrency applications, total spending may drop significantly. For agents that rely heavily on search, the cost per call grows linearly with the number of tool operations. However, the development effort saved is often worth more.
To check actual costs, the author made several rounds of calls with a test API key. The author first completed a baseline conversation, then tested web search, deep-thinking search, link reading, and file input separately, and finally made one standalone Search call. The billing for that day showed 13 API requests, about 17,000 tokens, and a total cost of 0.05 yuan (CNY), or less than 0.004 yuan per request on average. At this scale, the author notes that a lightweight agent handling a thousand calls a day would have almost negligible tool-related costs, as long as the number of tool operations per turn stays under control.
The change in cost structure is not a simple reduction, however. For scenarios with frequent searches, developers should design prompts carefully to guide the model toward fewer unnecessary tool calls. For example, in deep-thinking mode, the model may search the same topic repeatedly out of excess caution, which increases token consumption. The best practice is to explicitly limit the search scope or inject the necessary background information into the context.
5. Deeper Implications for Agent Development
This upgrade represents a shift in development paradigms. It suggests that future agents will be built more declaratively than imperatively. Developers describe the goal, and the platform handles understanding the task and scheduling the underlying tools. This may attract more developers without specialized AI engineering backgrounds, since they no longer need deep expertise in search algorithms, document parsing, or state management.
At the same time, the platform must meet higher standards for stability and security. With the server handling all tool calls, the platform has to keep latency low under high concurrency and filter malicious content strictly. For enterprise applications, data privacy is also a key consideration. File contents and search results pass through the platform’s servers, so developers handling sensitive data still need to evaluate whether a self-built pipeline is necessary.
6. Outlook: From Conversation to General-Purpose Execution
As model providers build more capabilities into their APIs, agents may evolve from conversational encyclopedias into systems that can take action. Search and file reading are only the first steps. Capabilities such as task planning, calling third-party business systems, or controlling physical devices may also become standardized over time. For developers, now is a good time to reexamine their tech stacks. Which parts should rely on platform capabilities, and which should stay custom-built? The answers will shape the core competitiveness of applications in the next phase.
Regardless, moving tools to the server side is a clear trend. Teams that adopt this change early may be able to turn ideas into products faster and iterate on useful intelligent applications at a lower marginal cost. This may be the most far-reaching significance of this API upgrade.
