AI Hub
← All models

Gemma 4 31B vs GPT-5.2-Codex

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

  • GPT-5.2-Codex has the higher intelligence index (89.9 vs 85.7)
  • Gemma 4 31B is cheaper ($0.12 vs $1.75 per 1M input)
  • GPT-5.2-Codex is faster
  • GPT-5.2-Codex has a larger context window (400K)
Gemma 4 31BGPT-5.2-Codex
Intelligence index85.789.9
DeveloperGoogleOpenAI
TypeMultimodalMultimodal
AccessOpen weightsAPI only
Context window262,144 tokens400,000 tokens
Input price$0.12 / 1M$1.75 / 1M
Output price$0.37 / 1M$14.00 / 1M
Speed36 tok/s106 tok/s
ReleasedApril 2, 2026January 14, 2026
Parameters
Input modalitiesImage, Text, VideoText, Image
Output modalitiesTextText

Shared benchmarks

Gemma 4 31B
GPT-5.2-Codex
GPQA Diamond
85.7
89.9
Humanity’s Last Exam
22.7
33.5