Gemini 3.1 Pro Preview vs GLM-5.2
google/gemini-3.1-pro-preview · z-ai/glm-5.2
As of November 20, 2026, GLM-5.2 is the cheaper API on MartLLM: $0.0058 per million input tokens and $0.0202 per million output, versus $0.1096 / $0.6575 for Gemini 3.1 Pro Preview, about 97% less when output is 3 tokens for every input token. These are the best prices on the market right now. Both work with one OpenAI-compatible key and MartLLM adds no fee. Choose GLM-5.2 to cut cost; choose Gemini 3.1 Pro Preview when its capabilities fit your task better.
Gemini 3.1 Pro Preview vs GLM-5.2, side by side
| Spec | ||
|---|---|---|
| Price · input / 1M | $0.1096 | $0.0058 |
| Price · output / 1M | $0.6575 | $0.0202 |
| Context length | 1,000,000 | 1,048,576 |
| Max output tokens | 32,768 | 131,072 |
| Input modalities | text, image | text |
| Output modalities | text | text |
| Tools / functions | Yes | Yes |
| Vision (image input) | Yes | — |
| Reasoning | Yes | Yes |
| % off list | 94.5% off | 99.5% off |
| First token, median (7 days) | 6.9 s (3,295 requests) | 4.1 s (3,377 requests) |
Best prices on MartLLM right now. No MartLLM fee on requests; adding credit by card costs 5.5% + $0.50. Updated November 20, 2026. A price more than 70% below list is what buyers were billed, not an error. Why so cheap?
Gemini 3.1 Pro Preview vs GLM-5.2 — FAQ
Is Gemini 3.1 Pro Preview or GLM-5.2 cheaper?
GLM-5.2 is cheaper on a blended token mix, by about 97%. A request costs what its provider charged, MartLLM adds no fee, and every request is listed with its cost in Activity.
What's the price difference between Gemini 3.1 Pro Preview and GLM-5.2?
Gemini 3.1 Pro Preview: $0.1096 in / $0.6575 out per 1M tokens. GLM-5.2: $0.0058 in / $0.0202 out per 1M tokens. That's roughly a 97% blended difference. Prices are live; MartLLM adds no fee.
Can I use both Gemini 3.1 Pro Preview and GLM-5.2 with one API?
Yes. Both are served through a single OpenAI-compatible endpoint — set the base URL to https://api.martllm.com/v1 and your MartLLM key, then switch between them by changing the model id. Anthropic SDKs work via https://api.martllm.com/v1/messages.