LLM Inference Credit Pricing: Compute Costs and Supply Logic
This article explains how compute costs shape pricing and credit limits for large language model (LLM) inference. It covers cost per token, break-even pricing, common ways to reduce inference cost, how to measure response latency, and how to choose models and plan failover.
1. Why Credit Adjustments Are a Technical Issue
Credits for LLM services may look like a marketing tool, but they are determined by the underlying inference cost. Each token a provider processes consumes GPU time, GPU memory, and bandwidth. The floor for pricing is therefore the marginal cost per token. Understanding this makes it possible to tell whether a credit increase is a discount, a subsidy, or a normal pass-through of savings from supply-side optimization.
The relationship between credits and price can be written as a simple conversion:
Usable tokens = credit amount ÷ unit price
At the same credit amount, a lower unit price gives more usable tokens. A larger credit balance and higher actual usage are therefore two different things. How many tokens a user can consume also depends on unit price, model capability, response speed, and stability.
2. What Makes Up the Cost per Token
Inference cost can be broken into two parts: hardware cost and throughput efficiency.
Cost per token ≈ (hourly cost per GPU × number of GPUs used) ÷ (effective output tokens per hour)
Three variables matter most:
- Hourly cost per GPU: depends on the hardware type, whether it is purchased or rented, and electricity and data center overhead.
- Number of GPUs used: larger models need more GPU memory, so they require more GPUs. Parameter count, precision format, and parallelism strategy together determine the minimum deployment size.
- Effective throughput: the number of tokens actually produced per hour. It is affected by batch size, the distribution of request lengths, concurrency, and scheduling strategy.
Effective throughput is the variable most often overlooked. On the same GPU, low concurrency means low utilization and a high cost per token. With high concurrency and good scheduling, the cost per token can drop significantly. As a result, providers often focus cost optimization on improving utilization rather than simply lowering hardware prices.
3. Break-Even Pricing and Promotional Credits
Pricing can be divided into three ranges:
- Below marginal cost: each request loses money. This can only work as a short-term tool for customer acquisition or growth.
- Slightly above marginal cost: covers variable costs but has difficulty absorbing fixed costs. It suits strategic pricing when there is clear spare capacity.
- Well above marginal cost: leaves room for sustainable profit, which is common in a stable commercial phase.
To judge whether a promotional credit is sustainable, first estimate the cost per token it implies. If usage during the promotion stays well below expectations, the provider may bear a relatively low actual cost. If usage grows quickly, cost pressure rises at the same pace. For this reason, promotional credits usually come with a time window and are adjusted after an observation period.
For users, a promotional discount does not necessarily mean a stable low price over the long term. A safer approach is to treat promotional credits as one-time test resources for checking how well a model performs on your own tasks.
4. Common Technical Approaches to Lowering Inference Cost
Providers typically reduce cost per token in the following ways:
- Continuous batching: dynamically combines requests of different lengths to reduce GPU idle time.
- Quantization: converts weights from high-precision to low-precision formats. This reduces GPU memory use and increases the number of concurrent requests a single GPU can serve. Quantization causes some accuracy loss, so the results must be verified with an evaluation set.
- KV cache reuse: reuses computed key-value caches for requests that share a prefix, which reduces repeated computation. This is especially effective for multi-turn conversations and long system prompts.
- Speculative decoding: uses a small model to predict candidate tokens, which the large model then verifies in batches. Under certain conditions, this increases generation speed.
- Targeted inference engine optimization: writes custom operators or adjusts memory layout for specific model architectures. This reduces kernel launch overhead and memory access bottlenecks.
Combined, these techniques can produce a substantial difference in cost. Actual gains depend on the model architecture, the request distribution, and the hardware, so no universal figure applies outside a specific scenario.
5. Evaluating Response Performance from the User Side
Users typically describe model speed with the following metrics:
- Time to first token (TTFT): the time from sending a request to receiving the first output token. It is mainly affected by queuing, prefill computation, and network round trips.
- Output throughput (tokens per second): the number of output tokens generated per second during the decoding stage. It is mainly limited by decoding compute and memory bandwidth.
- End-to-end latency: the total time to complete a full response. It equals TTFT plus the ratio of output length to output throughput.
When measuring, keep prompt length, output length, and concurrency fixed. Otherwise, results taken at different times cannot be compared. The following code shows a general measurement approach. It uses a placeholder API.
import timedef measure(stream_request, prompt, max_tokens=256):start = time.perf_counter()first_token_time = Nonetoken_count = 0for _ in stream_request(prompt, max_tokens=max_tokens):if first_token_time is None:first_token_time = time.perf_counter()token_count += 1end = time.perf_counter()ttft = first_token_time - startdecode_time = end - first_token_timetps = token_count / decode_time if decode_time > 0 else 0.0return {"ttft_s": ttft, "tps": tps, "total_s": end - start}
Repeat measurements on the same set of prompts several times. Report the median and percentiles instead of relying on a single result.
6. Selecting Models Across Capability, Speed, and Cost
Model selection should not rely on a single dimension. You can use task quality per unit of cost as a combined metric:
Cost-effectiveness = task quality score ÷ unit task cost
Task quality should come from your own evaluation set, not from general leaderboards. The evaluation set should cover typical inputs from your real business, including long contexts, structured output, code generation, and multimodal input. If the business involves image or file understanding, first confirm that the model supports the relevant modality. Strong text capability cannot substitute for it.
Speed metrics also need to fit the business scenario. Interactive applications are sensitive to time to first token, while batch offline tasks care more about total throughput and cost. The same model can deliver very different value in these two settings.
7. Multi-Model Failover and Switching Strategy
Relying on a single model service carries availability risk. A common approach is to design primary and backup routing, combined with health checks and degradation rules:
def route(request, providers):for provider in providers: # Sorted by priorityif not provider.is_healthy():continuetry:return provider.call(request, timeout=provider.timeout)except TimeoutError:provider.mark_degraded()continueraise RuntimeError("All model services are unavailable")
When implementing this, note three points:
- Different models may produce different output styles and formats, so validate the structure of key outputs before switching.
- Failover changes the cost structure, so record the actual charges for each switch.
- Health status should be calculated from the success rate and latency of real requests, not only from heartbeat endpoints.
8. Practical Recommendations for Developers and Enterprises
- Build a cost dashboard: track token usage, unit prices, and spending by model, business line, and request type. Review cost per task regularly.
- Validate with small traffic first: before a full switch, compare quality, latency, and cost on a small share of real requests.
- Separate promotional pricing from long-term pricing: promotional credits suit testing and validation. Long-term budgets should be based on stable unit prices.
- Keep a multi-model plan: prepare at least one backup model for critical workloads, and rehearse the switching process regularly.
- Include quality in cost evaluation: if a cheaper model needs more retries or manual correction, its actual cost may be higher.
Changes in LLM service pricing result from compute supply, inference efficiency, and market strategy working together. By understanding unit cost, latency metrics, and evaluation methods, you can make sound judgments across different combinations of price and credit.
