AI Hub
← All models

Gemma 4 31B vs GPT-5.1-Codex

Google vs OpenAI — benchmarks, pricing, and capabilities side by side.

  • GPT-5.1-Codex has the higher intelligence index (88.2 vs 85.7)
  • Gemma 4 31B is cheaper ($0.12 vs $1.25 per 1M input)
  • GPT-5.1-Codex is faster
  • GPT-5.1-Codex has a larger context window (400K)
Gemma 4 31BGPT-5.1-Codex
Intelligence index85.788.2
DeveloperGoogleOpenAI
TypeMultimodalMultimodal
AccessOpen weightsAPI only
Context window262,144 tokens400,000 tokens
Input price$0.12 / 1M$1.25 / 1M
Output price$0.37 / 1M$10.00 / 1M
Speed36 tok/s188 tok/s
ReleasedApril 2, 2026November 13, 2025
Parameters
Input modalitiesImage, Text, VideoText, Image
Output modalitiesTextText

Shared benchmarks

Gemma 4 31B
GPT-5.1-Codex
GPQA Diamond
85.7
86
Humanity’s Last Exam
22.7
23.4