Questions? hello@viberation.devGet supportBlogDocsChangelog
Get started

Z.ai's open-weight family, behind the cheap coding subscriptions.

GLM is the model family from Z.ai, and the reason its coding plan turns up in every "cheaper than Claude Code" thread — the weights are published, plenty of providers serve them, and the Flash models are some of the cheapest usable coding models anywhere. The 5.3 line runs to a million tokens of context, with Flash variants that also read images and video. Z.ai's own chat app is listed separately under Chats.

At a glance — GLM 4.7 Flash

Cost
$0.061 in · $0.40 out per 1M tokensBudget
Memory
200K tokens — about 300 pages
Reads
Text
Can do
  • Use tools (agents)
  • Structured output
  • Thinking mode
Reliability
99.30% uptime, last 24h
Released
Jan 19, 2026
Advanced details
API model ID
z-ai/glm-4.7-flash
Max output
118K tokens
Tokenizer
Other

Providers

The same model, hosted by different companies. OpenRouter picks one per request and falls back to the next if it fails.

ProviderInput /1MOutput /1MCached /1MMax outputUptime 24h
Venice · fp8$0.06$0.40$0.0116K99.30%
Cloudflare$0.061$0.40—118K98.85%
Novita · bf16Degraded$0.07$0.40$0.01128K69.86%

Supported parameters

  • frequency_penalty
  • include_reasoning
  • logit_bias
  • logprobs
  • max_tokens
  • min_p
  • presence_penalty
  • reasoning
  • repetition_penalty
  • response_format
  • seed
  • stop
  • structured_outputs
  • temperature
  • tool_choice
  • tools
  • top_k
  • top_logprobs
  • top_p

Live from OpenRouter, refreshed hourly.

Key info

Pricing
Open source
Category
Models
Best for
Intermediate
Made by
Z.ai
Weights
Open
Good for
Coding on a budget

More in Models

  • France's frontier lab, with the small models everyone self-hosts.

    Models
  • Meta's current line, built for long multi-agent runs.

    Models
  • The open-weight family everyone else gets benchmarked against.

    Models
  • Google's open models — Gemini's research, small enough to self-host.

    Models