relay.fast
RU Sign in

GLM models and API prices

This page lists all Zhipu AI models you can call with one relay.fast key. The tables are built from the live catalog, so the prices and the model list are current.

GLM API prices

Prices checked from the live catalog. "From" is the lowest price among the relay.fast sources that currently serve the model. The price you pay depends on the source your request uses and can change on any day. The pricing page always shows current values.

ModelModel IDOfficial input / output per 1M tokensrelay.fast from, input / outputCache read fromContext
GLM-5.2glm-5.2$1.4 / $4.4$0.035 / $0.11 (−97%)$0.00651M
GLM-5.3glm-5.3$1.4 / $4.4$0.035 / $0.11 (−97%)$0.00651M
GLM-5.3 Flashglm-5.3-flash$0.15 / $0.5$0.0187 / $0.0625 (−87%)$0.003751M
GLM-5.3 FlashX Legalglm-5.3-flashx-legal$0.37 / $1.25$0.0462 / $0.156 (−87%)$0.009371M
GLM-5.4glm-5.4$1.4 / $4.4$0.28 / $0.88 (−80%)$0.0521M

Specifications

Release month, limits and features are as published by Zhipu AI.

ModelReleasedContextMax outputInputFeatures
GLM-5.2June 20261M—texttool calling, reasoning, structured output, prompt caching
GLM-5.3August 20261M—texttool calling, reasoning, structured output, prompt caching
GLM-5.3 FlashAugust 20261M131Ktext, images, videotool calling, reasoning, structured output, image input, prompt caching
GLM-5.3 FlashX Legal—1M131Ktext, images, videotool calling, reasoning, structured output, image input, prompt caching
GLM-5.4—1M131Ktext, images, video, filestool calling, reasoning, structured output, image input, prompt caching

Example request

Keep the key in the RELAY_FAST_API_KEY environment variable. Any model ID from the table works in the same request.

curl https://relay.fast/v1/chat/completions \
  -H "Authorization: Bearer $RELAY_FAST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"glm-5.2","messages":[{"role":"user","content":"Hello"}]}'

How to connect

Create a relay.fast account, add funds and generate an API key. OpenAI-compatible clients use the base URL https://relay.fast/v1. Anthropic-compatible clients use https://relay.fast with the Messages API. Requests are charged to your balance for the tokens or units they use.

There are setup guides for the coding tools Claude Code, Codex, Cursor, Cline and OpenCode. Each model name in the tables links to its own page with prices, limits and an example request.

How pricing works

The official price is the list price published by Zhipu AI. The relay.fast price depends on the source a request uses, and the tables show the lowest current price. Prices and the model list can change at any time, so check the pricing page before you plan a budget.

Frequently asked questions

Do I need an account with Zhipu AI to use GLM models here?

No. You use a relay.fast account and API key. relay.fast is an independent API gateway and is not affiliated with Zhipu AI.

Can I keep my existing SDK or coding tool?

Yes, if it lets you set a custom base URL and key. Point it at relay.fast and pick a model ID from the tables.

Where is the full list of models and prices?

The pricing page at https://relay.fast/pricing lists every model. The same data is available as JSON at https://relay.fast/pricing.json.

Start with relay.fast