Model comparison

Gemini 3.1 Pro Preview vs GLM-5

Compare Gemini 3.1 Pro Preview (Google) and GLM-5 (Z Ai) by price, context, capabilities, and latency.

Which should you pick?

  • Price: GLM-5 is cheaper ($0.58 / 1M tokens input / $2.58 / 1M tokens output) vs Gemini 3.1 Pro Preview ($2 / 1M tokens input / $12 / 1M tokens output).
  • Context: Gemini 3.1 Pro Preview has the larger context window (1M tokens).
  • Gemini 3.1 Pro Preview adds: Vision.

Side by side

Gemini 3.1 Pro Preview vs GLM-5 — 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
GLM-5z-ai/glm-5Z AiStarting at $0.58 / 1M tokens$2.58 / 1M tokens198k
StreamingTool callingJSON modeLong context
General chat via Z Ai, API workloads1431-2367msCatalogPlatform curated

FAQ

Gemini 3.1 Pro Preview vs GLM-5 FAQ

Is Gemini 3.1 Pro Preview or GLM-5 cheaper?

GLM-5 is cheaper ($0.58 / 1M tokens input / $2.58 / 1M tokens output) vs Gemini 3.1 Pro Preview ($2 / 1M tokens input / $12 / 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 GLM-5?

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

Gemini 3.1 Pro Preview vs GLM-5 for Long context: which should I pick?

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