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).
How do DeepSeek V4 Flash 0731 and Llama 3 8B differ on price?
- Cheapest input price: DeepSeek V4 Flash 0731 USD 0.06 against USD 0.0925 per 1M tokens, so Llama 3 8B costs 1.54× as much (54% more).
- Cheapest output price: Llama 3 8B USD 0.095 against USD 0.18 per 1M tokens, so DeepSeek V4 Flash 0731 costs 1.89× as much (89% more).
- Among the 201 indexed models, DeepSeek V4 Flash 0731 ranks 17th cheapest and Llama 3 8B 20th on the 3:1 blend.
- The cheaper model changes at 2.6 input tokens per output token.
- Both list cached-input discounts: DeepSeek V4 Flash 0731 at 17 standard prices of 17, from USD 0.0091 (GMI Cloud, 97% below that provider's input price); Llama 3 8B at 1 standard price of 3, from USD 0.074 (Featherless, 20% below that provider's input price).
- DeepSeek V4 Flash 0731 states up to 1,048,576 tokens of context, 128× the 8,192 of Llama 3 8B.
- DeepSeek V4 Flash 0731 has 17 providers with a standard price, 14 more than Llama 3 8B; 2 providers sell both (Featherless and Cloudflare Workers AI).
- On one account, Featherless charges USD 0.175 for DeepSeek V4 Flash 0731 (1.94× its cheapest price) and USD 0.09312 for Llama 3 8B (its cheapest price) at 3:1, the lowest combined price among the providers that sell both.
- Shopping around matters more for DeepSeek V4 Flash 0731: its dearest standard price is 7.3× its cheapest, against 4.5× for Llama 3 8B.
- DeepSeek V4 Flash 0731 has a batch price at 1 provider, from USD 0.06 at 3:1 (Doubleword); Llama 3 8B has no batch price on file.
- For the one-developer coding agent preset, the gap is USD 6,320 a year in DeepSeek V4 Flash 0731's favour (DeepSeek V4 Flash 0731 USD 55.35 a month, Llama 3 8B USD 582.03).
- Per character of input, the gap depends on the language: DeepSeek V4 Flash 0731 costs 28% less than Llama 3 8B on Hindi text but 52% less than Llama 3 8B on Chinese, because the two tokenizers split those languages differently.
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.
| Price | DeepSeek V4 Flash 0731 | Llama 3 8B |
|---|---|---|
| Model page | DeepSeek V4 Flash 0731 DeepSeek · 17 providers | Llama 3 8B Instruct Meta · 3 providers |
| Cheapest standard price, blended 3:1 | USD 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 input | USD 0.06 lower DeepInfra source | USD 0.0925 Featherless source |
| Cheapest cached input | USD 0.0091 lower promo GMI Cloud source | USD 0.074 Featherless source |
| Cheapest output | USD 0.18 DeepInfra source | USD 0.095 lower Featherless source |
| Maker's own API | DeepSeek 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 price | USD 0.14 / USD 0.28 input / output, 17 prices | USD 0.282 / USD 0.60 input / output, 3 prices |
| Context window | 1,048,576 tokens, largest stated; from 262,144 at some providers | 8,192 tokens, largest stated |
| Providers with a standard price | 17 | 3 |
- Lower marks the lower price on a line; tie, equal prices. Other tiers and free rows are on the model pages.
- Promo: the provider calls the price promotional or discounted, so it is current now and can end without notice.
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).
| Workload | DeepSeek V4 Flash 0731 | Llama 3 8B | Difference |
|---|---|---|---|
| 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.
| Input : output tokens | DeepSeek V4 Flash 0731 | Llama 3 8B |
|---|---|---|
| 1 : 3 (long answers) | USD 0.15 DeepInfra | USD 0.09438 lower Featherless |
| 1 : 1 | USD 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:
| Content | DeepSeek V4 Flash 0731 | Llama 3 8B |
|---|---|---|
| English | USD 0.013 lower DeepInfra | USD 0.020 Featherless |
| Arabic MSA | USD 0.023 lower DeepInfra | USD 0.036 Featherless |
| Egyptian Arabic | USD 0.023 lower DeepInfra | USD 0.036 Featherless |
| Hindi | USD 0.035 lower DeepInfra | USD 0.048 Featherless |
| Chinese | USD 0.035 lower DeepInfra | USD 0.074 Featherless |
| Spanish | USD 0.015 lower DeepInfra | USD 0.025 Featherless |
| Code | USD 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
- DeepSeek V4 Flash 0731 API pricing: all 17 providers and other tiers.
- Llama 3 8B Instruct API pricing: all 3 providers and other tiers.
- Cost calculator with DeepSeek V4 Flash 0731 and Llama 3 8B preloaded
- DeepSeek token counter
- Llama 3 token counter
- Prompt caching calculator
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.