induwara.lk
induwara.lkAI · LLM inference pricing

Cheapest LLM API — Inference Provider Comparison

Compare the serverless hosts that run open models — Together, Fireworks, DeepInfra, Groq, Cerebras, OpenRouter, Novita and Hyperbolic — on price per million tokens and output speed for the same model, and estimate your monthly bill in US dollars and Sri Lankan rupees. No signup, sources cited.

By Induwara AshinsanaUpdated Jul 3, 2026
Compare inference providers
Snapshot · verified 2026-07-03
Monthly volume

The default reference — a strong general 70B, hosted everywhere

Prompt tokens. Accepts 10M, 500K, 1B.

Completion tokens. Accepts 2M, 500K.

Prefilled from the CBSL indicative rate. Editable.

Cheapest for your volume
$3.10/mo
Rs 946 · via DeepInfra
Fastest output
2,100 tok/s
via Cerebras · 1M tokens in 7.9 min

Price & speed · Llama 3.3 70B Instruct

ProviderIn $/1MOut $/1Mtok/s1M outEst. $/moEst. Rs/mo
DeepInfraCheapest$0.23$0.40309.3 h$3.10Rs 946
Novita AI$0.39$0.39406.9 h$4.68Rs 1,427
Hyperbolic$0.40$0.40357.9 h$4.80Rs 1,464
Groq$0.59$0.7984019.8 min$7.48Rs 2,281
Together AI$0.88$0.881202.3 h$10.56Rs 3,221
OpenRouter$0.88$0.881002.8 h$10.56Rs 3,221
Fireworks AI$0.90$0.901801.5 h$10.80Rs 3,294
CerebrasFastest$0.85$1.202,1007.9 min$10.90Rs 3,325

Access & data policy

ProviderOpenAI SDK base URLTrains on prompts?Free to start
DeepInfrahttps://api.deepinfra.com/v1/openaiNoSmall trial credit
Groqhttps://api.groq.com/openai/v1NoFree tier (rate-limited)
Cerebrashttps://api.cerebras.ai/v1NoFree tier (daily token cap)
Together AIhttps://api.together.xyz/v1No$1 signup credit
Fireworks AIhttps://api.fireworks.ai/inference/v1No$1 signup credit
OpenRouterhttps://openrouter.ai/api/v1VariesPay-as-you-go + free models
Novita AIhttps://api.novita.ai/v3/openaiNoSmall signup credit
Hyperbolichttps://api.hyperbolic.xyz/v1NoTrial credit

Every host exposes an OpenAI-compatible endpoint — point the OpenAI SDK at the base URL and change the model name. “Varies” means an aggregator whose data policy depends on the upstream host it routes to.

Prices are per-1M-token list rates re-confirmed against each host's pricing page, and throughput comes from Artificial Analysis' independent measurements — both a dated snapshot from 2026-07-03, not a live feed. Serverless prices and measured speeds move; confirm the current figure on the provider before you commit. Reference generation time is quoted for 1,000,000 output tokens.

How it works

This is a comparison, not a black box. Every provider is priced for the same reference open model so the numbers line up: pick Llama 3.3 70B and you see what Together, DeepInfra, Groq and the rest each charge to run exactly that model. Two figures drive the decision — price per million tokens and output throughput in tokens per second — and the tool computes both from published data, with no network call and no opinion baked in.

1. Price per million tokens

Every host on this list quotes in US dollars per 1,000,000 tokens, billed separately for input (prompt) and output (completion) tokens. Your estimated monthly cost is a plain weighted sum:

cost = (input ÷ 1,000,000) × input $/1M + (output ÷ 1,000,000) × output $/1M

Output tokens are usually the same price or dearer than input tokens, which is why a chat workload heavy on generation costs more than a classification workload that reads a lot and writes little.

2. Output throughput and generation time

Speed is the second axis. Output throughput — how many tokens per second a host generates — comes from Artificial Analysis' independent cross-provider measurements, not the vendors' own marketing. From it the tool derives a “time to generate 1M tokens” readout, seconds = 1,000,000 ÷ tokens-per-second, so the price↔speed trade-off is visible: a specialised host like Cerebras or Groq is many times faster than a cheap GPU-backed marketplace, and that gap decides whether the extra cost is worth it for a latency-sensitive chat UX.

3. Ranking and the rupee figure

Providers that do not host the selected model are dropped from the ranking rather than counted as free. The cheapest available host is highlighted and the fastest is badged; you can re-sort by cheapest, fastest, or provider name. Every dollar total is converted to rupees at an editable USD→LKR rate, prefilled from the Central Bank of Sri Lanka indicative figure (305 LKR/USD at the last-verified date) — useful when you earn in dollars but budget locally.

4. Cross-check

Providers quote per-1M tokens, but many SDK cost fields and invoices report per-1K. As an internal check the same monthly cost is recomputed from per-1,000-token unit prices (price ÷ 1000) × (tokens ÷ 1000); the per-1M and per-1K methods agree to the cent — the same idea as checking a tax figure against the regulator's own formula. All prices carry a last-verified date because serverless rates change often; this is a directly-comparable snapshot, not a live feed.

Worked examples

Cheapest host for a chatbot — Llama 3.3 70B, 10M input + 2M output / month

  1. cost = (10,000,000 ÷ 1M) × in $/1M + (2,000,000 ÷ 1M) × out $/1M = 10·in + 2·out
  2. DeepInfra $0.23 / $0.40 → 10×0.23 + 2×0.40 = 2.30 + 0.80 = $3.10 ← cheapest
  3. Groq $0.59 / $0.79 → 5.90 + 1.58 = $7.48
  4. Together $0.88 / $0.88 → 8.80 + 1.76 = $10.56
  5. Fireworks $0.90 / $0.90 → 9.00 + 1.80 = $10.80
  6. Cheapest = DeepInfra $3.10 → Rs 3.10 × 305 = Rs 945.50 / month

Speed trade-off — time to generate 1,000,000 output tokens

  1. seconds = 1,000,000 ÷ tokens-per-second
  2. Cerebras ≈ 2,100 tok/s → 1,000,000 ÷ 2,100 = 476 s ≈ 7.9 min ← fastest
  3. Groq ≈ 840 tok/s → 1,000,000 ÷ 840 = 1,190 s ≈ 19.8 min
  4. Together ≈ 120 tok/s → 1,000,000 ÷ 120 = 8,333 s ≈ 2.3 h
  5. So the cheapest host (DeepInfra) is not the fastest — pay up for Groq/Cerebras only if latency matters.

Availability edge — DeepSeek-V3, 5M input + 1M output / month

  1. Hyperbolic $0.25 / $0.25 → 5×0.25 + 1×0.25 = 1.25 + 0.25 = $1.50 ← cheapest
  2. DeepInfra $0.49 / $0.89 → 2.45 + 0.89 = $3.34
  3. Fireworks $0.90 / $0.90 → 4.50 + 0.90 = $5.40
  4. Groq and Cerebras do not host DeepSeek-V3 → excluded, never counted as $0
  5. Cheapest = Hyperbolic $1.50 → Rs 1.50 × 305 = Rs 457.50 / month

Frequently asked questions

Sources & references

Every price and throughput figure was last re-confirmed against the sources above on 2026-07-03. Serverless inference pricing and measured speeds change frequently — these are illustrative reference figures for budgeting and comparison, not live quotes. Confirm the current rate on the provider before you commit.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a stale price, a missing provider, or want another reference model added?

Email me at [email protected] — most fixes ship within 24 hours.