Skip to content
Z.ai

GLM 5.1

inworld/models/GLM-5.1

GLM 5.1 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 supports a 203K token context window with up to 33K tokens of output. Priced at $0.95 per million input tokens and $3.25 per million output tokens. Access GLM 5.1 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Input
$0.95
Output
$3.25
Cache read
$0.10
Context
202.8K
Max output
32.8K
Text→Text
Function CallingReasoningStructured output
Run on your server. Set INWORLD_API_KEY to your API key. Python requires pip install openai; JavaScript requires Node.js 18+; save it as example.mjs.
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
  -H "Authorization: Basic $INWORLD_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "inworld/models/GLM-5.1",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
Model GLM 5.1OpenAI SDK compatible

Pricing and providers

Access GLM 5.1 through Inworld LLM Inference or speech to speech via Inworld. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.

Modalities
InworldThis pageinworld/models/GLM-5.1
$0.95$3.25$0.10—202.8K32.8K
Text→Text
Prices in USD per 1M tokens.

Start building with GLM 5.1

Access GLM 5.1 and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.