Scaling Enterprise AI Agents: What It Takes to Reach Profitable Production

    This article examines why the buyer of AI agents is shifting from developers to business teams, and proposes a two-axis framework for evaluating AI investment: full-stack coordination on the supply and cost side, and application ecosystem depth on the demand and monetization side. It covers layered ROIC modeling, why entry-point migration does not automatically erode platform value, the return of model competition to intelligence rather than price cuts, on-device versus cloud routing, and the concrete engineering levers that reduce cost per token. A deployment checklist is included.

    1. Background: Why the Buyer of Agents Is Moving from Developers to Business Roles

    Over the past two years, the main buyers of large-model spending have been R&D teams, and procurement has centered on API call volume, developer tool seats, and experimental compute. The next wave of incremental demand comes from agents in everyday work scenarios: it extends the paying audience from “people who can write code” to legal, finance, marketing, and customer support roles outside engineering. This shift has two direct consequences.

    First, the procurement decision chain gets longer. Budgets for non-engineering roles usually sit in business cost centers, which are more sensitive to quantifiable labor-hour savings and auditable compliance, and largely indifferent to model leaderboards. Second, demand shifts from a single model call to a bundle of “software subscription + model calls + supporting compute.” Cloud providers can therefore capture revenue at three layers at once, but only if metering, quotas, and billing are unified across all three.

    The consumer-side path is different but equally clear: agents move from answering questions to advertising and transactions. Existing user entry points, merchant resources, and payment systems substantially lower commercialization costs, because the three most expensive things—traffic, supply, and settlement—already exist. The agent only needs to add the middle layer between intent recognition and execution.

    2. Analytical Framework: Full-Stack Coordination Governs Supply and Cost, Application Ecosystem Governs Demand and Monetization

    Abstracting the above into a reusable framework gives two orthogonal axes.

    • Supply and cost axis (full-stack coordination): whether chips, cloud infrastructure, models, and inference systems are co-optimized within one engineering system. It determines cost per token, delivery predictability, and peak capacity.
    • Demand and monetization axis (application ecosystem): whether entry points, depth of workflow embedding, and fulfillment elements such as merchants and payments are in place. It determines conversion rate and average order value.

    Together the two axes underpin capital returns. Investment that optimizes only one axis tends not to show up in ROIC: piling up compute dilutes returns, while building only applications gets squeezed by upstream costs.

    How to Write the Baseline Estimate (illustrative, not real data)

    To assess whether an AI investment can produce positive profit, use layered ROIC rather than overall gross margin. Illustrative code:

    1. def roic_by_layer(revenue, gross_cost, allocated_opex, invested_capital):
    2. # Layered accounting: evaluate returns separately for IaaS / MaaS / applications
    3. nopat = (revenue - gross_cost - allocated_opex) * (1 - tax_rate)
    4. return nopat / invested_capital
    5. layers = {
    6. "iaas": dict(revenue=100, gross_cost=55, allocated_opex=18, invested_capital=200),
    7. "maas": dict(revenue=60, gross_cost=22, allocated_opex=12, invested_capital=150),
    8. "app": dict(revenue=40, gross_cost=10, allocated_opex=14, invested_capital=120),
    9. }

    Three engineering disciplines matter: depreciation life for compute must match the real usage cycle; shared resources (network, storage, control plane) should be allocated by call volume rather than split evenly across departments; and the revenue elasticity created by price cuts must be modeled separately, otherwise returns are overstated.

    3. Entry-Point Migration Does Not Mean Loss of Platform Value

    A common misjudgment is that if an external agent captures the entry point, the platform’s core business will suffer. A more rigorous test is whether the transaction loop can be completed independently. Data licensing, transaction matching, payment settlement, and offline fulfillment form the ecosystem moat; an external agent can typically complete only the “information—recommendation” segment and cannot independently complete “order—payment—fulfillment—after-sales.”

    The impact is therefore more likely to appear as improvements in recommendation efficiency, ad efficiency, and operating efficiency, with stronger core-business profit and new application revenue together supporting valuation. The implication for technical teams: embed agent capabilities first at high-frequency nodes in the existing fulfillment chain (search, price comparison, ordering, support tickets) rather than standing up an isolated entry point.

    4. Model Competition Returns to Intelligence, and On-Device Penetration Opens the Next Phase

    The price-performance frontier iterates quickly, so price cuts alone cannot create a durable advantage. What actually sets the ceiling for handling high-value tasks is two things: post-training (data construction, preference alignment, evaluation loops) and infrastructure engineering capability (scheduling, fault tolerance, memory management for long context).

    On-device penetration changes the architectural constraints: latency, memory, power, and privacy become hard boundaries. In engineering terms this usually means tiered routing between a small on-device model and a large cloud model. Illustrative logic:

    1. def route(task):
    2. if task.privacy_sensitive or task.p95_latency_ms < 300:
    3. return "on_device" # On-device inference; data never leaves the device
    4. if task.complexity <= 2:
    5. return "small_cloud" # Small cloud model; cost first
    6. return "large_cloud" # Complex reasoning; quality first

    Routing policy needs continuous regression against a unified evaluation set to avoid silent quality decay caused by cost reduction.

    5. Engineering Payoffs of Full-Stack Coordination: Supply Assurance and Unit Cost

    Take a cloud provider’s in-house accelerator roadmap as an example (discussed here only as a general technical pattern): the value of a self-developed chip lies mainly not in peak specifications but in supply assurance and unit cost. When the supply of external accelerators is constrained, large-scale delivery of an in-house option improves order fulfillment capacity and delivery control; co-optimizing chip iterations with models and systems preserves margin through inference price-cut cycles.

    Actionable optimization concentrates on reducing “non-compute overhead”:

    1. Communication: raise inter-chip interconnect bandwidth and memory capacity to cut cross-card transfer and recomputation;
    2. Numerical precision: use lower bit widths (such as FP8/FP4) for inference within business-acceptable error, with calibration and fallback strategies;
    3. Scheduling: continuous batching, paged KV cache, and prefix reuse to reduce scheduling and adaptation overhead;
    4. Observability: use P95/P99 latency and cost per million tokens on real workloads as core metrics, not peak throughput.

    Corresponding capacity planning sketch:

    1. # Use unit cost, not card count, as the basis for scaling decisions
    2. def scale_decision(current_cost_per_mtok, target_cost, load_growth):
    3. projected = current_cost_per_mtok / (1 + efficiency_gain)
    4. need_scale = projected > target_cost or load_growth > headroom
    5. return {"scale": need_scale, "projected_cost": projected}

    A common approach at Baidu AI Cloud in similar scenarios is to combine a container platform, object storage, message queues, log services, and monitoring and alerting into an observable, elastically scalable inference foundation, with unified metering supporting cost allocation and quotas.

    6. Deployment Checklist

    • Are returns accounted for in layers across IaaS/MaaS/applications, with consistent depreciation and shared-cost definitions?
    • Is there a capacity model built around cost per token and P95 latency?
    • Is the agent embedded in the existing fulfillment chain rather than an isolated entry point?
    • Is there tiered device-cloud routing with unified evaluation regression?
    • Do data licensing, payment, and fulfillment form a closed loop, and can an external agent complete the transaction independently?

    Conclusion: the supply-and-cost axis and the demand-and-monetization axis must advance together. Full-stack coordination pushes unit cost down to a level that supports competitive pricing, while the application ecosystem raises monetization efficiency to a level that covers the investment. Only then does AI spending have a basis for positive profit.