Skip to content
Z.ai

GLM 4.7

deepinfra/zai-org/GLM-4.7

GLM 4.7 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.4 per million input tokens and $1.75 per million output tokens, it is one of the most cost-efficient options in its class. Access GLM 4.7 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Input
$0.40
Output
$1.75
Cache read
$0.08
Context
202.8K
Max output
—
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": "deepinfra/zai-org/GLM-4.7",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
Model GLM 4.7OpenAI SDK compatible

Pricing and providers

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

Modalities
DeepInfraThis pagedeepinfra/zai-org/GLM-4.7
$0.40$1.75$0.08—202.8K—
Text→Text
Prices in USD per 1M tokens.

Start building with GLM 4.7

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