Native API Integration of Search and Document Parsing Reshapes AI Agent Cost Structures
This article examines how a major AI platform's chat API now includes built-in tools such as web search, document parsing, and link reading. It traces the product rollout over the past month, breaks down the two layers of capabilities, and explains how pay-per-use billing and server-side orchestration change the cost of building AI agent applications. It also outlines practical points for testing these features.
From Assembly to Native: Built-In Tools in Chat APIs
Recently, leading AI service providers have adjusted the boundaries of their large model APIs. The most notable trend is that peripheral capabilities developers previously had to integrate themselves, such as web search, document parsing, and link reading, are now built directly into the chat interface. On the surface, this looks like a change in feature toggles. In practice, it marks a key shift in AI application development from a do-it-yourself assembly model to a platform-native one.
1. A Three-Step Product Evolution: From Standalone Endpoints to a Full Feature Bundle
The platform’s feature releases over the past month followed a clear sequence, which points to a deliberate product strategy.
Phase 1: Infrastructure Opening (Mid-October)
The platform first opened standalone endpoints for its in-house search engine, covering search and web page fetching as two separate APIs. According to the official technical documentation, the search index covers hundreds of billions of web pages and handles hundreds of millions of search requests per day. In the same period, the core large model was upgraded. Its context window expanded to the million-token level, and its maximum output length increased to 384K. This provided the model foundation for processing long documents and running multi-round deep searches.
Phase 2: Billing Model Adjustment (Early November)
The platform began charging per call for server-side search and fetching, which had previously been free within its official apps. This change signaled the start of a commercial loop for its APIs. It also prepared the cost offsets needed for the large-scale opening of capabilities that followed.
Phase 3: Full Feature Bundle Launch (Mid-November)
The chat API officially embedded several tool capabilities, and multiple standalone feature endpoints were released at the same time. With this release, the platform moved from single model output to an integrated service that combines a model with a tool chain.
2. Architecture: The Logic Behind the Two-Layer Capability Matrix
The newly opened capabilities fall into two clear layers. Developers can learn a lot from the design logic behind them.
Layer 1: Built-In Tools in the Chat API
Compatible with mainstream industry API protocols, the chat API lets developers enable the following core capabilities as needed:
- Web search: The model can search the internet for the latest information in real time, which removes the time limits of its training data.
- Deep thinking search: This is the most notable capability. During reasoning, the model decides on its own when to run additional searches, which web pages to open, and which keywords to look up within a page. According to the documentation, a single task can trigger more than twenty tool calls. This forms a “reason, search, reason again” loop for deep exploration.
- File input: Supports formats such as PDF, Word, and PowerPoint. Each file can be up to 100 MiB or 1,000 pages, which covers most enterprise document processing scenarios.
- Link reading: Parses the content of a URL directly, removing the manual fetching and cleaning steps.
- Content safety check: Runs compliance checks on the server side, which reduces content risk when apps go live.
The key change is server-side orchestration. Previously, a developer who wanted to build an AI app with internet access had to write glue code that connected a search API, a parsing library, and model calls. The developer also had to manage complex context assembly and state synchronization. Now the platform handles this logic. It performs tool calls and context management on the server, so the client only needs to maintain conversation state and render results. This substantially lowers the barrier to building applications and lets developers focus on business logic.
Layer 2: Standalone Atomic Interfaces
Beyond the in-chat tools, the platform offers feature interfaces that can be called individually. These cover search, web page fetching, OCR, speech synthesis, and speech recognition. This atomic design gives developers flexibility to build custom automated workflows, such as an independent scheduled public opinion monitoring script or a batch document digitization pipeline.
3. A Shift in Cost Structure: Pay-per-Use and Agent Economics
Connecting search and file reading to the API has a significant effect on the cost model of agent applications.
Under the traditional DIY model, a developer’s costs come from model token fees, third-party search API fees, the infrastructure cost of self-hosted parsing services, and the engineering labor needed to maintain glue code. This cost structure is complex and hard to predict.
Under the platform-native model, the cost structure is simpler:
- Explicit costs by usage: Search and fetching are billed per call, and model inference is billed per token. Under this model, the cost of a deep thinking search breaks down into reasoning tokens plus the number of search calls, so the cost structure is clear and transparent. In actual testing, a deep search involving a financing comparison used a little over 400 reasoning tokens, plus several supplementary searches. The total cost was very low.
- Hidden maintenance costs largely disappear: The most overlooked saving is the drop in engineering maintenance work. Server-side tool orchestration means the platform handles complex logic, including context assembly across multiple calls, deduplication, truncation strategies, and retries after interface errors. This shortens the time to launch an application and reduces the hidden operating costs caused by an unstable tool chain.
A cost example: In testing, a complete app scenario that included web search, file parsing, and multi-turn conversation made 13 API requests in one day and consumed 17,000 tokens. The total bill was only 0.05 CNY. This shows the cost competitiveness of pay-per-use billing combined with server-side orchestration. For agent apps with high call volumes, a controllable cost per call is a prerequisite for commercialization.
4. Hands-On Testing: Key Points for Core Capabilities
To verify how the capability matrix performs in practice, the following test dimensions and observation points can serve as a reference:
- Factual retrieval accuracy: Ask time-sensitive questions, such as the IPO price range of a company, to check how current the web search results are and how accurate the information is.
- Autonomy of deep thinking: Design questions that require comparative analysis. Observe whether the model starts multiple searches on its own and how its token consumption is distributed.
- Parsing robustness for file input: Build test documents that contain specific fictional fields. Check whether the model extracts non-standard information accurately and maintains context when handling long documents.
- Latency and quality of standalone endpoints: Run unit tests on the atomic interfaces. Pay attention to response latency and how structured the results are.
5. Conclusion and Outlook: A Technical Shift in Agent Development
Moving search and file reading capabilities into the API essentially shifts the core runtime environment of agents from the developer’s local machine to the platform’s server side. This update goes beyond a feature release. It marks a platform-oriented evolution of AI application architecture. It lowers the technical barrier for agent applications, so small teams can also build apps with complex tool-calling capabilities. At the same time, the clear pay-per-use model makes the commercial cost of agent apps easier to
