Composable AI Capabilities: The Three Bills Developers Need to Calculate First
Modular AI APIs are breaking full-stack model services into individually priced components—search, document parsing, URL reading, and speech. This article explains what "capability as a switch" architecture actually means for developers, why pluggable parts raise rather than lower operational complexity, and which accounting around backend stability, compliance, and cost determines whether a product survives beyond its trial period.
Why “All-in-One” APIs Suddenly Matter
For a while now, integrating large models in an application usually meant just one thing: conversational completion—send in text, get text back. To build anything close to a complete product experience—document uploads, answers grounded in public web pages, voice in and out, traceable citations—developers had to assemble their own retrieval, crawling, layout parsing, speech recognition and synthesis, then handle intermediate state, failure retries, and context stitching themselves.
A different kind of openness is now emerging in the industry: capabilities that used to be bundled into the client are being split into switches on the conversation API, and into separately billed underlying services. Once a capability is enabled, tool calling and context stitching are handled server-side; alternatively, you can buy just one piece and plug it into your own orchestration. For developers, the real shift isn’t “yet another chat model”—it’s that the product has been decomposed into purchasable parts.
This simultaneously lowers the barrier to building something and raises the complexity of operating it over time. The dividing line isn’t whether you can call an API. It’s who ends up owning backend stability, compliance boundaries, and the cost structure.
What Exactly Gets Decomposed
Viewed as capabilities, a complete interaction pipeline typically includes several modules that can be priced independently or combined.
Retrieval and citations. In non-reasoning scenarios, the model can issue web or image searches automatically based on the question and attach sources to its answers. In reasoning scenarios, the same capability can be embedded into multi-step thinking: search first, read links, decide whether to search again. The value is turning “outdated parametric knowledge” into verifiable external facts. The cost is added latency, inconsistent citation quality, and search counts that go straight onto the bill.
Files entering context. PDFs, office documents, and images must first be converted into text or mixed text-image representations the model can consume. Plain text extraction is cheap but loses layout information; layout parsing, table reconstruction, and mixed text-image handling cost more, yet are nearly unavoidable for reports and contracts. Upload size, page count, and parsing failure rates become hard constraints on product experience.
Link reading. When a URL appears in a user message, the content is fetched and merged into the conversation. This is closer to actual reading than “just searching for a summary,” but it introduces anti-crawling measures, login walls, dynamic rendering, copyright, and robots constraints. You need fallback strategies for failures: use only the title and summary, prompt the user to paste the content, or route through your own crawling queue.
Speech and other modalities. Recognition and synthesis are often provided as standalone APIs, making it easier to integrate with your own players or telephony systems. Real-time streaming, interruption handling, noise reduction, and speaker diarization significantly increase engineering effort—don’t assume “just call the text API one more time.”
These capabilities can be “enabled via a parameter” or purchased separately. The former suits teams quickly replicating an interaction pattern; the latter suits teams that already have orchestration and are missing one piece. Either way, server-side stitching does not mean business logic is automatically correct: whether citations are displayed, whether files are persisted, and what retrieval scope is allowed remain product decisions you have to define.
Why It Used to Be Hard—And Where the Difficulty Moved
From the user’s side, the actions are lightweight: upload a file, say a sentence, wait for an answer. On the developer’s side, it’s a long pipeline: parse, retrieve, crawl, feed the model, convert speech, and progressively pass intermediate results to the next step. What used to be missing were “the organs beyond the brain”—and you had to buy, wire, and time-coordinate each one yourself.
Once those capabilities live inside a single conversation API, the organs don’t need to be sourced from scratch. But responsibility moves to three places.
Orchestration and observability. Automatic tool calling means one user request can fan out into many internal calls. Without a unified request ID, per-stage timings, failure codes, and citation snapshots, production incidents are impossible to reconstruct. You need to log and monitor every search query, crawled URL, parsed page count, and token consumption, with timeout circuit breakers so one slow fetch doesn’t drag down an entire conversation turn.
Consistency and caching. Repeatedly parsing the same document, or repeatedly running the same hot query, multiplies cost. The countermeasures: content-hash caching, short TTLs on retrieval results, and storing parsed outputs for reuse. But caching introduces a product problem—“answers aren’t fresh enough”—so you need an explicit policy balancing freshness against spend.
Failure semantics. An empty retrieval, an unfetchable page, an unreadable scanned document must never silently become model hallucinations. Distinguish at the protocol level between “the capability didn’t execute successfully” and “the model has given an opinion.” Show users degraded messaging, and on billing, avoid double-charging failed retries—at minimum, track them separately in your own ledger.
Three Bills: Backend, Compliance, and Cost
The underlying point can be abstracted as: cheaper parts don’t automatically make a cheaper product. What you actually need to calculate is three bills.
The backend bill. Files need persistent or temporary object storage; asynchronous parsing of large files requires queues and callbacks; voice streams need long-lived connections and backpressure. Also consider connection counts under load, regional latency, key rotation, and auditing. Treating these as “one line in the API docs” will bite you the moment traffic arrives. Container platforms, message queues, object storage, logging, and alerting are the standard foundation for this class of application—not optional.
The compliance bill. Web-connected search and page crawling bring in third-party content; file uploads bring in personal data and trade secrets; voice brings in biometric data. You need clarity on: whether data is used for training, how long it’s retained, whether it can leave the region, whether users can delete it, and whether displaying citations constitutes redistribution. Common industry practice is minimal necessary collection, purpose isolation, access control, and operational audit. Do not interpret “the model auto-completed the tool call” as compliance obligations being transferred away.
The cost bill. Public pricing often lists per-thousand searches, per-thousand fetches, per-thousand-page recognition—cheap on a per-unit basis. The real bill is decided by amplification factors: one complex question may trigger multiple searches; one long PDF may be dozens of pages; user retries and agent loops multiply everything again. Make cost a product feature: per-session search caps, page-count estimation before confirming large files, duration-based plans for voice, and separate accounting for internal debugging traffic versus production traffic. An agent without budget circuit breakers is, in essence, an unbounded bill generator.
The implication for team composition is equally direct: more people can call APIs, but people who can chart latency, failure rates, and per-session cost remain scarce. Product competitiveness will shift from “can we replicate the interaction” to “can we use these parts inside a controlled ledger.”
A Pragmatic Layered Architecture
There’s no need to turn on all automatic tool calling at once. A more stable path is layering.
The first layer handles only conversation and explicit file parsing; parsed results go into your own storage, and the application decides which slices enter context. The second layer makes retrieval an explicit step: generate search queries first, decide whether to fetch full pages, then generate a cited answer. Only the third layer opens up multi-step reasoning and autonomous web access, with limits on call counts and spend.
Architecturally, the business layer should retain veto power over tools rather than forwarding every model proposal verbatim:
user_message-> policy_check (file type / link domain / privacy)-> optional_parse (page estimate, async or sync)-> optional_search (max_calls, cache_key)-> model_generate (citations required)-> meter_and_log (pages, calls, tokens)
This way, even if the underlying capabilities are provided by cloud vendors as generic categories (object storage, queues, logging, monitoring), the application still owns the product semantics: what can be searched, what requires human confirmation, and what must carry citations.
Who Should Use Built-In Switches, and Who Should Buy Parts Separately
Scenarios suited to built-in parameter-based combinations: internal tools, prototype validation, and low-traffic assistants where answers may carry public web citations. The goal is validating interactions quickly, not optimizing cost to the last cent.
Scenarios suited to purchasing parts separately: teams that already have a workflow engine, where retrieval must be confined to a proprietary knowledge base, crawling must go through a compliance whitelist, or voice must connect to an existing call center. In these cases, the conversational model is just one component; retrieval and parsing must be replaceable and auditable.
What you can’t skip by building in-house: permissions (who can upload which types of files), tenant isolation, citation display and disclaimers, policies for minors and sensitive content, and billing alerts. None of these disappear just because the APIs got more complete.
A Practical Checklist
- Generate a unique ID per user request, threaded through parsing, retrieval, generation, and billing.
- Pre-check file page counts and types; switch to asynchronous processing with progress updates above a threshold.
- Set hard limits on retrieval and crawling; default to disabling “unlimited web access during reasoning.”
- Citations must be clickable or displayable as summaries; reject confident statements without sources.
- Cache keys should include file hashes and normalized search queries, with hit rates logged.
- Build dashboards for pages, call counts, and tokens—view cost by feature flag, not by model name.
- On compliance, default to “user data is not used for model improvement,” and retain delete and export paths.
Closing Thought
Decomposing complete applications into individually purchasable search, crawling, recognition, speech, and conversation lowers the assembly barrier—it does not lower the bar for engineering and governance. The real question developers must answer is: once the parts come from the platform, do you still control orchestration, compliance, and the bill? Calling APIs is just the entry ticket. Turning backend stability, compliance boundaries, and per-session cost into operable metrics—that’s what determines whether a product survives its trial period.
