Skip to content
Alpha
  • Models
  • Rankings
  • Ori

Footer

OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Ori
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • EU routing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status
  • AI Site Map

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
  1. Home
  2. /
  3. Compare

Qwen3.8 27B vs Gemma 4 31B

Compare Qwen3.8 27B from Qwen and Gemma 4 31B from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.

Favicon for qwen
Qwen3.8 27B
Favicon for google
Gemma 4 31B
Favicon for qwen
Qwen3.8 27B
Favicon for google
Gemma 4 31B

Overview

Qwen3.8 27B
Author
Qwen
Gemma 4 31B
Author
Google
Qwen3.8 27B
Context length
1Mtokens
Gemma 4 31B
Context length
262Ktokens
Qwen3.8 27B
Reasoning
Gemma 4 31B
Reasoning
Qwen3.8 27B
Input modalities
Gemma 4 31B
Input modalities
Qwen3.8 27B
Output modalities
Gemma 4 31B
Output modalities

Qwen3.8 27B vs Gemma 4 31B: side-by-side summary

Qwen3.8 27B and Gemma 4 31B are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.

Qwen3.8 27B, from Qwen, has a 1,000,000-token context window and is priced at $0.02/M tokens input, $0.50/M tokens output on OpenRouter.

Gemma 4 31B, from Google, has a 262,144-token context window and is priced at $0.10/M tokens input, $0.34/M tokens output on OpenRouter.

Context window
  • Qwen3.8 27B: 1,000,000 tokens
  • Gemma 4 31B: 262,144 tokens
Price
  • Qwen3.8 27B: $0.02/M tokens input, $0.50/M tokens output
  • Gemma 4 31B: $0.10/M tokens input, $0.34/M tokens output
Provided by
  • Qwen3.8 27B: Qwen
  • Gemma 4 31B: Google
  • Qwen3.8 27B model details, providers and pricing
  • Gemma 4 31B model details, providers and pricing

Qwen3.8 27B vs Gemma 4 31B at a glance

Qwen3.8 27B vs Gemma 4 31B comparison
AttributeQwen3.8 27BGemma 4 31B
Input price$0.02/M tokens$0.10/M tokens
Output price$0.50/M tokens$0.34/M tokens
Context window1,000,000 tokens262,144 tokens
Intelligence Index33.713.9
Coding Index68.133.2
Agentic Index45.8Not available
Latency (p50)0.68 s0.61 s
Throughput (p50)42.5 tok/s46.0 tok/s

Benchmark data updated Oct 15, 2026

Frequently asked questions

Is Qwen3.8 27B cheaper than Gemma 4 31B?

Qwen3.8 27B and Gemma 4 31B trade off on price: Qwen3.8 27B costs $0.02/M tokens input and $0.50/M tokens output, while Gemma 4 31B costs $0.10/M tokens input and $0.34/M tokens output, so Qwen3.8 27B is cheaper for input tokens and Gemma 4 31B is cheaper for output tokens.

Which has the longer context window, Qwen3.8 27B or Gemma 4 31B?

Qwen3.8 27B has the longer context window at 1,000,000 tokens, compared with 262,144 tokens for Gemma 4 31B.

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

Gemma 4 31B is faster on OpenRouter, generating a median 46.0 tokens per second compared with 42.5 tokens per second for Qwen3.8 27B.

Which scores higher on coding, Qwen3.8 27B or Gemma 4 31B?

Qwen3.8 27B scores higher on coding, with an Artificial Analysis Coding Index of 68.1 compared with 33.2 for Gemma 4 31B.