Gemini 3.1 Pro Preview vs GLM 5.4
API pricing, context, and independently measured performance, side by side. GLM 5.4 starts 40% cheaper on input than Gemini 3.1 Pro Preview at list prices.
Gemini 3.1 Pro Preview
Google · released Feb 19, 2026
Best input$2.00 / MTok
Best output$12.00 / MTok
Context1.05M
Providers6
Fastest measured3.3s° TTFT · 267 tok/s
VisionToolsReasoningStructured outputPrompt caching
GLM 5.4
Z.ai · released Dec 2, 2026
Best input$1.20 / MTok
Best output$4.00 / MTok
Context1.05M
Providers7
Fastest measured—
Open weightsVisionToolsReasoningStructured outputPrompt caching
Cheapest providers, measuredUSD / MTOK
| MODEL | PROVIDER | INPUT | OUTPUT | TTFT | TPS | SMOKE |
|---|---|---|---|---|---|---|
| Gemini 3.1 Pro Preview | $2.00 | $12.00 | 3.3s° | 267° tok/s | — | |
| Gemini 3.1 Pro Preview | $2.00 | $12.00 | 3.5s° | 488° tok/s | — | |
| GLM 5.4 | $1.20 | $4.00 | — | — | — | |
| GLM 5.4 | IVInferact vLLM | $1.40 | $4.40 | — | — | — |
| GLM 5.4 | $1.40 | $4.40 | — | — | — |
TTFT/TPS: ModelIndex-measured medians (P50, trailing 21d) · chat10k profile (~10K in / 200 out) · ° = measured via OpenRouter routing (adds a hop) · SMOKE: of 5 programmatic capability probes passed · methodology v1.1 — full details on each model page