BroadRouter

DeepSeek V4 Flash 0731 vs Llama 3 8B API pricing

Updated

DeepSeek V4 Flash 0731: USD 0.06 input, USD 0.18 output per 1M tokens (DeepInfra and 1 other). Llama 3 8B: USD 0.0925 input, USD 0.095 output per 1M tokens (Featherless). At 3 input tokens per output token, Llama 3 8B costs 3.5% more than DeepSeek V4 Flash 0731 (USD 0.09312 vs USD 0.09 per 1M).

Picked by the same-tier rule: both are in the first quarter of the indexed models by price (below USD 0.1556 per 1M tokens at 3:1) and in the same size class, small (a tier word such as Flash, Mini or Haiku, or 40B parameters or fewer). Llama 3 8B is the 3rd-closest-priced model from another maker to DeepSeek V4 Flash 0731 in that bucket. Price only: every number is computed from prices read from each provider's own pricing page (linked per cell, newest check 2026-11-16), with no claim about quality, speed or accuracy.

How do DeepSeek V4 Flash 0731 and Llama 3 8B differ on price?

DeepSeek V4 Flash 0731 and Llama 3 8B prices side by side

USD per 1M tokens, standard tier. "Cheapest" is the lowest price at 3 input tokens to 1 output token; each line can come from a different provider.

DeepSeek V4 Flash 0731 and Llama 3 8B API prices compared
PriceDeepSeek V4 Flash 0731Llama 3 8B
Model pageDeepSeek V4 Flash 0731
DeepSeek · 17 providers
Llama 3 8B Instruct
Meta · 3 providers
Cheapest standard price, blended 3:1USD 0.09 lower
USD 0.06 in / USD 0.18 out at DeepInfra and 1 other
DeepInfra page checked 2026-11-14
USD 0.09312
USD 0.0925 in / USD 0.095 out at Featherless
Featherless page checked 2026-11-15
Cheapest inputUSD 0.06 lower
DeepInfra source
USD 0.0925
Featherless source
Cheapest cached inputUSD 0.0091 lower promo
GMI Cloud source
USD 0.074
Featherless source
Cheapest outputUSD 0.18
DeepInfra source
USD 0.095 lower
Featherless source
Maker's own APIDeepSeek publishes no paid standard price on its own API that we found.Meta publishes no paid standard price on its own API that we found.
Median standard priceUSD 0.14 / USD 0.28
input / output, 17 prices
USD 0.282 / USD 0.60
input / output, 3 prices
Context window1,048,576 tokens, largest stated; from 262,144 at some providers8,192 tokens, largest stated
Providers with a standard price173

