All-in-One LLM Application APIs: How Developers Can Build a Full-Featured AI Assistant
A major LLM platform has opened up app-level capabilities—web search, deep-thinking search, file input, URL reading, and content safety—through its API, alongside standalone tools for OCR, speech recognition, and speech synthesis. This article breaks down these capabilities, shows how to enable them in chat requests, explains the new tool-based pricing model, and offers practical tips for building a complete AI assistant with minimal engineering effort.
1. From “Model APIs” to “Application APIs”
Over the past few years, most developers have interacted with large language models at the pure inference level: send in text, get generated text back. The problem with this approach is that the model’s “knowledge gaps” and “multimodal limitations” have to be filled by the developers themselves. Want internet access? Build your own search pipeline. Want document parsing? Write your own parsing service. Want voice interaction? Integrate separate ASR/TTS services.
This peripheral engineering work often exceeds the effort of calling the model itself. As a result, packaging model capabilities together with application-level capabilities into a unified “all-in-one API”—letting developers simply flip a parameter and go—has become an industry trend. Recently, a major LLM platform officially integrated capabilities from its app into the API, including web search, deep-thinking search, file input, and URL reading. It also opened a set of independently callable tool APIs covering search, web scraping, OCR, speech recognition (ASR), and speech synthesis (TTS). This means individual developers and small teams can now build a fully functional conversational assistant at a very low engineering cost.
2. Breaking Down the Core Capabilities
According to the official documentation, these capabilities are activated by enabling the corresponding tool parameters in the request. Taking a lightweight model as an example, the new capabilities are supported across three mainstream interface styles—Messages, Responses, and Chat Completions—covering the most common calling paradigms in the industry. The core capabilities include:
1. Web Search
In non-thinking mode, once the built-in web search tool is enabled, the model can automatically decide whether retrieval is needed based on the user’s question, proactively initiate web or image searches, and attach cited sources to the final answer. For developers, this eliminates the need to maintain a search service, result cleaning, and relevance ranking logic—the timing of retrieval is decided entirely by the model.
2. Deep-Thinking Search
In thinking mode, the capability goes further: the model can autonomously initiate web searches during multi-step reasoning, read linked content, and combine results from multiple rounds of retrieval to produce an answer. This “reason while retrieving” pattern suits complex questions such as research surveys, market analysis, and technical investigations, where a single response may involve multiple retrievals and cross-validation.
3. File Input
Common formats such as PDFs, Office documents, and images are supported, with either plain-text extraction or mixed text-and-image parsing. The parsed results are injected into the conversation context. For enterprise applications that handle contracts, reports, or receipts, this removes the cost of building a dedicated document parsing service.
4. URL Reading
With the URL reading tool enabled, the model can automatically detect web links in user messages, fetch the page content, and answer questions in context. Typical scenarios include “summarize this article for me” or “compare the information on these two pages.”
5. Content Safety
Developers can enable a safety-check parameter that applies basic risk-control screening to the model’s input and output, returning a refusal flag when risky content is detected. This provides an out-of-the-box content safety baseline for consumer-facing applications.
3. How to Call It
From a developer-experience perspective, integrating the new capabilities is very cheap—essentially just appending tool declarations to the original chat request. Below is illustrative pseudocode (not the actual API signature):
response = client.chat.completions.create(model="a general-purpose chat model",messages=[{"role": "user", "content": "Summarize today's tech news"}],tools=["web_search"], # Enable web searchenable_thinking=True, # Thinking mode: multi-step reasoning + retrievalsafety_check=True # Input/output safety check)
For tools such as OCR, speech recognition, and speech synthesis, the platform also provides standalone APIs. Developers can call them independently (e.g., for transcription only) or combine them with conversational capabilities—for example, to implement a full “voice question → search → voice answer” loop.
4. Cost Structure: “Tool Call Fees” Beyond Model Tokens
One change that deserves special attention is the pricing model. When using extended capabilities such as web search, file parsing, and speech through the API, you pay tool call fees on top of model token costs, calculated by the type and volume of tools actually invoked.
This has a direct impact on architecture design:
- Search-type calls: Cost scales with the number of retrievals. Deep-thinking mode may trigger multiple retrievals per question, so the bill for high-frequency scenarios needs careful evaluation.
- File parsing: Cost depends on file size and parsing method (plain text vs. mixed text-and-image). Consider enforcing file size and type limits at the entry point.
- Speech capabilities: Billed by audio duration. Preprocessing such as caching and noise reduction helps cut ineffective usage.
A sound practice is to set up usage monitoring and budget alerts for each tool, plus rate limiting and degradation strategies at the application layer.
5. Practical Recommendations
Combining the official demo (whose functionality closely mirrors mainstream conversational assistant web apps) with the open-source sample project, several practical takeaways emerge:
- Start with a minimal loop: Get “chat + web search” working first, validate product value, and only then layer on multimodal capabilities such as files and voice.
- Make good use of citations: Sourced answers are key to user trust; the UI should display source links explicitly.
- Layer your safety measures: The platform-side safety check is a baseline; sensitive business scenarios still need your own review rules on top.
- Refer to the official examples: The sample repository demonstrates the full chain—tool declarations, result rendering, and more—and can serve as scaffolding for secondary development.
6. Conclusion
The opening of all-in-one APIs signals that LLM services are shifting from “selling models” to “selling complete application capabilities.” For developers, the bar for building an AI assistant with search, document understanding, and voice interaction has dropped from “assemble an engineering team” to “write a few hundred lines of code.” Going forward, competition will concentrate more on product experience design and deep cultivation of vertical scenarios.
(Note: The platform capabilities described in this article are compiled from public materials. For specific API parameters and billing rules, please refer to the official documentation.)
