API Expansion for Large Language Models: Build Full-Featured Conversational Apps with Integrated Search, File Parsing, and Voice Tools

    This article covers a major upgrade to a major cloud provider's large language model API, which now exposes capabilities previously limited to its native assistant app—such as web search, deep-thinking search, file upload and parsing, link reading, and speech interfaces—as standard API endpoints. It breaks down the five core capability groups, explains how to combine them via tool orchestration, discusses pricing and cost-control strategies, and explores practical use cases for developers building intelligent assistants and agent-style applications.

    From Model Interfaces to Complete Application Capabilities

    For a long time, developers calling large language model APIs could only access basic text generation. To build a fully functional intelligent assistant—with features like web search, file upload and parsing, link reading, and voice interaction—developers had to integrate multiple third-party services and handle numerous engineering details: search API integration, parsing different document formats, adapting speech recognition and synthesis, implementing safety controls, and more. This was time-consuming and increased system complexity and maintenance overhead.

    Recently, a major cloud provider announced a significant upgrade to its language model API. Features that were previously available only in its native assistant app—including web search, deep-thinking search, file input, and link reading—are now exposed as standard APIs. In addition, the provider offers separate tool interfaces for search, web page scraping, OCR, speech recognition, and speech synthesis. This means developers no longer need to stitch together multiple services; by calling a single API suite, they can combine these tools to build applications with an experience nearly identical to a complete assistant app.

    The essence of this move is deep integration between model capabilities and tool capabilities, forming a standardized “application-level API.” For individual developers, startup teams, and enterprise users alike, this significantly reduces the technical barrier and integration cost of building intelligent applications—making it possible for anyone to “hand-craft” an intelligent assistant.

    Core Capability Breakdown: More Than Just Extra Endpoints

    These newly opened APIs are not simply a list of parallel tools. They are designed around the language model as a collaborative mechanism. From a functional perspective, they fall into five main categories:

    • Basic Web Search: In non-thinking (regular reasoning) mode, the model can automatically decide whether to perform a web or image search based on the user’s question, then use the retrieved results as context to generate an answer with cited sources. This is suitable for real-time information queries, news tracking, product specification comparisons, and similar scenarios.
    • Deep-Thinking Search: In thinking (slow reasoning) mode, the model performs multi-step reasoning. At each step, it may proactively initiate searches or read links based on intermediate results, gradually refining its answer with retrieved information. This works like a “research assistant” and is ideal for complex problems such as industry analysis, academic research, and synthesis of multiple sources.

    The two modes correspond to different use cases and costs, and developers can switch between them dynamically based on application needs. The key point is that search behavior is not pre-defined by the developer; the model decides autonomously, which more closely mimics human retrieval habits.

    2. Multi-format File Input and Parsing

    Common formats are supported, including PDF, Office documents (Word, Excel, PowerPoint), and images. Two parsing strategies are provided:

    • Plain Text Extraction: Directly extracts text content from files. Best for text-heavy documents; faster and consumes fewer tokens.
    • Mixed Content Parsing (with Visual Understanding): Performs visual understanding of documents containing charts, tables, or scanned images, outputs structured content, and incorporates it into the conversation context. Suitable for complex layouts such as invoices, contracts, and research reports.

    Parsed content is injected as temporary context, so developers do not need to handle file format conversion or layout recognition themselves, greatly simplifying the data preprocessing pipeline.

    When a user message contains a URL, enabling the read_url tool allows the model to automatically identify the link, fetch the web page’s main content (removing ads, navigation, and other noise), and combine it with the user’s question to generate an answer. This capability is especially useful for enterprise knowledge bases, sentiment analysis, competitor monitoring, and other applications that need to reference web content.

    4. Speech Recognition and Speech Synthesis

    Standalone speech recognition (ASR) and speech synthesis (TTS) interfaces are available, either as separate tools or combined with text models. Developers can build voice-based conversational assistants, voice notes, audio content generation, and more. The interfaces support multiple audio formats and return timestamped text for alignment or post-processing.

    5. Safety Checks and Content Moderation

    The API provides optional safety check parameters that perform basic content moderation on model inputs and outputs. If a risk is detected, a refusal indicator is returned. For developers who serve external users, enabling this parameter is strongly recommended to meet content safety, large model registration, and AI labeling compliance requirements.

    Technical Implementation: Combining the Capabilities

    This API suite supports three mainstream interface paradigms—Messages, Responses, and Chat Completions—to accommodate different development habits. Below is a typical “intelligent assistant” logic example showing how to combine tools via parameter configuration:

    1. # Pseudo-code example: enable web search and link reading
    2. response = client.chat.completions.create(
    3. model="some-flash-model",
    4. messages=[
    5. {"role": "user", "content": "Summarize this article about quantum computing and give the latest progress: https://example.com/quantum"}
    6. ],
    7. tools=[
    8. {"type": "web_search", "name": "deepseek_web_search"},
    9. {"type": "read_url", "name": "deepseek_read_url"}
    10. ],
    11. tool_choice="auto", # Model decides whether to call tools autonomously
    12. enable_safety_check=True # Enable safety moderation
    13. )

    In practice, a single message can trigger multiple tools in sequence: first read a link, then perform a supplementary search, and finally parse an uploaded PDF file. All tool calls return structured “tool messages,” and the model makes decisions within that sequence, forming a complete task chain.

    For custom frontends, the official provider offers a sample demo that closely mirrors the interface of the cloud assistant app—including streaming output, cited source annotations, and file upload progress. Developers can use the demo’s front-end code as a reference to quickly build their own application UI.

    Pricing Model and Cost Control

    Regarding costs, in addition to the base token cost for model usage, extended capabilities such as web search, file parsing, and speech require an additional tool invocation fee. Pricing is calculated based on the actual tools used and usage volume. For example:

    • Each web search may incur a fixed search request fee.
    • File parsing is billed by page count and complexity.
    • Speech recognition is billed by audio duration.

    For budget-sensitive individual developers, it is recommended to design tool invocation strategies carefully: enable search only when real-time information is explicitly needed, use plain text extraction for short documents instead of image parsing, and use caching to reduce redundant calls. Additionally, thinking mode consumes significantly more tokens than non-thinking mode—for simple questions, forcing non-thinking mode can lower costs.

    Application Scenarios: From “Assistants” to “Agents”

    The significance of this API suite goes beyond lowering the barrier to building chatbots. It provides the infrastructure for “agent”-style applications. Developers are no longer limited to single-turn Q&A; they can build systems with capabilities such as:

    • Enterprise Knowledge Base Q&A: Upload internal documents, automatically parse them, and answer detailed questions.
    • Deep Research Assistants: Users provide a topic; the model plans steps, automatically searches, reads, summarizes, and eventually outputs a research report with cited sources.
    • Multimodal Content Analysis: Combine OCR and visual parsing to quickly extract key information from images and scanned documents.
    • Voice-Interactive Devices: Integrate speech recognition and synthesis into IoT devices for hands-free experiences.

    In short, this API upgrade signals a shift in large model service competition—from “model parameters” to “engineering capabilities.” Providers that offer more complete toolchains and flexible orchestration will attract more developers to build diverse applications. For ordinary developers, this is an ideal time to leverage these standardized capabilities for rapid prototyping and idea validation. “Hand-crafting an intelligent assistant” no longer requires deep customization of underlying services; you can focus on application logic and user experience.