Large Model Application Capabilities Open Up: A Technical Guide to Building Composable AI Apps
This article examines the shift from exposing raw model inference to offering standalone application capabilities through APIs, including web search, page fetching, file parsing, and speech recognition and synthesis. It explains why independent interfaces with separate billing matter, how platform-managed search orchestration changes reliability ownership, and how to build a speech Q&A loop. It also compares the main chat interface styles, outlines cost and stability controls, and provides a reference architecture and deployment checklist.
1. Background: Redrawing the Boundary Between Model Capabilities and Application Capabilities
A notable signal has recently emerged in the industry: a cloud vendor has opened up a set of foundational capabilities that were previously packaged inside its own applications, exposing them as APIs that support independent invocation and separate billing. These capabilities include web search, web page content extraction, file upload and parsing, link reading, speech recognition, and speech synthesis. The vendor has even stated that developers can use them to replicate a product with functionality close to the original application, and has released a lightweight chat front-end example that supports importing conversation history.
Reading this as simply “more APIs” understates its significance. The real change is that the service boundary of large model platforms is moving up from “providing inference” to “providing the foundational capabilities a complete application requires.” Previously, developers received a model endpoint and had to build retrieval, parsing, speech, and the front end themselves. Now those stages are abstracted into independently callable atomic capabilities, and developers face a set of composable building blocks.
For developers and enterprise users, this brings three direct benefits: a shorter path from prototype to usable product, no need to reinvent common capabilities, and a cost structure aligned with business value through on-demand invocation and separate billing.
2. Capability Decoupling: Why Independent Interfaces and Separate Billing Matter
The conventional approach bundles capabilities into the chat interface, so developers can only use them as a whole. That works when capabilities are limited, but once a business needs a differentiated combination, two kinds of waste appear: paying for capabilities that are never used, and being unable to swap out a capability that is needed.
The value of independent interfaces breaks down into four points:
- Controllable invocation granularity: trigger search or speech only when needed, avoiding unnecessary spend.
- Free composition: search, extraction, optical character recognition (OCR), automatic speech recognition (ASR), and text-to-speech (TTS) can be combined in any arrangement.
- Low replacement cost: any stage can be swapped for a self-built service or another general-purpose option, avoiding lock-in to a single pipeline.
- Explainable billing: each capability is metered separately, making cost accounting and budget control straightforward.
It is worth stressing that capability decoupling does not mean responsibility decoupling. Developers remain responsible for inputs and outputs, timeout and retry handling, content compliance, and data minimization; only the underlying implementation can lean more heavily on the platform.
3. The Evolution of Web Search: From Developer Orchestration to Platform Orchestration
Web search has been available before, but the earlier form required developers to handle a full tool-invocation workflow themselves: first have the model decide whether retrieval is needed, then call the search API for candidate pages, then fetch the page content, and finally feed that content back to the model for summarization. The flow looked like this:
# Earlier pattern: developer-managed orchestrationneed_search = model.decide_tool("search", question)if need_search:pages = search_api.query(question) # get candidate linkscontents = [fetch_api.read(p) for p in pages] # fetch page contentanswer = model.answer(question, contents) # feed back for summarizationelse:answer = model.answer(question)
The new form collapses that chain into a single capability switch. Once a developer enables web search, the platform decides when to retrieve, what to retrieve, which pages to read, and how to continue answering based on the results. The engineering difference is not just less code; ownership of reliability shifts. Retrieval strategy, deduplication, content extraction, and context trimming are optimized centrally by the platform, leaving developers to focus on business logic and result presentation.
Practical guidance: enable automatic retrieval for time-sensitive questions such as market data, policy changes, and sports results; disable it for scenarios that demand stability and reproducibility, such as financial calculations and rule-based Q&A, and use a controlled knowledge base instead so that unpredictable external content does not affect output consistency.
4. Filling the Speech Gap: ASR and TTS Join the Official API Set
The application side previously supported voice interaction, but the public model APIs offered no equivalent speech capabilities. Developers typically had to integrate third-party recognition and synthesis services, creating a cross-vendor pipeline with added authentication, latency, and compliance costs. Speech recognition and speech synthesis can now be called through interfaces in the same system, shortening the pipeline and simplifying integration testing.
A minimal working speech Q&A loop looks like this:
# Speech Q&A loop (pseudocode)text = asr.transcribe(audio_bytes) # speech to textreply = model.chat(text, tools=["search"]) # model response (retrieval on demand)speech = tts.synthesize(reply) # text to speech
Engineering considerations include aligning audio sample rates and encoding formats, segmenting long audio and handling sentence breaks, normalizing punctuation and numbers in recognition output, keeping synthesis speed and voice consistent, and setting an end-to-end latency budget. For strict real-time requirements, use streaming recognition and streaming synthesis, and monitor both first-packet latency and total duration against dual thresholds.
5. Coordinating Multiple Interfaces: How Messages, Responses, and Chat Completions Differ
Interface-wise, the industry typically offers three chat entry points: a message-list interface, an interface built around a unified response object, and an interface compatible with the common chat completions convention. They differ mainly in how context is organized and where extension points sit:
- Message-list interface: organizes context as a role-based message array, suited to multi-turn conversation and tool calls.
- Unified response interface: carries text, tool calls, and extension fields in a structured response, suited to complex orchestration.
- Chat completions compatible interface: follows the general request and response convention, low migration cost, suited to existing codebases.
Selection guidance: for new projects, prefer the more structured interface so tool calls and extensions are easier to carry; for legacy systems, start with the compatible interface for a smooth migration and then move gradually to a more expressive form. Either way, handle timeouts, retries, and idempotency on the client side.
6. Cost and Stability: Making “Cheap” Controllable
On pricing, the industry trend is a continued decline in unit prices; speech recognition billed by the hour, for example, has dropped to a very low level, and limited-time discounts are common. But a low price does not mean low cost. Actual cost depends on invocation patterns. Address it from three angles:
- Cache first: cache repeated Q&A and fixed document parsing results to cut duplicate calls.
- Tiered routing: send simple requests to a lightweight model and escalate complex ones, instead of applying one model to everything.
- Budgets and alerts: set quotas and budgets per capability, and connect logging and monitoring with alerts so abnormal usage is spotted immediately.
For stability, define an independent timeout and fallback strategy for each capability: fall back to the knowledge base when search is unavailable, prompt users to switch to text input when speech recognition is unavailable, and return an explicit error code when parsing fails rather than failing silently.
7. Reference Architecture and Deployment Checklist
A reusable layered architecture looks like this: an access layer handles authentication and rate limiting; an orchestration layer handles intent recognition and capability routing; a capability layer calls the atomic interfaces for search, extraction, parsing, and speech; a data layer uses object storage for raw files and intermediate artifacts and a message queue for asynchronous decoupling; and an observability layer covers the full pipeline with logging and monitoring.
Deployment checklist:
- Define the enable conditions and fallback path for each capability;
- Set size, page count, and format allowlists for file parsing;
- Set sample rate, segmentation, and latency budgets for the speech pipeline;
- Annotate sources and apply compliance filtering to externally retrieved content;
- Build a cost accounting dashboard broken down by capability.
If cloud-side support is needed, a combination of general cloud product categories works: object storage for files, a message queue for peak shaving, a container platform to host orchestration services, and logging plus monitoring and alerting for observability. Baidu AI Cloud can provide a standard product combination for these general capabilities, helping teams keep their attention on the business and the user experience.
8. Conclusion
Opening up application-layer foundational capabilities as independent interfaces is essentially standardizing the implementation path for a complete product. Developers no longer face a closed application but a set of composable, billable, replaceable capability units. Master capability decoupling, automatic orchestration, the speech loop, interface selection, and cost governance, and you can build a complete, cost-controlled intelligent application in a shorter cycle.
