Cost per million tokens = total monthly cost ÷ total tokens actually produced × 1,000,000. Total cost covers more than equipment depreciation: it also includes power, facilities, software, and operations staff. The denominator depends on utilization. On the same GPU server, unit cost can differ by more than 3x depending on how busy it is.
Once a GPU budget is approved, the next question is usually this: what does each token from this hardware actually cost? For internal use, the answer determines how much each department should be charged back. For an external AI service, it determines whether your pricing leaves any margin. Many teams estimate it as “GPU price divided by years of service,” which tends to underestimate the real figure by a wide margin. This article breaks down Token Factory costs, walks through a worked example, and then covers the variables that move cost and the main pricing methods. For the basics of Token Factory, start with What Is a Token Factory.

Figure 1 | Cost per million tokens = total monthly cost ÷ total tokens actually produced in the month × 1,000,000; actual output equals peak capacity multiplied by average utilization.
1. Why Look at Cost per Million Tokens Instead of GPU Price
GPU price tells you what it costs to buy the hardware. It does not tell you how much that hardware can produce. If a server sits idle most of the time, each token it generates is expensive. With good scheduling and high utilization, the same hardware spreads its cost much more thinly.
When NVIDIA describes the AI Factory, it also lists cost per token, token throughput, and utilization as indicators of economic performance. Using one million tokens as the unit has two advantages. Most major AI APIs are priced per million tokens, so the same unit lets you judge whether building your own is worth it. And the tokens each department or customer uses, multiplied by unit cost, give you the amount to charge back or bill.
2. Cost Breakdown: Five Categories of Spend
|
Category |
What it includes |
Common estimating mistake |
|---|---|---|
|
Equipment depreciation |
Purchase and deployment of GPU servers, storage, and networking equipment |
Counting only GPUs and leaving out servers, switches, and storage |
|
Power and cooling |
Electricity for compute and for cooling |
Counting only the GPUs’ rated power, not cooling or other equipment |
|
Facility and network |
Rack rental, external bandwidth, redundancy |
Forgetting to count space costs when using your own data center |
|
Software and licenses |
Platform software, operating systems, monitoring and security tools |
Assuming open source costs nothing and ignoring maintenance effort |
|
Operations staff |
Platform engineering, on-call, customer support, and billing |
Counting only dedicated staff, not time from people in shared roles |
These five categories add up to your total monthly cost. The key question is how many tokens to divide that total by.
3. Worked Example: The Same Server, More Than 3x Difference in Cost
The calculation below uses a set of illustrative assumptions. The numbers only demonstrate the method. Recalculate actual costs based on your equipment quotes, electricity rates, and workloads.
|
Item |
Illustrative assumption |
Monthly amount (NT$) |
|---|---|---|
|
Equipment depreciation |
One 8-GPU server with networking and storage, NT$12 million in total, depreciated over 36 months |
333,333 |
|
Power and cooling |
About 10 kW including cooling, 720 hours per month, NT$5 per kWh |
36,000 |
|
Facility and network |
Racks, bandwidth, and redundancy |
60,000 |
|
Software and operations staff |
Allocated platform software, monitoring, and staff costs |
120,000 |
|
Total |
549,333 |
Assume this server can sustain 20,000 tokens per second at full load (summed across all concurrent requests). A month has about 2,592,000 seconds, so full-load output is about 51.8 billion tokens. But a server never runs at full load all the time, so actual output must be multiplied by average utilization:
|
Average utilization |
Actual monthly output |
Cost per million tokens |
|---|---|---|
|
20% |
About 10.4 billion tokens |
About NT$53.0 |
|
40% |
About 20.7 billion tokens |
About NT$26.5 |
|
70% |
About 36.3 billion tokens |
About NT$15.1 |

