DeepInfra

Llama 3.1 8B Turbo (DeepInfra) token cost calculator

Ultra-cheap Llama 3.1 8B Turbo on DeepInfra for routing, classification, and light agents.

Published list rates

Input

$0.02

per 1M tokens

Output

$0.04

per 1M tokens

Context window

128,000

tokens

Pricing source: DeepInfra pricing

Token cost calculator

List prices are stored in US dollars. Conversions use the units-per-dollar exchange-rate snapshot last checked 2026-07-31

Estimate from text

Calculate from a token total

Project monthly volume

Uses the input/output mix above and a 30-day month: requests per day × tokens per request × 30.

Estimated cost

Estimated tokens
Characters
Words
Input tokens
Output tokens
Input cost
Output cost
Total cost
Combined price per 1M tokens
Estimated monthly cost
Estimated daily cost

Cost by token volume

Compare input-only, output-only, and 70/30 mixed workloads from one token to 100 billion. Intermediate bands make smaller production steps easier to price.

Tokens Input only Output only 70/30 mix
1 $0.00000002 $0.00000004 $0.000000026
10 $0.0000002 $0.0000004 $0.00000026
100 $0.000002 $0.000004 $0.000003
200 $0.000004 $0.000008 $0.000005
300 $0.000006 $0.000012 $0.000008
400 $0.000008 $0.000016 $0.00001
500 $0.00001 $0.00002 $0.000013
1,000 $0.00002 $0.00004 $0.000026
2,000 $0.00004 $0.00008 $0.000052
5,000 $0.0001 $0.0002 $0.00013
10,000 $0.0002 $0.0004 $0.00026
25,000 $0.0005 $0.001 $0.00065
50,000 $0.001 $0.002 $0.0013
100,000 $0.002 $0.004 $0.0026
250,000 $0.005 $0.01 $0.0065
500,000 $0.01 $0.02 $0.013
1,000,000 $0.02 $0.04 $0.026
5,000,000 $0.1 $0.2 $0.13
10,000,000 $0.2 $0.4 $0.26
50,000,000 $1.00 $2.00 $1.30
100,000,000 $2.00 $4.00 $2.60
500,000,000 $10.00 $20.00 $13.00
1,000,000,000 $20.00 $40.00 $26.00
10,000,000,000 $200.00 $400.00 $260.00
100,000,000,000 $2,000.00 $4,000.00 $2,600.00

Tokens available by budget

See how many tokens a fixed budget buys at the published rates. Display-currency values use the current exchange-rate snapshot shown on the page.

Budget Input tokens Output tokens Mixed tokens (70/30)
$0.01 500,000 250,000 384,615
$0.1 5M 2.5M 3.85M
$0.5 25M 12.5M 19.2M
$1.00 50M 25M 38.5M
$5.00 250M 125M 192.3M
$10.00 500M 250M 384.6M
$20.00 1B 500M 769.2M
$25.00 1.25B 625M 961.5M
$30.00 1.5B 750M 1.15B
$50.00 2.5B 1.25B 1.92B
$100.00 5B 2.5B 3.85B
$250.00 12.5B 6.25B 9.62B
$500.00 25B 12.5B 19.2B
$1,000.00 50B 25B 38.5B
$5,000.00 250B 125B 192.3B
$10,000.00 500B 250B 384.6B

Cost profile

  • A workload with 70% input and 30% output costs $0.026 per 1 million total tokens and $2.60 per 100 million.
  • At the same token count, output costs 2 times the input rate. Response length therefore deserves its own budget limit.
  • Filling the 128,000-token context window with input alone would cost about $0.00256, before any output.

About DeepInfra

Low-cost serverless inference for open models with transparent per-token rates. The Llama 3.1 8B Turbo (DeepInfra) page covers this meter in detail; the DeepInfra hub gathers the rest of the lineup with a pricing table, list-rate ranges, and calculators side by side.

See all DeepInfra models and the pricing table

How the text estimate works

For rough planning, CostUse uses about four characters per token and about 0.75 words per token. Actual tokenization changes with language, model, formatting, and special tokens.

These results use public list prices. Cache eligibility, batch or priority modes, long-context surcharges, discounts, and regional billing can change the final invoice.

Questions about this rate

How much is 1 million mixed tokens on Llama 3.1 8B Turbo (DeepInfra)?

About $0.026 at a 70% input / 30% output mix using list prices verified 2026-07-30.

How much are 100 million mixed tokens?

About $2.60 at the same 70/30 mix — useful for rough monthly volume planning.

What is the Llama 3.1 8B Turbo (DeepInfra) price per million input and output tokens?

Input $0.02 and output $0.04 per 1M tokens (USD list rates). Use the calculator above with your real token mix.

Is the text-to-token estimate exact?

No. The estimator approximates tokens from characters and words. Real bills depend on the provider tokenizer, special tokens, and discounts (cache, batch, priority).

What does cost per token mean, and why is output usually more expensive?

Providers charge for tokens processed. Output tokens (generated replies) often cost several times more than input tokens (your prompt), so completion length can dominate the bill.

Related models