Model comparison

Gemini 3.1 Pro Preview vs GPT-5.2 Codex

Compare Gemini 3.1 Pro Preview (Google) and GPT-5.2 Codex (OpenAI) by price, context, capabilities, and latency.

Which should you pick?

  • Price: Gemini 3.1 Pro Preview is cheaper ($2 / 1M tokens input / $12 / 1M tokens output) vs GPT-5.2 Codex ($1.75 / 1M tokens input / $14 / 1M tokens output).
  • Context: Gemini 3.1 Pro Preview has the larger context window (1M tokens).

Side by side

Gemini 3.1 Pro Preview vs GPT-5.2 Codex — full comparison

Compare price, provider, context, capabilities, latency, and source basis.

ModelProviderInputOutputContextCapabilitiesBest forLatencyStatusSource
Gemini 3.1 Pro Previewgoogle/gemini-3.1-pro-previewGoogleStarting at $2 / 1M tokens$12 / 1M tokens1M
StreamingTool callingJSON modeVision
image understanding, multimodal chat2140-4871msCatalogPlatform curated
GPT-5.2 Codexopenai/gpt-5.2-codexOpenAI$1.75 / 1M tokens$14 / 1M tokens400k
StreamingTool callingJSON modeVision
image understanding, multimodal chat2227-3996msCatalogPlatform curated

FAQ

Gemini 3.1 Pro Preview vs GPT-5.2 Codex FAQ

Is Gemini 3.1 Pro Preview or GPT-5.2 Codex cheaper?

Gemini 3.1 Pro Preview is cheaper ($2 / 1M tokens input / $12 / 1M tokens output) vs GPT-5.2 Codex ($1.75 / 1M tokens input / $14 / 1M tokens output). Actual cost depends on your input/output token mix — estimate it with the pricing calculator.

Which has a larger context window, Gemini 3.1 Pro Preview or GPT-5.2 Codex?

Gemini 3.1 Pro Preview is larger (1M tokens) vs 400k tokens.

Gemini 3.1 Pro Preview vs GPT-5.2 Codex for Vision: which should I pick?

Both target Vision. Pick Gemini 3.1 Pro Preview to optimize cost, or Gemini 3.1 Pro Preview for the longer context window. Test both on real prompts before committing production traffic.