Skip to content
NewTry RouterPlus with free creditsTry playground →

Gemma 4 31B vs Qwen3.8 27B

Side by side

SpecGemma 4 31BQwen3.8 27B
Lowest input$0.12Doubleword$0.039Chutes
Lowest output$0.35Doubleword$0.40RunInfra
Lowest cached input$0.12Doubleword$0.0039Chutes
Context262K262K
Max output131K262K
Providers48
ReleasedApril 2, 2026August 13, 2026
WeightsOpenOpen
LabGoogleQwen
Model IDgoogle/gemma-4-31b-itqwen/qwen3.8-27b

USD per 1M tokens, as of November 5, 2026.

Price by provider

ProviderGemma 4 31BQwen3.8 27B
Doubleword$0.12 / $0.35$0.45 / $3.00
Chutes–$0.039 / $1.25
DeepInfra$0.20 / $0.40–
Munito AI–$0.18 / $2.40
Nebius–$0.45 / $3.00
Novita AI$0.14 / $0.40–
Phala–$0.20 / $2.50
RunInfra–$0.10 / $0.40
Sail Research$0.40 / $0.60–
StreamLake–$0.50 / $3.00
Wafer–$0.06 / $2.30

Input / output, USD per 1M tokens.

Cost

Model1,000 chat replies2K in, 500 out each1,000 agent tasks50K in, 5K out eachMonthly batch job500M in, 50M out
Gemma 4 31BDoubleword$0.42$7.75$77.50
Qwen3.8 27BRunInfra$0.40$7.00$70.00

On each model's cheapest provider by input plus output list price.

FAQ

Which is cheaper, Gemma 4 31B or Qwen3.8 27B?

Input: Qwen3.8 27B at $0.039 per million input tokens vs $0.12 (Gemma 4 31B), 3.1x lower. Output: Gemma 4 31B at $0.35 per million output tokens vs $0.40 (Qwen3.8 27B), 14% lower. Lowest listed prices as of November 5, 2026.

Which has the longer context window?

Both list 262K tokens of context.

Which providers serve both Gemma 4 31B and Qwen3.8 27B?

1 provider serves both: Doubleword. Gemma 4 31B has 4 providers in total and Qwen3.8 27B has 8.

Do Gemma 4 31B and Qwen3.8 27B have cached input pricing?

Gemma 4 31B from $0.12 per million cached input tokens (Doubleword). Qwen3.8 27B from $0.0039 (Chutes).

Can I switch between Gemma 4 31B and Qwen3.8 27B without changing code?

Yes. Both use the same OpenAI-compatible endpoint, https://api.routerplus.com/v1, and key. Change the model field from "google/gemma-4-31b-it" to "qwen/qwen3.8-27b".

All comparisons

Run Gemma 4 31B and Qwen3.8 27B on one key