Figure 2 | With the same equipment and spend, raising utilization from 20% to 70% lowers cost per million tokens from about NT$53 to about NT$15. Figures are illustrative assumptions, not measurements or quotes.
Raising utilization from 20% to 70% brings cost per million tokens down from NT$53 to about NT$15. That is why running a Token Factory is often less about buying more GPUs and more about keeping the GPUs you have fully and efficiently scheduled.
Under these assumptions, the server produces about 2 tokens per second per watt (20,000 tokens per second ÷ 10,000 watts). This is the metric often called tokens per watt. In a data center with a fixed power ceiling, it determines how much output you get from the same energy.
4. Six Variables That Affect Cost per Token
The formula is simple. The hard part is that every number in it can change. These six variables are the most common reasons actual cost drifts from the estimate:
- Utilization: The biggest variable. Sharing GPUs across departments, letting other projects borrow idle resources, and scheduling batch jobs overnight all raise utilization. See Managing GPU Resources Effectively and GPU Partitioning.
- Batching and concurrency: Handling more requests at once increases overall throughput, but each user may wait longer. The lowest-cost configuration does not always meet service-quality requirements.
- Model size and quantization: On the same hardware, smaller or quantized models produce more tokens per second. Model capability also differs, so use task completion rate to judge whether the trade-off pays off.
- Context length: Long-document Q&A, RAG, and multi-turn conversations bring in large numbers of input tokens, use more memory, and lengthen time to first token.
- Input-to-output ratio: Output tokens must be generated one after another and usually take more compute than reading input. When estimating, calculate input and output separately based on the actual ratio in your workloads.
- Failures and retries: Timeouts, format errors, and agents retrying tool calls all consume tokens without producing usable results. With a 10% retry rate, actual cost goes up accordingly.
5. From Cost to Pricing: Three Methods
|
Method |
How it works |
What to watch for |
|---|---|---|
|
Cost-plus |
Cost per million tokens plus a target margin |
Cost shifts as utilization changes, so recalculate regularly |
|
Market reference |
Start from public API prices, then adjust for service differences |
Public prices may not reflect the same models or service levels |
|
Service-tier pricing |
Separate prices for shared resources, reserved capacity, and dedicated resources |
Each tier must have real technical isolation |
Take service-tier pricing as an example. A shared-resource plan has the lowest price but may queue at peak times. A reserved-capacity plan guarantees a set level of throughput. A dedicated-resource plan offers the strongest isolation and also the highest fixed cost. These three plans map to how operational responsibilities are divided across service models such as GaaS, MaaS, and TaaS.
6. Make Cost Figures Traceable
A worked example is only the starting point. In production, cost per million tokens has to be derived from actual records, and every line item has to be explainable at month-end reconciliation. Each usage record should capture at least the tenant or department, project and user, model version, input and output tokens, GPU resources used and run time, whether the request succeeded or was retried, and the rate version applied. These fields need to be linked by the same IDs across your inference, monitoring, and billing systems. For more on metering and reconciliation design, read How Token Factory Billing Works.
INFINITIX ixCSP is a commercial compute service platform built on AI-Stack. Its published capabilities include usage tracking, real-time billing, and multi-tenant management, which can serve as the foundation for this metering and billing chain.
7. FAQ
How do you calculate cost per million tokens?
Divide total monthly cost (equipment depreciation, power and cooling, facility and network, software, and staff) by the number of tokens actually produced that month, then multiply by one million. Actual output equals peak capacity multiplied by average utilization.
What has the biggest impact on token cost?
Usually utilization. Under the illustrative assumptions in this article, raising the same hardware’s utilization from 20% to 70% cuts cost per million tokens to less than one-third of the original.
Is building your own Token Factory always cheaper than using a cloud API?
Not necessarily. When utilization is low or workloads fluctuate widely, a cloud API may be the better deal. Building your own usually pays off when utilization is high enough, when data has to stay on premises, or when you plan to offer services externally.
Why do output tokens cost more than input tokens?
Output tokens must be generated one at a time in sequence, while input can be read and processed all at once. Generation takes more compute and time, so most services price output higher.
Start with a Spreadsheet
Cost per million tokens is not a fixed number. It is the result of equipment, power, staff, and utilization working together. Whether a Token Factory makes money comes down to measuring continuously, raising utilization continuously, and keeping every unit of usage traceable.
If you are planning a GPU compute service, talk with us about AI-Stack and ixCSP. Share your current hardware scale, utilization, and target users, and we can build a cost model that fits your actual situation together.