Price Per TokenPrice Per Token
Meta-llama
Meta-llama
vs
Qwen
Qwen

Llama 3.1 405B Instruct vs Qwen3.5 397B A17B

A detailed comparison of pricing, benchmarks, and capabilities

108 out of our 483 tracked models have had a price change in March.

Get our weekly newsletter on pricing changes, new releases, and tools.

Key Takeaways

Llama 3.1 405B Instruct wins:

  • Better at math

Qwen3.5 397B A17B wins:

  • Cheaper input tokens
  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Supports vision
Price Advantage
Qwen3.5 397B A17B
Benchmark Advantage
Qwen3.5 397B A17B
Context Window
Qwen3.5 397B A17B
Speed
Qwen3.5 397B A17B

Pricing Comparison

Price Comparison

MetricLlama 3.1 405B InstructQwen3.5 397B A17BWinner
Input (per 1M tokens)$0.90$0.39 Qwen3.5 397B A17B
Output (per 1M tokens)$0.90$0.90Tie
Cache Read (per 1M)$0.45$0.45Tie
Using a 3:1 input/output ratio, Qwen3.5 397B A17B is 43% cheaper overall.

Llama 3.1 405B Instruct Providers

No provider data available

Qwen3.5 397B A17B Providers

No provider data available

Benchmark Comparison

8
Benchmarks Compared
0
Llama 3.1 405B Instruct Wins
3
Qwen3.5 397B A17B Wins

Benchmark Scores

BenchmarkLlama 3.1 405B InstructQwen3.5 397B A17BWinner
Intelligence Index
Overall intelligence score
17.440.1
Coding Index
Code generation & understanding
14.537.4
Math Index
Mathematical reasoning
3.0--
MMLU Pro
Academic knowledge
73.2--
GPQA
Graduate-level science
51.586.1
LiveCodeBench
Competitive programming
30.5--
Aider
Real-world code editing
66.2--
AIME
Competition math
21.3--
Qwen3.5 397B A17B significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Llama 3.1 405B Instruct
Other models

Context & Performance

Context Window

Llama 3.1 405B Instruct
131,000
tokens
Qwen3.5 397B A17B
262,144
tokens
Qwen3.5 397B A17B has a 50% larger context window.

Speed Performance

MetricLlama 3.1 405B InstructQwen3.5 397B A17BWinner
Tokens/second33.7 tok/s55.5 tok/s
Time to First Token0.71s1.55s
Qwen3.5 397B A17B responds 65% faster on average.

Capabilities

Feature Comparison

FeatureLlama 3.1 405B InstructQwen3.5 397B A17B
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyLlama 3.1 405B InstructQwen3.5 397B A17B
LicenseOpen SourceOpen Source
AuthorMeta-llamaQwen
ReleasedJul 2024Feb 2026

Llama 3.1 405B Instruct Modalities

Input
text
Output
text

Qwen3.5 397B A17B Modalities

Input
textimagevideo
Output
text

Related Comparisons

Compare Llama 3.1 405B Instruct with:

Compare Qwen3.5 397B A17B with:

Frequently Asked Questions

Qwen3.5 397B A17B has cheaper input pricing at $0.39/M tokens. Llama 3.1 405B Instruct has cheaper output pricing at $0.90/M tokens.
Qwen3.5 397B A17B scores higher on coding benchmarks with a score of 37.4, compared to Llama 3.1 405B Instruct's score of 14.5.
Llama 3.1 405B Instruct has a 131,000 token context window, while Qwen3.5 397B A17B has a 262,144 token context window.
Llama 3.1 405B Instruct does not support vision. Qwen3.5 397B A17B supports vision.