A Practical Guide to LLM Application Capabilities via API: Server-Side Tools and Standalone Endpoints

    This guide explains how some LLM providers now expose the capabilities of their own applications through server-side tools and standalone API endpoints. It covers the supported calling protocols, the built-in tools for web search, deep thinking search, link reading, file input, and content moderation, and the standalone Search, Fetch, OCR, ASR, and TTS endpoints. It also walks through a RAG integration example with dual-path retrieval and compares this approach with building the same pipelines in-house.

    Introduction: From Model Calls to Capability Calls

    For a long time, the relationship between developers and LLM providers was simple. You sent text to the model and received text back. If you wanted a model to search the web, read links, parse files, or recognize text in images, you had to build a full set of supporting systems yourself: a crawler service, a document parsing pipeline, an OCR engine, and a speech processing module. You then exposed these capabilities to the model through prompt engineering or function calling.

    This approach has clear pain points. First, development cost is high, since each supporting capability is a separate technology stack. Second, maintenance is heavy. Web scraping has to handle anti-bot measures, and document parsing has to support many different formats. Third, the experience is inconsistent. The official apps, on mobile and on the web, feel smooth, while custom integrations often fall short.

    Recently, a notable trend has emerged. Some LLM providers now expose all the capabilities used in their own applications, in two forms: server-side tools and standalone API endpoints. Developers can make one API call and get an experience close to that of the official app. This article follows the trend and breaks down the capability structure, integration methods, and practical implementation of these all-in-one APIs.

    1. Overview of the All-in-One API

    1.1 Three Mainstream Calling Protocols

    At the protocol level, these services usually support three widely used interface standards: Chat Completions, Responses, and the Messages protocol from another major provider. Multi-protocol support means that a project built on any of these ecosystems can migrate or reuse existing code without rewriting the whole calling layer.

    1.2 Five Built-in Server-Side Capabilities

    On top of these protocols, providers have packaged several capabilities that normally require complex engineering into “declare and use” server-side tools. Developers only declare the tool name in the request body. Retrieval, fetching, parsing, and moderation are then handled entirely on the server.

    1. Web search: After you declare the web search tool, the model automatically runs web or image searches when a question requires them, and it cites sources in its answer. This matters for scenarios that depend on up-to-date information.
    2. Deep thinking search: With deep thinking (reasoning) mode enabled, declaring the same search tool lets the model decide within its reasoning chain when to search, which page to open, and which section of the page to locate. Compared with standard search, this works more like a human researcher who thinks and searches at the same time.
    3. Link reading: After you declare the link reading tool, any URL that a user pastes into a message is opened automatically and its main text is extracted. The model answers based on that content, so developers do not need to build their own crawler.
    4. File input: You upload a PDF, Word, PPT, Excel, e-book, code, or image file first. After you receive a file ID, you include it in a conversation message, and the model answers based on the file content. In effect, the document parsing pipeline is built into the server.
    5. Content moderation: The server reviews both the model input and the complete output. If it detects risky content, it refuses to respond. For end-user applications, this capability is nearly essential for compliant launches.

    1.3 Five Standalone Endpoints

    Besides the built-in tools, providers also expose their underlying capabilities as standalone APIs. Developers can plug these into their own agent orchestration systems:

    • Search: Returns search results and summaries. Each result includes relevance and authority scores, which help upstream code filter and rank results.
    • Fetch: Takes a URL and returns the page’s main content in Markdown, ready for chunking, embedding, or prompt assembly.
    • OCR: Recognizes text in PDFs, Office documents, and images, and returns the position of each text element for layout analysis and structured extraction.
    • ASR (automatic speech recognition): Converts speech to text, with support for Mandarin, Cantonese, English, Japanese, and other languages.
    • TTS (text-to-speech): Converts text to speech in multiple voices. Streaming synthesis lets playback start before synthesis finishes.

    This two-layer design, with built-in tools plus standalone endpoints, fits both ends of the spectrum. Lightweight applications can use the built-in tools and finish in one step. Agent projects with complex orchestration needs can combine the atomic endpoints like building blocks.

    2. Practical Implementation: Filling the Real-Time Information Gap in a RAG Knowledge Base

    2.1 Problem Background

    Consider a typical RAG knowledge base project. The system builds a vector index from documents that users upload, and it limits answers to the private knowledge scope. This keeps answers controlled but creates an obvious gap. When users ask about content outside the knowledge base, such as the latest version releases, industry news, or changes to official documentation, the model can only say it does not know.

    2.2 Integration Approach

    After integrating the Search and Fetch endpoints, you can design a dual-path retrieval flow for the system:

    1. After the user asks a question, run a vector search in the private knowledge base first.
    2. If the relevance of the retrieved results falls below a threshold, or the question has a clear time-sensitive nature (such as words like “latest” or “recent”), trigger a web search.
    3. Filter the search results by relevance and authority scores, and select the top N results.
    4. Call the Fetch endpoint on the selected links to get the body text in Markdown.
    5. Inject the fetched text together with the private knowledge fragments into the context, so the model can synthesize an answer and cite its sources.

    Illustrative pseudocode:

    1. def answer(question):
    2. local_docs = vector_store.search(question, top_k=5)
    3. if is_freshness_sensitive(question) or low_confidence(local_docs):
    4. results = search_api.query(question)
    5. results = [r for r in results if r.authority_score > 0.6]
    6. pages = [fetch_api.get(r.url) for r in results[:3]]
    7. context = merge(local_docs, pages)
    8. else:
    9. context = local_docs
    10. return llm.chat(question, context=context, cite_sources=True)

    2.3 Engineering Details and Best Practices

    • Trigger strategy: Not every question needs a web search. Combine an intent classifier with retrieval confidence to avoid the latency and cost of unnecessary searches.
    • Result filtering: The authority score is a valuable signal. Prioritizing official documentation and authoritative media can significantly reduce the risk of the model being misled by low-quality content.
    • Caching and deduplication: Cache search and fetch results for popular queries for a short time, for example with an hour-level expiration. This reduces cost and speeds up responses.
    • Fallback on failure: Fetch can fail when a target site has anti-bot protection, so design a fallback path. Answer using only the search summaries, and show the user in the interface that the sources are incomplete.
    • Cost control: Tools billed per call should have usage monitoring and quotas built into the call path. Combine these with logging and alerting from general cloud services to catch unusual spending early.

    3. Comparison: Self-Built Pipelines vs. Server-Side Capability APIs

    Dimension Self-built supporting pipeline Server-side capability API
    Development time Several weeks to several months A few hours to a few days
    Search quality Depends on the size of your own index Relies on the provider’s web-wide index
    Document parsing Must adapt to many formats Handled uniformly on the server
    Content compliance Requires an in-house moderation system Built-in moderation on the server
    Cost structure Fixed infrastructure investment Pay-as-you-go

    For most small and mid-sized teams, server-side capability APIs are the more practical choice. A self-built pipeline is only necessary in scenarios with strong constraints, such as data that must stay within the organization or deep customization needs. Companies can also combine these APIs with their own infrastructure, such as object storage, message queues, and container platforms, to build a complete production architecture.

    4. Outlook

    The move toward exposing application capabilities as APIs has only just begun. From a developer’s perspective, several directions are worth watching. Embedding capabilities may be added, so the retrieval-augmented workflow can run entirely within one ecosystem. Multimodal generation will deepen, particularly in video understanding and generation. Tool calling and agent orchestration protocols will continue to standardize.

    When model providers publish the answer to “how to build the application” as public APIs, developer competition shifts from infrastructure setup to business understanding and experience design. This may be the most far-reaching significance of this round of capability openings.