Table of Contents
Why Cost per 1M Tokens Matters
If you run LLM inference at any meaningful scale, cost per million tokens is the single metric that determines whether your deployment is financially viable. A dedicated GPU server charges a flat monthly rate, so your effective cost per token drops as you push more volume through the hardware. API providers charge per token regardless of volume, which means costs scale linearly with usage.
This guide calculates the real cost per 1M tokens for each GPU tier available on open source LLM hosting platforms, then stacks those numbers against the major API providers. For an interactive version, use our cost per million tokens calculator.
How We Calculated the Numbers
Every cost figure below uses the same formula:
Cost per 1M tokens = Monthly server cost / (tokens per second x 86,400 seconds/day x 30 days / 1,000,000)
Tokens per second figures come from our tokens per second benchmarks, measured on LLaMA 3 8B with vLLM at batch size 1 on bare-metal servers. We assume 100% GPU utilisation across 30 days. Real-world utilisation varies, so your actual cost per token will be higher at lower utilisation rates.
Cost per 1M Tokens by GPU
Here is the full breakdown for every GPU tier, running LLaMA 3 8B inference at FP16 (or 4-bit quantised where VRAM requires it):
| GPU | VRAM | Tokens/sec | Tokens/day | Tokens/month | Cost per 1M tokens |
|---|---|---|---|---|---|
| RTX 3050 (6 GB) | 6 GB | 8 | 691,200 | 20.7M | ~$1.45 |
| RTX 4060 (8 GB) | 8 GB | 22 | 1,900,800 | 57.0M | ~$0.61 |
| RTX 4060 Ti (16 GB) | 16 GB | 31 | 2,678,400 | 80.4M | ~$0.56 |
| RTX 3090 (24 GB) | 24 GB | 42 | 3,628,800 | 108.9M | ~$0.28 |
| RTX 5080 (16 GB) | 16 GB | 68 | 5,875,200 | 176.3M | ~$0.40 |
| RTX 5090 (32 GB) | 32 GB | 95 | 8,208,000 | 246.2M | ~$0.53 |
The RTX 3090 delivers the lowest cost per million tokens thanks to its combination of strong throughput and affordable monthly hosting. The RTX 5080 and RTX 5090 push more tokens per second, but their higher server cost raises the per-token rate. For a head-to-head GPU comparison, read our RTX 3090 vs RTX 5090 breakdown.
API Pricing: OpenAI, Anthropic, Together.ai
Here is what the major API providers charge per 1M output tokens for comparable models as of early 2025:
| Provider | Model | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| OpenAI | GPT-4o | $2.50 | $10.00 |
| OpenAI | GPT-4o mini | $0.15 | $0.60 |
| Anthropic | Claude 3.5 Sonnet | $3.00 | $15.00 |
| Anthropic | Claude 3.5 Haiku | $0.80 | $4.00 |
| Together.ai | LLaMA 3 8B | $0.20 | $0.20 |
| Together.ai | LLaMA 3 70B | $0.90 | $0.90 |
Even the cheapest API option — Together.ai at $0.20 per 1M tokens for LLaMA 3 8B — is already more expensive than a self-hosted RTX 3090 at $0.28 per 1M tokens at moderate utilisation. At high utilisation, the self-hosted option pulls further ahead. For a deeper dive into alternatives, see our guide on Together.ai alternatives.
Self-Hosted vs API: Side-by-Side
This table compares the cost of processing 1 billion tokens per month using self-hosted GPUs versus API providers, all running LLaMA 3 8B or equivalent:
| Option | Cost for 1B tokens/month | Cost for 10B tokens/month |
|---|---|---|
| RTX 3090 (dedicated) | ~$28 | ~$280 (multiple GPUs) |
| RTX 5080 (dedicated) | ~$40 | ~$400 (multiple GPUs) |
| Together.ai (LLaMA 3 8B) | $200 | $2,000 |
| OpenAI (GPT-4o mini) | $600 | $6,000 |
| Anthropic (Claude 3.5 Haiku) | $4,000 | $40,000 |
At 1B tokens per month, a dedicated RTX 3090 costs roughly 86% less than Together.ai and 95% less than OpenAI’s GPT-4o mini. Use our GPU vs API cost comparison tool to model your own volume.
Get the Lowest Cost per Token
RTX 3090 dedicated servers deliver sub-$0.30 per million tokens. Fixed monthly pricing, bare-metal performance, UK datacenter.
Browse GPU ServersBest Value GPU for Token-Heavy Workloads
Highest throughput per dollar: RTX 3090. At 42 tokens/sec and the lowest monthly cost of the 24GB+ GPUs, the RTX 3090 remains the best value option for high-volume LLM inference. It handles LLaMA 3 8B, Mistral 7B, and most 13B models at 4-bit quantisation.
Best for larger models: RTX 5090. If you need FP16 inference on 13B+ parameter models, the RTX 5090’s 32GB VRAM is the only single-GPU option. The per-token cost is higher, but avoiding quantisation means better output quality.
Budget option: RTX 4060 Ti. For lighter workloads under 80M tokens per month, the RTX 4060 Ti provides decent throughput at a lower server price point. Ideal for internal tools or low-traffic chatbots.
For a full comparison of GPU performance across models, see our best GPU for LLM inference guide. If you want data privacy alongside low per-token costs, explore private AI hosting with full root access.
Key Takeaway
Self-hosted GPU inference is dramatically cheaper than API pricing at any volume above roughly 50M tokens per month. The RTX 3090 on a dedicated GPU server delivers cost per million tokens that no API provider can match — and the gap widens with scale. For teams processing billions of tokens monthly, the savings fund additional hardware within months.
Run the numbers for your workload with the LLM cost calculator, or explore more cost analysis in our cost and pricing guides.