Report a wrong price or number (email to info@broadnet.ai, with this page's link filled in).

What do DeepSeek V4 Flash 0731 and Llama 3 8B cost for a real workload?

30 days at each model's cheapest standard price for the workload (presets of the cost calculator; cached input at the cached price where listed).

Monthly cost of three workloads on DeepSeek V4 Flash 0731 and Llama 3 8B
WorkloadDeepSeek V4 Flash 0731Llama 3 8BDifference
Support chatbot
2,000 requests a day, 1,500 input tokens (60% cached), 300 output
USD 6.21
DeepInfra
USD 9.04
Featherless
USD 2.83
DeepSeek V4 Flash 0731 lower
RAG over documents
1,000 requests a day, 8,000 input tokens (30% cached), 500 output
USD 13.86
DeepInfra
USD 80.09
Cloudflare Workers AI
USD 66.23
DeepSeek V4 Flash 0731 lower
Coding agent (one developer)
1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning
USD 55.35
DeepInfra
USD 582.03
Cloudflare Workers AI
USD 526.68
DeepSeek V4 Flash 0731 lower

DeepSeek V4 Flash 0731 is cheaper on all three workloads. The widest gap is on Coding agent (one developer): the dearer model costs 11× as much as the cheaper one.

Does the cheaper model change with your input:output ratio?

The cheaper model changes with the mix: below 2.6 input tokens per output token, Llama 3 8B is cheaper; above 2.6, DeepSeek V4 Flash 0731 is cheaper. At the site's 3:1 blend, DeepSeek V4 Flash 0731 is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.

Price per 1M tokens of DeepSeek V4 Flash 0731 and Llama 3 8B at different input:output mixes
Input : output tokensDeepSeek V4 Flash 0731Llama 3 8B
1 : 3 (long answers)USD 0.15
DeepInfra
USD 0.09438 lower
Featherless
1 : 1USD 0.12
DeepInfra
USD 0.09375 lower
Featherless
3 : 1 (the site’s blend)USD 0.09 lower
DeepInfra
USD 0.09312
Featherless
10 : 1 (retrieval, long prompts)USD 0.07091 lower
DeepInfra
USD 0.09273
Featherless
30 : 1 (agents, big contexts)USD 0.06387 lower
DeepInfra
USD 0.09258
Featherless

USD per 1M tokens at the cheapest standard provider for each mix, before cache discounts. Thinking tokens bill as output.

What do DeepSeek V4 Flash 0731 and Llama 3 8B cost per character in other languages?

Cost to send 1M characters at each model's cheapest non-promotional standard input price, with the DeepSeek V4.1 Flash tokenizer for DeepSeek V4 Flash 0731 and the Llama 3.3 70B tokenizer for Llama 3 8B:

Input cost per 1M characters by language, DeepSeek V4 Flash 0731 and Llama 3 8B
ContentDeepSeek V4 Flash 0731Llama 3 8B
EnglishUSD 0.013 lower
DeepInfra
USD 0.020
Featherless
Arabic MSAUSD 0.023 lower
DeepInfra
USD 0.036
Featherless
Egyptian ArabicUSD 0.023 lower
DeepInfra
USD 0.036
Featherless
HindiUSD 0.035 lower
DeepInfra
USD 0.048
Featherless
ChineseUSD 0.035 lower
DeepInfra
USD 0.074
Featherless
SpanishUSD 0.015 lower
DeepInfra
USD 0.025
Featherless
CodeUSD 0.016 lower
DeepInfra
USD 0.024
Featherless

From the real cost by language dataset (measured tokens per character on FLORES-200 and other texts). Your own text will differ.

Check it on your own traffic

More comparisons: DeepSeek V4 Flash 0731 vs Gemma 4 26B A4B · DeepSeek V4 Flash 0731 vs DeepSeek V4 Flash · Llama 3.1 8B Instruct vs Llama 3 8B · Llama 3 70B vs Llama 3 8B · every DeepSeek V4 Flash 0731 comparison · every Llama 3 8B comparison · all 662 price comparisons

Questions

Is DeepSeek V4 Flash 0731 cheaper than Llama 3 8B?

Yes. On a blend of 3 input tokens to 1 output token, DeepSeek V4 Flash 0731 costs USD 0.09 per 1M tokens and Llama 3 8B USD 0.09312, at each model's cheapest standard price. For input alone, DeepSeek V4 Flash 0731 is cheaper (USD 0.06 against USD 0.0925 per 1M); for output alone, Llama 3 8B is (USD 0.095 against USD 0.18). This compares price only, not quality.

What do DeepSeek V4 Flash 0731 and Llama 3 8B cost per 1M tokens?

DeepSeek V4 Flash 0731: from USD 0.06 input and USD 0.18 output at DeepInfra and 1 other; median of 17 standard prices USD 0.14 / USD 0.28. Llama 3 8B: from USD 0.0925 input and USD 0.095 output at Featherless; median of 3 standard prices USD 0.282 / USD 0.60. Each price is read from the provider's own pricing page; the source is linked in the table.

Which providers sell both DeepSeek V4 Flash 0731 and Llama 3 8B?

2 providers have a standard price for both: Featherless (USD 0.175 and USD 0.09312 at 3:1), Cloudflare Workers AI (USD 0.66 and USD 0.4182 at 3:1). The first is the lowest combined price. Buying each model from its own cheapest provider costs USD 0.09 and USD 0.09312.

Which is cheaper for a coding agent or a chatbot, DeepSeek V4 Flash 0731 or Llama 3 8B?

For a coding agent (1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning): USD 55.35 a month on DeepSeek V4 Flash 0731 (DeepInfra) against USD 582.03 on Llama 3 8B (Cloudflare Workers AI), a difference of USD 526.68. For a support chatbot (2,000 requests a day, 1,500 input tokens (60% cached), 300 output): USD 6.21 a month on DeepSeek V4 Flash 0731 (DeepInfra) against USD 9.04 on Llama 3 8B (Featherless), a difference of USD 2.83. Each uses the cheapest standard price for that workload, cached input included. Try your own numbers.

At what input:output ratio does the cheaper of DeepSeek V4 Flash 0731 and Llama 3 8B change?

The cheaper model changes with the mix: below 2.6 input tokens per output token, Llama 3 8B is cheaper; above 2.6, DeepSeek V4 Flash 0731 is cheaper. At the site's 3:1 blend, DeepSeek V4 Flash 0731 is cheaper. More input per output token, as with retrieval or agents that resend long contexts, favours the lower input price; long answers favour the lower output price.

Do DeepSeek V4 Flash 0731 and Llama 3 8B have cached input pricing?

DeepSeek V4 Flash 0731 from USD 0.0091 per 1M cached input tokens (GMI Cloud; 17 of 17 standard prices list a discount). Llama 3 8B from USD 0.074 per 1M cached input tokens (Featherless; 1 of 3 standard prices list a discount). Cached tokens are billed at the input price where no cache price is published.

Which has the larger context window, DeepSeek V4 Flash 0731 or Llama 3 8B?

DeepSeek V4 Flash 0731: up to 1,048,576 tokens, against 8,192 for Llama 3 8B, as stated on providers' pricing pages. Some providers offer less than the maximum; check the model pages before you pick the cheapest row for long prompts.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity