How to Improve MaaS Gross Margin: Technical Paths for LLM API Platforms
This article examines why gross margin, not just revenue growth, determines whether a Model-as-a-Service (MaaS) business is healthy. Using a reported case in which a leading Chinese LLM company grew annual recurring revenue (ARR) on its API platform roughly 60x while lifting platform gross margin from 3.3% to 18.9%, it explains why ARR is a better signal than total revenue and why revenue and cost sit on the same chain in token-based pricing. It then details two technical paths to margin improvement: pushing unit cost per token down through model compression, KV Cache and decoding optimization, scheduling and elasticity, and observability-driven governance; and shifting the customer mix toward high-value accounts through value tiering rather than price increases. A five-step implementation order and a simplified routing example are included.
1. The Starting Point: Revenue and Cost Sit on the Same Chain
A leading Chinese LLM company disclosed in its first annual report after going public: full-year revenue of roughly RMB 724 million, up 131.9% year over year, among the highest of comparable domestic companies. More notable, annual recurring revenue (ARR) on its model-as-a-service (MaaS) API platform reached roughly RMB 1.7 billion, an increase of about 60x year over year. The platform’s gross margin rose from 3.3% in the prior year to 18.9%, while the company’s overall gross margin had long stayed above 50% in earlier years.
These numbers are worth repeated study by developers and enterprise technical leaders because they answer two questions at once: whether MaaS can scale, and whether it can be profitable once it does.
The MaaS business model is not complicated: package model capabilities as standardized APIs, and have enterprise customers and developers pay by usage (tokens). Its revenue curve is naturally steep, because the barrier to onboarding is extremely low — an API key and a few lines of code are enough to run the first request. But the cost curve is just as steep: behind every token generated are real compute occupancy, GPU memory occupancy, and network transfer. Revenue and cost are bound to the same chain. When scaling up, if unit cost falls more slowly than price per unit, a structural trap appears: the more you serve, the thinner the margin.
So judging whether a model provider is healthy cannot rely on revenue growth alone. It requires a combination of three indicators: the share of recurring revenue, the unit cost curve per token, and the contribution of high-value customers.
2. Why ARR Says More Than Total Revenue
ARR measures “repeatable revenue driven by continued usage.” In the MaaS context, its meaning is stricter than in traditional SaaS: it requires not only that customers renew, but that they keep calling the API and steadily consume tokens.
The problem with one-off, project-based revenue is unpredictability. A private deployment for a government or enterprise customer may contribute tens of millions, but once delivery is complete, revenue drops to zero and the team must find the next project. Growth built on API calls works differently: revenue comes from model capabilities embedded in the customer’s business systems — customer service systems, coding assistants, document processing pipelines, marketing content generation. As long as the customer’s business is running, tokens are being consumed.
From an engineering perspective, this shift demands something entirely different from the provider:
- Project work focuses on delivery acceptance; MaaS focuses on SLAs and availability.
- Project work focuses on a feature checklist; MaaS focuses on P99 latency and rate-limiting strategy.
- Project work focuses on one-time integration; MaaS focuses on SDK version compatibility and smooth upgrades.
In other words, 60x ARR growth is essentially not a sales result but an outcome of platform engineering maturity.
3. Path One: Push Unit Cost per Token to the Limit
The core idea of inference cost optimization is a single sentence: make the same hardware produce more effective tokens. The approaches commonly used in the industry fall into four layers.
The first layer is model-side compression. This includes reducing parameter count, structured pruning, quantization (for example, converting weights from high-precision floating point to low-bit representations), and knowledge distillation — training a small model on the output distribution of a large model so the small model approaches large-model quality on the target task. The value of distillation is routing “occasional complex requests” to the large model and “high-frequency simple requests” to the small one.
The second layer is decoding strategy optimization, centered on KV Cache management. Autoregressive generation requires caching historical Key/Value tensors, and memory occupancy grows linearly with context length. Common optimizations include paged memory management (splitting the cache into fixed-size blocks allocated on demand to reduce fragmentation), prefix reuse (sharing one cache across requests with the same system prompt), and continuous batching (scheduling at the token level rather than the request level, so long and short requests mix to fill compute gaps).
The third layer is scheduling and elasticity. Peak-to-trough differences in inference load are large; utilization during the day and in the early morning can differ by several times. Elastic scaling through a container platform, placing offline batch jobs in trough periods, and isolating resources between latency-tolerant asynchronous tasks and real-time tasks all raise average utilization significantly. Every 10 percentage points of utilization improvement lowers the fixed cost allocated to each token by a notch.
The fourth layer is fine-grained governance driven by observability. Without granular metrics, optimization is blind. At minimum you need to collect: token distribution by model version, by tenant, and by endpoint; percentiles of first-token latency and overall latency; cache hit ratio; batch fill ratio; and peak memory per request. A schematic metric structure:
request_total{tenant, model, endpoint}token_in_total / token_out_total{tenant, model}latency_first_token_ms (p50/p95/p99)kv_cache_hit_ratio{model}batch_fill_ratio{gpu_pool}gpu_memory_peak_bytes{model, precision}
With this data in place, you can answer the key question: which class of requests is eating the margin? Long-context document processing, or high-concurrency short conversations? Optimization has to target the real distribution.
4. Path Two: Shift the Customer Mix Toward High Value
The report attributes the other key factor in margin improvement to a rising share of high-value leading customers, and this holds up in engineering terms for three reasons.
First, leading customers’ usage is predictable. They are typically already in production with capacity planning, so the provider can make resource reservations and purchasing decisions accordingly, reducing the redundant compute kept on hand for sudden traffic spikes. Redundancy is a margin killer.
Second, leading customers are more willing to pay for certainty. Enterprise customers are not buying the cheapest tokens; they are buying a service that is reliably available, with data isolation, auditable traceability, and SLA guarantees. This kind of demand lets a provider trade engineering investment for a premium instead of simply competing on price.
Third, leading customers integrate more deeply. Deeper integration means higher switching costs, and also a longer lifecycle and a smoother usage curve, which directly lifts net revenue retention.
It is worth stressing that “raising price without losing volume” is not achieved by raising prices, but by value tiering: split capabilities into different tiers (latency-first, cost-first, quality-first), serve them with different model sizes and resource pools, and let customers choose based on their business scenario. Customers pay for quality; the provider allocates resources for quality; neither side pays for idle capacity.
5. Turning Margin into Sustainable Engineering Capability
To reproduce a curve where gross margin rises with scale on your own platform, proceed in this order.
- Build metering first. Record input and output tokens, model version, tenant identifier, and actual resource consumption at the granularity of a single request, forming usage facts that can be reconciled. Without accurate metering, neither cost allocation nor pricing is possible.
- Then build tiered routing. Use a lightweight classifier or rule engine to judge request difficulty: simple requests go to a small model or the cache, complex requests go to a large model. This is the single highest-return optimization.
- Next build a caching system. Result caching and semantic caching for high-frequency repeated requests (common Q&A, templated generation), combined with prefix caching to reuse system prompts, directly cut a meaningful share of repeated computation.
- Then add elasticity and co-location. Put online inference and offline batch processing in a unified resource pool, isolate them with priority and quota, and raise average utilization to a reasonable range.
- Finally close the feedback loop. Feed real production call distributions back into the evaluation set, and continuously run joint quality-and-cost evaluation, avoiding both extremes: sacrificing quality to save cost, or piling on compute endlessly for quality.
A simplified routing decision sketch:
def route(req):# Return immediately on exact/semantic cache hit, zero inference costif cache.hit(req):return cache.get(req)# Short, patterned requests go to a small modelif req.est_tokens < 512 and classifier.is_simple(req):return small_model.generate(req)# Complex reasoning and long context go to a large modelreturn large_model.generate(req)
6. Conclusion
MaaS is not inherently a business where revenue grows but profit does not. When revenue is driven by continued usage, cost is determined by inference efficiency, and margin is supported by customer mix and value tiering, scaling up brings a matching improvement in gross margin. For developers and enterprises, three things are worth building: a usage system that can be measured precisely, a unit cost per token that keeps falling sustainably, and service tiering that lets customers pay for certainty. On top of Baidu AI Cloud’s model services and supporting general cloud capabilities such as data, containers, and monitoring and alerting, this approach has a practical engineering foundation.
