Z Ai model

GLM-5

GLM-5 is a Z Ai model listed in the NextModel catalogue for General chat via Z Ai, API workloads workloads. Its listed price is Starting at $0.58 / 1M tokens input and $2.58 / 1M tokens output, with a 198k token context window.

Z AiPlatform curatedCatalog
Input priceStarting at $0.58 / 1M tokens
Output price$2.58 / 1M tokens
Context length198k tokens
Max output8.2k tokens
Input lengthInput / 1MOutput / 1MCache hit / 1M
≤ 32k$0.58$2.58$0.12
32k - 200k$0.86$3.16$0.18

What is GLM-5 in NextModel?

GLM-5 is a Z Ai model listed in the NextModel catalogue for General chat via Z Ai, API workloads workloads. Its listed price is Starting at $0.58 / 1M tokens input and $2.58 / 1M tokens output, with a 198k token context window.

GLM-5 via NextModel: 198k-token context; Starting at $0.58 / 1M tokens in / $2.58 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

Best use cases

  • General chat via Z Ai
  • API workloads

OpenAI-compatible code example

request.sh
curl https://api.nextmodel.app/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NEXTMODEL_API_KEY" \
  -d '{"model":"z-ai/glm-5","messages":[{"role":"user","content":"Reply with OK."}]}'

Switching models only changes the model field.

Try it in the playground

Similar alternatives

Z AiCatalogDegradedfast

GLM-5.1 via NextModel: 202k-token context; Starting at $0.83 / 1M tokens in / $3.31 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

Starting at $0.83 / 1M tokensInput$3.31 / 1M tokensOutput202kContext
Best forGeneral chat via Z Ai, API workloads
StreamingTool callingJSON modeLong context
Platform curatedCurated and maintained in the NextModel catalog
View details
GoogleCatalogBlocked

Gemini 3.5 Flash via NextModel: 1M-token context; $1.50 / 1M tokens in / $9 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

$1.50 / 1M tokensInput$9 / 1M tokensOutput1MContext
Best forimage understanding, multimodal chat
StreamingTool callingJSON modeVision
Platform curatedCurated and maintained in the NextModel catalog
View details
MoonshotaiCatalogDegradedfast

Kimi-K2.5 via NextModel: 256k-token context; $0.58 / 1M tokens in / $3.02 / 1M tokens out per 1M tokens. Capabilities: streaming, tool, json.

$0.58 / 1M tokensInput$3.02 / 1M tokensOutput256kContext
Best forimage understanding, multimodal chat
StreamingTool callingJSON modeVision
Platform curatedCurated and maintained in the NextModel catalog
View details

Reading

Articles that explain GLM-5

FAQ

GLM-5 API questions

Start in Canada

Ready to start building?

Passwordless signup, pay-as-you-go billing, and one OpenAI-compatible endpoint for every model. Create your key and send your first request in minutes.