Built-in LLM API Tools: How Model Platforms Are Evolving Beyond Chat Completions

    This article explains how major LLM APIs are evolving from simple chat endpoints into integrated capability platforms with built-in tools. It covers web search, deep reasoning search, file input, link reading, safety checks, and standalone OCR, ASR, and TTS interfaces, along with activation patterns and separate tool billing. Readers will also find practical guidance on cost optimization through caching and off-peak scheduling, frontend practices for replicating official client experiences, and compliance requirements for public-facing AI applications.

    1. The Trend: From Chat Endpoint to Capability Platform

    LLM APIs used to focus mainly on text completion. Developers had to assemble web access, document parsing, and speech capabilities themselves. A recent industry shift is that a cloud provider has made search, file input, link reading, safety, and speech capabilities—previously available only in its own app—accessible through the API. These built-in features can be enabled with a few parameters, while OCR, speech recognition, and speech synthesis can also be called as standalone endpoints.

    The core of this change is upgrading the “model” into an integrated “model + toolchain” service. For developers, the value comes in three areas:

    • Lower integration cost: no need to connect separately to search vendors, parsing services, and speech services;
    • Reduced latency: tool invocation and context assembly happen server-side, eliminating multiple round trips;
    • Consistent behavior: first-party apps and official clients can achieve nearly identical results.

    Built-in tools are typically tied to specific model versions and work across three common message formats (message lists, responses, and chat completions). Developers do not need to rewrite business logic for different protocols.

    2. Capability Breakdown and Selection Guidance

    1. Standard web search: retrieves web pages or images in non-thinking mode with citation sources. Suitable for factual queries and news aggregation.
    2. Deep reasoning search: autonomously issues searches and opens web pages during multi-step reasoning. Suitable for research-oriented Q&A and complex attribution analysis, at the cost of higher latency and more calls.
    3. File input: parses PDFs, office documents, and images, then injects them into the conversation. Suitable for contract review and report Q&A.
    4. Link reading: automatically detects links in user messages and fetches the main content. Suitable for interactions like “summarize this document for me.”
    5. Safety checks: reviews input and output and returns a refusal flag when risks are detected. Must be enabled for public-facing applications.
    6. Standalone speech and parsing endpoints: OCR, ASR, and TTS can be called individually for on-demand orchestration in your own pipeline.

    Search and link reading are generally controlled by separate toggle parameters, and tool fees are billed separately from token fees.

    1. # Example: enabling built-in tools in a request (parameter names per official documentation)
    2. resp = client.chat.completions.create(
    3. model="deepseek-flash",
    4. messages=[{"role": "user", "content": "Summarize this link: <url>"}],
    5. tools_enabled=["web_search", "read_url"], # pseudocode, for orchestration illustration only
    6. safety_check=True,
    7. )

    3. Cost Structure and Scheduling Optimization

    Built-in tools are usually priced separately. Common tiers include: search and web fetching per thousand requests, file parsing per thousand pages, speech synthesis per ten thousand characters, and speech recognition per audio hour. Speech services often have periodic discounts. Token pricing commonly uses a four-quadrant model of cache hit/miss combined with peak/off-peak rates. Peak hours fall in several UTC windows on weekdays, and off-peak prices are roughly half of peak prices.

    This leads to three optimization strategies:

    • Prioritize caching: fix stable prefixes such as system prompts and long documents to improve cache hit rates;
    • Batch off-peak: run offline parsing and bulk transcription during off-peak hours;
    • Enable tools on demand: turn on search only when users explicitly request time-sensitive information to avoid unnecessary calls.

    4. Frontend Practices for Replicating the Client Experience

    The official side has open-sourced a frontend demo that supports importing chat history, signaling that “replicability” has become a competitive point. A custom frontend should focus on streaming output rendering, clickable citation sources, upload progress for files and speech, friendly refusal messaging, and local persistence of session state. On the backend, consider a message queue for peak shaving, object storage for original files, and logging plus monitoring with alerts to track tool invocation success rates and per-turn cost.

    5. Compliance Requirements

    Public-facing applications must enable safety checks, but developers still need to handle content moderation, complete model filing as required, and clearly label AI-generated content. Architecturally, build a closed loop of “safety review → generation → output re-review” and retain traceable logs. If you use general cloud products from platforms such as Baidu AI Cloud to host logging, monitoring, and storage, integrate them through general capability categories to avoid tight coupling with business logic.

    6. Conclusion

    Built-in tools move APIs from “being able to talk” to “being able to act.” A developer’s real competitive edge lies not in whether a toggle exists, but in the precision of cost scheduling, context engineering, and compliance loops.