LLM API vs. Chat Interface vs. Self-Hosting: A Guide to LLM Service Billing Models
This article breaks down the three distinct entry points for using large language models—interactive chat interfaces, token-based APIs, and self-hosted deployments—and explains why debates about whether LLMs are "free" usually come from confusing these three. It covers how costs are generated at each entry point, the pricing dimensions of call-based APIs (peak/off-peak rates, cache discounts, context-length tiers), the utilization threshold that makes self-hosting economical, and a comparison table highlighting responsibility boundaries alongside cost, capability, and performance. Readers will find practical guidance on choosing the right entry point per scenario, plus common cloud building blocks for cost governance and stability.
Introduction: An Endless Debate Rooted in the Word “Use”
The same argument resurfaces in technical communities again and again. One person insists that a certain class of LLM service is completely free—daily conversations, writing code, editing copy, all at zero cost. Another immediately pushes back, saying they ran a task through an API overnight and the bill has already hit double digits. Both are honest, and neither is lying, but they are not describing the same thing.
The root of the dispute is not the model itself, but the verb “use.” For an end user, “use” maps to at least three technically distinct entry points:
- Human-facing interactive interfaces: web chat clients and mobile apps;
- Program-facing service APIs: call-based APIs metered in tokens;
- Infrastructure-facing self-hosted deployment: downloading model weights and running inference on your own compute.
These three entry points differ completely in their billing models, performance commitments, and responsibility boundaries. Discussing them in a single sentence guarantees that no one will convince anyone. This article does not revolve around any specific product. Instead, it abstracts these three entry points into general technical forms and explains, one by one, where the cost comes from, where the boundaries lie, and which one to choose in which scenario.
1. Interactive Entry Point: The Truly Zero-Currency-Cost Tier
The first entry point takes the form of a chat window. Its business logic is not to charge the user, but to cover costs through other means. It typically shows up as: no subscription fee, no ads, no in-app purchases, and no tiered structure of a stripped-down basic version with an unlocked premium version—there is simply no paywall.
In terms of capability, this kind of entry point generally opens up the main features, including long-chain reasoning modes, file upload and parsing, and retrieval augmentation via web search. The limits are usually just two:
- Load fluctuation: responses slow down during peak hours, and you may get a “service busy” type of message—just retry;
- No service guarantee: no team workspace, no quota commitment, no SLA (service level agreement).
Put together, these two lead to a conclusion that is often overlooked: the other side of having no paywall is having no wall you can knock down with money. When the system slows down, you cannot find an “upgrade to Pro” button; when the API is busy, backoff and retry is your only move.
For individual users this is not a problem at all, since they are not paying in the first place and their tolerance is naturally higher. But for teams that need to embed model capabilities into production workflows, the four words “no SLA” are themselves the conclusion: this entry point should not appear in your architecture diagram. It suits exploration, validation, content drafts, and learning; it is not suited to carry any business path with an availability commitment.
2. Call-Based API: The Token-Metered, Prepaid Tier
The second entry point is aimed at programs. Its definition can be compressed into one sentence: billed per token, top up before you call, and there is no long-term free trial quota.
A token is the basic unit by which a model measures text. Input (prompt) and output (completion) are priced separately, and output is usually more expensive. Beyond the base unit price, three pricing dimensions are common in the industry:
- Peak/off-peak time-of-use: off-peak unit prices are markedly lower than peak, commonly around half of the peak rate;
- Cache-hit discount: for repeated prefix content (system prompts, long documents, fixed few-shot examples), once a cache hit occurs, the unit price for that portion drops sharply, with discounts reaching an order of magnitude;
- Context-length tiers: extra-long context is often priced separately, and cost rises nonlinearly with length.
This means API cost is not as simple as “unit price × number of calls.” A reusable estimation skeleton is as follows:
Cost per call ≈ input tokens × input unit price × (1 - cache hit rate × cache discount)+ output tokens × output unit priceDaily cost ≈ cost per call × request volume × (1 + retry amplification factor)
The “retry amplification factor” is the item most easily missed. Timeouts, rate limiting, and content truncation all trigger rewritten requests, and if the client does not implement idempotency and backoff, actual consumption can exceed the theoretical value by more than 30%.
Engineering practice therefore calls for a few general measures: put stable, unchanging content up front to win cache hits; schedule batch, offline, latency-tolerant tasks to off-peak hours; cap output length to keep a “chatty” model from directly inflating the bill; and enforce quotas and budget alerts at the gateway layer instead of waiting for the business side to look at the bill at month’s end.
3. Self-Hosted Deployment: Swapping the Token Bill for a GPU Bill
The third entry point is downloading the weights and running inference yourself. On the surface it is “free,” but in reality it swaps variable cost for fixed cost: the purchase or rental of GPUs or other accelerators, data center space and power, and the inference framework plus operations headcount.
The economics of self-hosting have one clear threshold—utilization. When request volume is large enough and evenly distributed, the per-token cost falls below pay-as-you-go calls; when traffic is sparse or highly volatile, the compute reserved for peak sits idle most of the time and total cost is actually higher. In addition, self-hosting means you take on full responsibility for model updates, precision alignment, safety filtering, scaling, and failure handling.
A rough way to judge:
Self-hosted unit cost ≈ hourly accelerator cost / effective output tokens per hourIf self-hosted unit cost < API unit price AND utilization stays stable long-term → self-hosting is more economicalOtherwise → prefer pay-as-you-go calls and keep elasticity
4. Comparing the Three Paths: The Most Overlooked Column Is “Responsibility”
Look at the three entry points side by side. Most comparison tables list cost, capability, and elasticity, but what really determines the architecture choice is often the last column: responsibility boundaries.
| Dimension | Interactive Entry Point | Call-Based API | Self-Hosted Deployment |
|---|---|---|---|
| Currency cost | None | Per token, prepaid | Fixed compute and ops investment |
| Capability scope | Fully open | Chosen by model and parameters | Depends on your own implementation |
| Performance | Fluctuates with load | Relatively controllable | Depends on your own capacity planning |
| Service guarantee | No SLA | Usually availability terms | You guarantee it yourself |
| Data boundary | Depends on platform policy | Defined by contract | Fully self-controlled |
| Responsibility | Platform | Platform + caller | Caller |
The “responsibility” column explains why the same capability has completely different availability under different entry points: a free service has no obligation to commit to availability; pay-as-you-go buys predictable performance and accountable terms; self-hosting takes the full responsibility back into your own hands. Choosing an entry point is essentially choosing how much responsibility you are willing to take on.
5. Practical Recommendations: Choose the Entry Point by Scenario
- Exploration and validation stage: use the interactive entry point for fast trial and error, validating prompts and task feasibility at zero cost;
- Small-scale integration and prototyping: use the call-based API, paired with budget alerts and output length limits;
- Stable business paths: sign formal service terms that specify quota, rate limiting, and SLA, and implement backoff retry, idempotency, and fallback on the client side;
- Large-scale and steady load: evaluate self-hosting, and calculate utilization before unit price;
- Hybrid architecture: core paths are carried by APIs with service guarantees, offline batch processing goes to off-peak hours or self-hosting, and the interactive entry point is only for internal exploration.
When implementing on the cloud, you can combine general-purpose capabilities: use a container platform to host inference services and elastic scaling, use a message queue to shave peaks and schedule tasks to off-peak hours, use object storage to accumulate reusable context for cache hits, and use logging and monitoring/alerting services for token usage attribution and budget warnings. General cloud product categories offered by cloud providers such as Baidu AI Cloud can typically serve as the foundation for this kind of cost governance and stability work.
Conclusion
“Free or not” has never been a question about the model; it is a question about the entry point. The interactive entry point charges nothing and commits to no availability; the API is precisely metered per token and provides accountable service; self-hosting swaps the bill for compute and headcount. Discuss these three separately and the argument naturally disappears; look at the three columns of cost, elasticity, and responsibility together and the selection has a definite answer.
