Google: Gemini 3.1 Flash Lite vs Z.ai: GLM 5.3 FlashX Legal
A side-by-side comparison of Google: Gemini 3.1 Flash Lite ($0.88 / 1M tokens) and Z.ai: GLM 5.3 FlashX Legal ($1.30 / 1M tokens) using current USD prices and capabilities from the api14 catalog. Both run through the same OpenAI-compatible API.
Specifications
| Google: Gemini 3.1 Flash Lite | Z.ai: GLM 5.3 FlashX Legal | |
|---|---|---|
| Provider | Z.ai | |
| Input | $0.88 / 1M tokens | $1.30 / 1M tokens |
| Output | $5.25 / 1M tokens | $4.38 / 1M tokens |
| Cache read | $0.09 / 1M tokens | $0.26 / 1M tokens |
| Cache write | $0.29 / 1M tokens | - |
| Reasoning | $5.25 / 1M tokens | - |
| Audio input | $1.75 / 1M tokens | - |
| Image | $0.000001 / image | - |
| Web search | $49.00 / 1K searches | - |
| Context window | 1,048,576 | 1,048,576 |
| Max output | 65,536 | 131,072 |
| Input | text, image, video, file, audio | text, image, video |
| Output | text | text |
| Tool calling | ||
| Structured output | ||
| Reasoning control | ||
| Added | May 7, 2026 | Nov 2, 2026 |
Key differences
- Google: Gemini 3.1 Flash Lite is 32% cheaper on input tokens.
- Z.ai: GLM 5.3 FlashX Legal is 17% cheaper on output tokens.
- A request with 1,000 input and 500 output tokens costs $0.00350 with Google: Gemini 3.1 Flash Lite and $0.00348 with Z.ai: GLM 5.3 FlashX Legal.
Switch with one string
Both models use the same endpoint and request shape. Change the model value from "google/gemini-3.1-flash-lite" to "z-ai/glm-5.3-flashx-legal" and prompts, streaming and tools keep working.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "z-ai/glm-5.3-flashx-legal",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
More comparisons
- LiquidAI: LFM3-1.7B vs Ricursive: Ripple 65B Preview
- LiquidAI: LFM3-1.7B vs Crouton Alpha
- LiquidAI: LFM3-1.7B vs Tencent: Hy4
- LiquidAI: LFM3-1.7B vs Z.ai: GLM 5.3 FlashX Legal
- Ricursive: Ripple 65B Preview vs Crouton Alpha
- Ricursive: Ripple 65B Preview vs Tencent: Hy4
- Ricursive: Ripple 65B Preview vs Z.ai: GLM 5.3 FlashX Legal
- Crouton Alpha vs Tencent: Hy4