Get started
Z AI

Zai Org/GLM 5

Zai Org/GLM 5 is a reasoning model by Z AI with function calling, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It features an extended 203K token context window, suitable for processing long documents and complex conversations. Priced at $0.6 per million input tokens and $2.08 per million output tokens. Access Zai Org/GLM 5 through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingReasoningResponse SchemareasoningCapabilityresponseFormatCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "deepinfra/zai-org/GLM-5-a", "model_id": "deepinfra/zai-org/GLM-5" }, "weight": 33 }, { "variant": { "variant_id": "fireworks/accounts/fireworks/models/glm-5p1-b", "model_id": "fireworks/accounts/fireworks/models/glm-5p1" }, "weight": 33 }, { "variant": { "variant_id": "inworld/models/GLM-5.1-c", "model_id": "inworld/models/GLM-5.1" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Zai Org/GLM 5 pricing and providers

Access Zai Org/GLM 5 through DeepInfra via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
DeepInfraDeepInfra202.8K$0.60$2.08+2

Other Z AI models available through Inworld

Compare Zai Org/GLM 5 with other Z AI models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
Accounts/fireworks/models/glm 5p1202.8K202.8K$1.40$4.40
Models/GLM 5.1202.8K32.8K$0.95$3.25+2
Zai Org/GLM 4.7202.8K$0.40$1.75+2
Zai Org/GLM 4.7 Flash202.8K$0.06$0.40+2
Zai Org/GLM 5.1202.8K32.8K$1.05$3.50+2
Zai Org/GLM 5.21M131.1K$1.40$4.40+2

Start building with Zai Org/GLM 5

Access Zai Org/GLM 5 and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Zai Org/GLM 5 by Z AI — Pricing, Specs & API Access | Inworld