LiteLLMLiteLLM/ MODELS

Gemini Omni 1.2 Flash vs GLM 5.2

As of November 12, 2026, Gemini Omni 1.2 Flash costs 7% more per input token than GLM 5.2 ($1.50 vs $1.40 per 1M) and has a 128K-token context window versus 1M.

Prices from LiteLLM's price fileChecked

Gemini Omni 1.2 Flash vs GLM 5.2 side by side

Headline prices in US dollars per 1M tokens: each model's own lab where it sells it, otherwise its cheapest provider. Source: LiteLLM model price file, as of November 12, 2026.
Gemini Omni 1.2 FlashGLM 5.2
Input, per 1M tokens$1.50$1.40
Output, per 1M tokens$9.00$4.40
Cache read, per 1M tokens–$0.26
Cache write, per 1M tokens–$0
Context window131,072 tokens1,000,000 tokens
Max output65,536 tokens128,000 tokens
Image inputYesYes
Tool calling–Yes
Structured output (JSON)–Yes
Prompt caching–Yes
ReasoningYesYes
Providers on LiteLLM227
Price shown is fromGoogle AI StudioZ.ai
Added to LiteLLMNovember 5, 2026June 2026

Cheapest provider for each

When to pick which

Pick GLM 5.2 for

  • Costs 7% less per input token: $1.40 vs $1.50 per 1M.
  • Larger context window: 1,000,000 vs 131,072 tokens.

From differences in the data above only; where the data is equal, no reason is given.

Call Gemini Omni 1.2 Flash or GLM 5.2 with LiteLLM

Both use the OpenAI format through LiteLLM, so switching is a model name change. Set each provider's API key in the environment first.

Python SDK
from litellm import completion

messages = [{"role": "user", "content": "Hello!"}]

# Gemini Omni 1.2 Flash
response = completion(model="gemini/gemini-omni-1.2-flash", messages=messages)

# GLM 5.2
response = completion(model="zai/glm-5.2", messages=messages)

# Gemini Omni 1.2 Flash, falling back to GLM 5.2 if the call fails
response = completion(model="gemini/gemini-omni-1.2-flash", messages=messages, fallbacks=["zai/glm-5.2"])

FAQ

Which is cheaper, Gemini Omni 1.2 Flash or GLM 5.2?

GLM 5.2 is cheaper at 3 input tokens per output token: $2.15 per 1M tokens blended ($1.40 input, $4.40 output), versus $3.375 ($1.50 and $9.00) for Gemini Omni 1.2 Flash, as of November 12, 2026.

Which has the larger context window, Gemini Omni 1.2 Flash or GLM 5.2?

GLM 5.2 has the larger context window: 1,000,000 tokens, versus 131,072 for Gemini Omni 1.2 Flash.

Can I switch from Gemini Omni 1.2 Flash to GLM 5.2 without changing my code?

Yes. Through LiteLLM both use the OpenAI format, so switching means changing the model name from "gemini/gemini-omni-1.2-flash" to "zai/glm-5.2", or pointing a LiteLLM gateway model alias at the other model. You can also use one as a fallback for the other.