Compare

Google Gemma 4 31b vs Mistral 7B

Pricing is only the shared seller matrix below. Best rates and catalog map are separate sections, so no chart is embedded in pricing. Open the calculator for the same workload on each side.

Google

Model

Google Gemma 4 31b

Image inputTool calling

Best $0.140 in · $0.400 out

Context window 256K

Pricing
Mistral AI

Model

Mistral 7B

Best $0.070 in · $0.130 out

Context window 32K

Pricing

Google Gemma 4 31b is 43% cheaper on input. Mistral 7B is 37% cheaper on output. The best choice depends on your input/output ratio.

Pricing matrix

Shared sellers only. Each row is a host that lists both models. Dollar amounts are per 1M tokens. Lowest in each pair of columns is emphasized.

ProviderGoogle Gemma 4 31b inGoogle Gemma 4 31b outMistral 7B inMistral 7B out
Aws Bedrock$0.140$0.400N/AN/A
Fireworks AIN/AN/A$0.200$0.200
Mistral AIN/AN/A$0.250$0.250
OpenrouterN/AN/A$0.130$0.130
PerplexityN/AN/A$0.070$0.280
SnowflakeN/AN/AN/AN/A
Together AIN/AN/A$0.200$0.200

Best listed rates (this pair)

Same "best row in current pricing" logic as model pages: a compact view of the lowest input and output we show for each side. This is not the seller matrix.

Catalog map · Google · Mistral AI

Each chart uses real catalog rows that include both list input and list output ($/1M). Larger green dots are the models on this comparison page; accent dots are other active models from that provider.

Google · input vs output

Scatter chart: X = input $/M, Y = output $/M. This page's models are labeled on the green dots; hover others for detail.

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Mistral AI · input vs output

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Specifications

Each column header is the full model name. Tint marks the favorable value where we compute a winner.

Spec
Google Gemma 4 31b
Mistral 7B
Context window
256,000 tokens
32,000 tokens
Max output tokens
256,000 tokens
4,096 tokens
Vision
Yes
No
Function calling
Yes
No
Streaming
No
Yes
Release date
N/A
Sep 2023

Cost calculator

Same requests, input tokens, and output tokens for both columns. Pick the provider row that matches how you buy.

Google Gemma 4 31b
Monthly
$102
Annual
$1.2K
Mistral 7B
Monthly
$0.0000
Annual
$0.0000
Save $102/month with Mistral 7B

When to pick which

Short takeaways: no cards, just the points. Validate with your own workloads.

  • Long-context tasks

    Use Google Gemma 4 31b. Its 256K context window handles large codebases and documents better than 32K.

  • High-volume text generation

    Use Mistral 7B. Output tokens are 37% cheaper, which compounds significantly at scale.

  • Long output (reports, code files)

    Use Google Gemma 4 31b. Its 256K max output limit reduces the need to split requests.

Frequently asked questions

Google Gemma 4 31b is cheaper on input tokens, while Mistral 7B is cheaper on output. The best choice depends on your input/output ratio.

More comparisons

Other popular head-to-head matchups.