Skip to content

Llama 3.1 405B Instruct vs Gemma 4 31B IT

Llama 3.1 405B Instruct is cheaper on output tokens, while Gemma 4 31B IT offers a larger context window. Choose Llama 3.1 405B Instruct or Gemma 4 31B IT based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecLlama 3.1 405B InstructGemma 4 31B IT
ProviderCortecsCortecs
Input / 1M tokens$0.00$0.22
Output / 1M tokens$0.00$0.39
Context window128K262K
Parameters——
Open weightsYesYes
ReleasedJul 2024Apr 2026

FAQ

Is Llama 3.1 405B Instruct or Gemma 4 31B IT cheaper?

Llama 3.1 405B Instruct is cheaper on output tokens ($0.00 vs $0.39 per 1M).

Which has the larger context window, Llama 3.1 405B Instruct or Gemma 4 31B IT?

Gemma 4 31B IT has the larger context window (262K tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.