LLM Application APIs Open Up: How to Replicate a Full-Featured AI Assistant
This article breaks down the newly opened application-layer capabilities in LLM APIs, including web search, deep-thinking search, file input, link reading, and safety checks. It explains the technical role of each capability, how to combine them in a minimal architecture, and the practical constraints around cost, latency, compliance, and observability. Developers will find guidance on orchestration, budget control, and building assistants that can be operated reliably rather than just prototyped.
1. From Calling a Model to Calling Full Application Capabilities
For the past two years, developers building AI assistant applications typically received only a plain text generation endpoint: the model handled inference and generation, and everything else had to be assembled in-house. Web retrieval required building crawlers and indexes, document parsing required a multi-format conversion pipeline, voice interaction required separate speech recognition and synthesis services, and content safety required an additional moderation integration. The result was that a seemingly simple conversational product ended up with a very long engineering chain, where the stability of every link directly affected the final experience.
A clear shift is now visible in the industry: application-layer capabilities are being opened up as a whole. One platform has integrated capabilities that previously existed only inside its own applications—web search, deep-thinking search, file input, and link reading—into its existing API, while also offering standalone tool endpoints for search, web scraping, optical character recognition (OCR), speech recognition, and speech synthesis, which can be called individually or in combination. The provider even states that developers can use these to replicate a complete application one-to-one, and has published a demo site and a sample code repository.
For developers, the significance is not “writing a few thousand fewer lines of code,” but a restructuring of capability boundaries: modules that once required three to five teams to coordinate are now compressed into a handful of parameter switches. The sections below break down the technical meaning and implementation points of each capability.
2. Technical Breakdown of Five Core Capabilities
2.1 Web Search: Let the Model Handle Retrieval Intent
The traditional approach works like this: the application layer first performs intent classification to decide whether retrieval is needed, then assembles the query, calls search, extracts the main text, and stitches the context together. The chain is long and the misclassification rate is high.
With the capability opened up, the pattern changes: enable the web search tool in non-thinking mode, and the model decides on its own whether to launch a web or image search based on the question, attaching citation sources in the answer. The key change here is that decision-making is pushed down—the timing of retrieval, query rewriting, and result filtering are handled by the model during generation, and developers only need to handle tool registration and result injection.
Three engineering points deserve attention. First, citation sources must be real and traceable, and must not be freely generated links from the model. Second, the length of injected retrieval results must be controlled to avoid the context being crowded out by low-quality pages. Third, a fallback path must be designed for retrieval failures—for example, returning “no reliable sources found” rather than fabricating an answer.
2.2 Deep-Thinking Search: Autonomous Retrieval During Multi-Step Reasoning
In thinking mode, the model breaks a complex question into several sub-questions, autonomously initiates retrieval and reads links midway through the reasoning chain, then folds the new evidence into subsequent reasoning, forming a “reason—retrieve—reason again” loop.
This is fundamentally different from one-shot retrieval: it is closer to how a human researcher works, and suits analytical questions that require cross-validation and are time-sensitive, such as verifying industry data or comparing multiple viewpoints. The cost is a significant increase in latency and the number of tool calls, so it is better placed behind an explicit “deep analysis” entry point rather than on the default path.
The practical recommendation is to set budget constraints: cap the maximum number of retrievals and reasoning steps per turn, and force convergence of the output once the limit is exceeded, to keep cost and response time under control.
2.3 File Input: Multi-Format Parsing and Mixed Text-Image Layout
File input supports common formats such as documents, presentations, spreadsheets, and images. It can perform plain text extraction or mixed text-and-image parsing, and the parsing result is added to the conversation context.
What is most easily underestimated here is layout fidelity. Plain text extraction loses table structure and paragraph hierarchy on contracts, financial reports, and scanned documents, causing the model to misread the correspondence between values; mixed text-and-image parsing preserves spatial position information and is better suited to structured extraction. The selection principle: use text extraction to reduce cost in Q&A scenarios, and mixed parsing to preserve accuracy in extraction and verification scenarios.
Failures in parsing also deserve attention: encrypted documents, oversized files, and non-standard encodings need clear prompts rather than silently returning empty content.
2.4 Link Reading: From Pasting Text to Automatic Fetching
Once the link-reading tool is enabled, the model can automatically recognize URLs in messages, fetch the content, and answer in combination with the context. This addresses the high-frequency scenario where a user asks a question with only a link, and avoids the information loss caused by users manually copying the main text.
Engineering details to note include fetch timeouts and size limits, missing content on dynamically rendered pages, and copyright and compliance boundaries. It is advisable to summarize and compress fetched results before adding them to the context, and to give explicit feedback for links that cannot be accessed.
2.5 Model Safety: Turning Risk Control into a Toggleable Parameter
The opened capabilities also include a safety check parameter: once enabled, basic risk moderation is applied to both input and output, and a refusal flag is returned when a risk is hit. The provider specifically notes that developers offering services to external users should enable this parameter and fulfill obligations such as content safety moderation, model registration, and generated-content labeling.
From an architectural perspective, this layer should not be treated as a “compliance patch,” but as part of the product: refusal flags need to be presented in a user-friendly way by the frontend, risk-control logs need to be auditable, and false positives need to be appealable and tunable.
3. Combined Invocation: A Minimal Viable Architecture
The capabilities above can be freely combined. A typical layering looks like this:
Access layer (Web / mobile / server)↓Session orchestration layer (intent routing, budget control, context management)↓Model layer (normal mode / thinking mode + tool switches)↓Tool layer (search / scraping / OCR / speech recognition / speech synthesis)↓Safety and audit layer (input/output checks, logs, labeling)
A sketch of the orchestration logic (pseudocode, expressing only the call order and the idea of budget control):
def handle(user_msg, mode="fast", budget=3):ctx = load_context()tools = []if mode == "deep":tools.append({"type": "web_search", "max_calls": budget})if has_url(user_msg):tools.append({"type": "read_url"})if has_attachment(user_msg):ctx += parse_file(user_msg.attachment, layout=True)resp = model.chat(messages=ctx + [user_msg],tools=tools,safety_check=True)audit(resp) # Log inputs, outputs, and tool callsreturn render(resp) # Render citation sources and refusal flags
The key point is that budget, switches, and auditing all converge in the orchestration layer, so business code does not directly perceive tool details, and the surface area of changes when replacing or adding tools later is minimal.
4. Real Constraints on Cost and Performance
Extended capabilities generally use a combined billing model of “model usage + tool call volume”: in addition to the usage fee for generated content, the retrieval, parsing, voice, and other tools actually invoked are billed separately by usage. This means the cost model shifts from “per word” to “per behavior,” and a deep-analysis request that autonomously retrieves can cost several times more than a normal Q&A.
It is therefore advisable to build three layers of control: at the product layer, differentiate modes by entry point to avoid sending all requests through the deep chain; at the session layer, set per-turn limits on tool calls and duration; at the operations layer, build usage dashboards and alerts by tool dimension, and optimize prompts and retrieval strategies after locating high-consumption scenarios.
On performance, tool calls introduce external dependencies that bring long-tail latency. Common practices are to launch independent tool calls in parallel, cache results, degrade quickly on timeouts, and surface “retrieving / parsing file” as a visible status to users, trading perceived responsiveness for waiting time.
5. Compliance and Observability Cannot Be Deferred
The stronger the capabilities, the heavier the responsibility. Serving external users requires at least four things: enabling input and output safety checks; completing registration related to generative models; applying explicit labeling to generated content; and retaining traceable call and moderation logs.
Observability is equally critical. It is advisable to record for each session the mode, the enabled tools, tool latency and failure reasons, and usage and cost estimates, forming a traceable chain. When an incorrect answer appears, it becomes possible to quickly determine whether the cause is retrieval quality, parsing distortion, or model reasoning bias, rather than attributing it vaguely to “the model is bad.”
6. Conclusion
Opening up application-layer capabilities shifts the focus of AI assistant development from “filling in infrastructure” to “designing interaction and orchestration strategies.” What truly determines product differentiation is no longer whether it can go online or read files, but whether mode routing is reasonable, whether budget control is fine-grained, whether citations and refusals are trustworthy, and whether compliance and auditing are complete. Get these things solid, and a feature-complete AI assistant with an experience close to a mature product is no longer the exclusive domain of large teams.
