GLM-5.2 API Pricing

GLM-5.2 pricing: $1.2/1M input tokens, $4.1/1M output tokens, $0.2/1M cached tokens.

GLM-5.2 is Zhipu's mid-range model, best suited for general-purpose flagship, strong reasoning and coding. It costs $1.2 per 1M input tokens and $4.1 per 1M output tokens, with a 1M token context window. At typical usage (10K input tokens, 2K output tokens per call, 1,000 calls per day), GLM-5.2 costs approximately $606 per month. With prompt caching enabled at a 83% discount, cached input drops to $0.2/1M tokens — significant for applications with repeated system prompts. For lower costs, o4-mini (OpenAI) offers input at $1.1/1M. For higher capability, Gemini 1.5 Pro (Google) costs $1.25/1M input. GLM-5.2 sits in the sweet spot between cost and capability. Use it for production features that need reliable quality — coding assistance, content generation, data analysis, and multi-step reasoning — without paying premium model rates. On a per-request basis, sending 1,000 input tokens to GLM-5.2 costs $0.0012, and generating 1,000 output tokens costs $0.0041. A typical chatbot exchange (500 tokens in, 300 tokens out) runs about $0.00183 per message. At scale, small per-request cost differences compound quickly — a model that costs 2x more per token costs 2x more at any volume. All pricing shown here is sourced from Zhipu's official pricing page and verified regularly. LLM providers may change pricing without notice. Always confirm current rates on the provider's website before making purchasing decisions. The cost calculator on this page lets you estimate monthly spending based on your actual token usage and call volume. Zhipu applies standard rate limits to GLM-5.2 API keys. Check the provider dashboard for your current tier and request higher limits if needed. To get started, create an API key from the Zhipu developer console, install the provider's SDK (openai npm package with base URL override (xAI/Zhipu/Moonshot are OpenAI-compatible)), and make your first API call with a small prompt to verify connectivity and measure actual latency. Most providers offer a free tier or credits for new accounts — use these to benchmark GLM-5.2 against your specific workload before committing to a paid plan.

FAQ

  • How much does GLM-5.2 cost per 1M tokens?

    GLM-5.2 costs $1.2 per 1M input tokens and $4.1 per 1M output tokens. Cached input tokens are available at $0.2 per 1M, a 83% discount.

  • Is GLM-5.2 cheap or expensive?

    GLM-5.2 is mid-range at $1.2/1M input tokens. It balances cost and capability for production use.

  • What is the context window of GLM-5.2?

    GLM-5.2 supports a context window of 1M tokens. This determines how much text you can send in a single API call — including system prompts, conversation history, and the actual query.

  • Does GLM-5.2 support prompt caching?

    Yes. Zhipu offers cached input at $0.2/1M tokens — a 83% discount over the base input price. This helps with repeated system prompts and few-shot examples.

  • How to reduce GLM-5.2 API costs?

    Three strategies: (1) Enable prompt caching if your provider supports it — savings of up to 90% on repeated input. (2) Route simple queries to cheaper models. (3) Reduce output tokens with concise instructions.

  • How much does one GLM-5.2 API call cost?

    A typical request with 500 input tokens and 300 output tokens costs approximately $0.00183. The exact cost depends on your prompt length and desired response length. Use the cost calculator above to estimate for your specific usage pattern.