All insights

Pricing and plans

GLM 5.2 Free API: Availability and API Budget

Can you use GLM 5.2 through a free hosted API? Here’s what Z.AI’s pricing says, what “free” does and doesn’t cover, and a worked API cost estimate.

Illustration for Glm 5.2 free api

Is there a free GLM 5.2 API?

A generally available free hosted GLM 5.2 API is not confirmed by the provider information reviewed. Z.AI lists GLM-5.2 as a paid, metered API model. Its published rates are $1.40 per 1 million input tokens and $4.40 per 1 million output tokens. Z.AI’s documentation also describes using GLM-5.2 through its API, but does not establish a free API allowance. (docs.z.ai)

Z.AI’s pricing table labels cached-input storage “Limited-time Free.” That is a separate pricing item—not free input or output tokens. The table still charges for GLM-5.2 input, cached input, and output. (docs.z.ai)

GLM 5.2 API prices and a sample budget

Z.AI’s published API prices are in USD per million tokens:

GLM-5.2 usage Price
Input $1.40 / 1M tokens
Cached input $0.26 / 1M tokens
Output $4.40 / 1M tokens
Cached-input storage Limited-time free, according to the pricing table

Example: For a monthly budget, suppose your total standard-billed usage across multiple API requests is 1 million input tokens and 200,000 output tokens. At the listed rates, that totals about $2.28:

  • Input: 1.0 × $1.40 = $1.40
  • Output: 0.2 × $4.40 = $0.88
  • Total: $2.28

This estimate excludes caching discounts and other charges, and assumes the listed rates apply to your account and usage. Check the applicable pricing and caching rules before estimating your actual bill. (docs.z.ai)

What counts as a free alternative?

  • Account credits: Z.AI documents credits and an invite-friends credit campaign, and its FAQ says credits can offset API calls. That does not guarantee every account receives credits or establish a standing free quota; check the offer and terms attached to your account. (docs.z.ai)
  • Coding Plan: This is a subscription route for supported coding tools, not a free, general-purpose API allowance. Z.AI says Coding Plan calls are limited to supported tools and that API calls outside the plan are unavailable. (docs.z.ai)
  • Self-hosting: Z.AI’s model repository identifies GLM-5.2 weights under an MIT license and lists local deployment options. That can avoid a hosted provider’s per-token bill, but it is not a free hosted API: you supply the compute and operate the deployment. (huggingface.co)
  • Browser or app access: Using a chat interface is not the same as getting API credentials or an endpoint for your application. The provider API documentation describes API-key access separately. (docs.z.ai)

Which route should you choose?

If you need GLM-5.2 inside an application, budget using the metered API rates unless your Z.AI account explicitly shows eligible credits. If you only want to test the model, first check whether your account has promotional credits; otherwise, expect token charges. If you want a fixed subscription for coding tools, review the Coding Plan’s supported tools and limits rather than assuming it grants unrestricted API access. For self-hosting, weigh infrastructure and operating costs against per-token billing.

Bottom line: Don’t count on a free hosted GLM-5.2 API. Z.AI’s published rates provide a concrete starting point—$1.40/M input and $4.40/M output—while credits, subscription use, and self-hosting are distinct routes with their own conditions. Confirm the current terms and your account’s eligibility before committing a production budget. (docs.z.ai)

Sources

Z.AI Developer Documentation: Pricing

Z.AI Developer Documentation: API Introduction

Z.AI Developer Documentation: GLM-5.2

Z.AI Developer Documentation: FAQ

Z.AI Developer Documentation: Invite Friends, Get Credits

Z.ai: GLM-5.2 model repository

Contact us