DeepInfra

Gemma 4 31B Turbo (DeepInfra) token cost calculator

Gemma 4 31B Turbo on DeepInfra — compare speed hosts like Cerebras at different unit rates.

Published list rates

Input

$0.09

per 1M tokens

Output

$0.34

per 1M tokens

Context window

256,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.00000009 $0.00000034 $0.000000165
10 $0.0000009 $0.000003 $0.000002
100 $0.000009 $0.000034 $0.000017
200 $0.000018 $0.000068 $0.000033
300 $0.000027 $0.000102 $0.00005
400 $0.000036 $0.000136 $0.000066
500 $0.000045 $0.00017 $0.000083
1,000 $0.00009 $0.00034 $0.000165
2,000 $0.00018 $0.00068 $0.00033
5,000 $0.00045 $0.0017 $0.000825
10,000 $0.0009 $0.0034 $0.00165
25,000 $0.00225 $0.0085 $0.004125
50,000 $0.0045 $0.017 $0.00825
100,000 $0.009 $0.034 $0.0165
250,000 $0.0225 $0.085 $0.04125
500,000 $0.045 $0.17 $0.0825
1,000,000 $0.09 $0.34 $0.165
5,000,000 $0.45 $1.70 $0.825
10,000,000 $0.9 $3.40 $1.65
50,000,000 $4.50 $17.00 $8.25
100,000,000 $9.00 $34.00 $16.50
500,000,000 $45.00 $170.00 $82.50
1,000,000,000 $90.00 $340.00 $165.00
10,000,000,000 $900.00 $3,400.00 $1,650.00
100,000,000,000 $9,000.00 $34,000.00 $16,500.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 111,111 29,412 60,606
$0.1 1.11M 294,118 606,061
$0.5 5.56M 1.47M 3.03M
$1.00 11.1M 2.94M 6.06M
$5.00 55.6M 14.7M 30.3M
$10.00 111.1M 29.4M 60.6M
$20.00 222.2M 58.8M 121.2M
$25.00 277.8M 73.5M 151.5M
$30.00 333.3M 88.2M 181.8M
$50.00 555.6M 147.1M 303M
$100.00 1.11B 294.1M 606.1M
$250.00 2.78B 735.3M 1.52B
$500.00 5.56B 1.47B 3.03B
$1,000.00 11.1B 2.94B 6.06B
$5,000.00 55.6B 14.7B 30.3B
$10,000.00 111.1B 29.4B 60.6B

Cost profile

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

About DeepInfra

Low-cost serverless inference for open models with transparent per-token rates. The Gemma 4 31B 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 Gemma 4 31B Turbo (DeepInfra)?

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

How much are 100 million mixed tokens?

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

What is the Gemma 4 31B Turbo (DeepInfra) price per million input and output tokens?

Input $0.09 and output $0.34 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