NewHow we catch a seller listing the wrong model, and refund you if one does.

What is the GLM API and how do I use it?

The GLM API is Z.ai’s API for its GLM models: a key is created at z.ai/manage-apikey/apikey-list, and the base URL is https://api.z.ai/api/paas/v4/. The same models are also served through MartLLM’s OpenAI-compatible API at https://api.martllm.com/v1: on November 20, 2026, 17 GLM models were taking requests there. Z.ai: GLM 5.3 FlashX cost $0.0407 per million input tokens and $0.1375 per million output tokens. A request that fails is not billed. Credit is prepaid, from $5, with no subscription.

Prices as of November 20, 2026, 11:00 UTC. This page is rebuilt every hour.

ModelInput / 1M tokensOutput / 1M tokensBelow list price
GLM 5.3$0.00286$0.0099999.8%
GLM 5.3 Flash$0.00168$0.0041598.6%
GLM-5.2$0.00578$0.020299.5%
Z.ai: GLM 5.3 Prime$0.016$0.050499%
GLM 4.7 Flash$0.000326$0.00299.5%
GLM 5.1$0.0136$0.042999%
Z.ai: GLM 5.3 FlashX$0.0407$0.137589%
GLM 4.5 Air$0.000129$0.00084299.9%
GLM-4.6$0.00417$0.01799%
GLM 4.5$0.00588$0.021699%
GLM-4.7$0.00275$0.01199.5%
GLM-5$0.00387$0.012499.6%
GLM-5 Turbo$0.06$0.2095%
Z.ai: GLM 5.3 FlashX Legal$0.185$0.62550%
GLM 5.1 E2EE$0.44$1.6661.3%
GLM 5V Turbo$0.7175$2.391640.2%
GLM 5.2 E2EE$1.2238$4.02130.1%

MartLLM: the price a request is billed at now, no fee added. Other prices from each provider's public price list: Z.ai API docs · every model and price →

More questions

Which SDK works with GLM models on MartLLM?

The OpenAI SDK (chat completions and the Responses API) and the Anthropic SDK (/v1/messages). Set the base URL to https://api.martllm.com/v1, use your MartLLM key and put the model id from the table in the request.

Is a MartLLM key the same as a GLM key?

No. A MartLLM key works only at https://api.martllm.com/v1, where one key calls GLM models and the rest of the catalog. A key made at the maker’s own site works only on the maker’s API.

How do I pay on MartLLM?

Prepaid credit by card or PayPal, from $5, with no subscription. A request that fails is not billed, and every request is listed with its cost in Dashboard → Activity.