# GLM-4.7 > GLM-4.7 is a Z.ai flagship model with stronger programming and more stable multi-step reasoning and execution. ## Key facts - Model author: Z.ai - Input: $0.60 per 1M tokens - Output: $2.20 per 1M tokens - Cached input: $0.11 per 1M tokens - Context window: 200,000 tokens - Maximum output: 128,000 tokens - Input modalities: text - Output modalities: text - Capabilities: reasoning, structured_output, tools - Released: 2025-12-22 - Model IDs: `z-ai/glm-4.7` - Model page: https://www.realrelay.ai/model/z-ai/glm-4.7 ## Overview GLM-4.7 is a flagship model from Z.ai with upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning and execution. Z.ai reports significant improvements in executing complex agent tasks, and lists agentic coding and general capabilities as its focus. GLM-4.7 has a 200K-token context window and can generate up to 128K output tokens. It accepts text input and returns text output. It was released on December 22, 2025. Its weights are openly available. ## Capabilities GLM-4.7 supports reasoning, structured output and tool calling. Z.ai documents a thinking mode, streaming output, function calling, context caching and structured output for the model. ## Pricing GLM-4.7 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens. Cache reads cost $0.11 per 1M tokens. GLM-4.7 is available through RealRelay's OpenAI-compatible API. ## Use cases Use GLM-4.7 for agentic coding, where the model plans a change, calls tools to read and edit files, and keeps a long multi-step task on track across many turns. It also fits complex agent workflows that mix reasoning with tool calls, such as automation that returns structured output for downstream systems, backed by a 200K-token context window. ## Call it OpenAI-compatible chat completions: ```bash curl https://www.realrelay.ai/v1/chat/completions \ -H "Authorization: Bearer $REALRELAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "z-ai/glm-4.7", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## FAQ ### What is GLM-4.7? GLM-4.7 is a Z.ai flagship model with stronger programming and more stable multi-step reasoning and execution. ### How much does GLM-4.7 cost? GLM-4.7 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens, with cache reads at $0.11 per 1M tokens. ### What is the context window of GLM-4.7? GLM-4.7 has a 200K-token context window and can generate up to 128K output tokens. ### What inputs and outputs does GLM-4.7 support? GLM-4.7 accepts text input and returns text output. ### Does GLM-4.7 support tool calling? Yes. GLM-4.7 supports tool calling, along with reasoning and structured output. ### When was GLM-4.7 released? GLM-4.7 was released on December 22, 2025. ### How do I call GLM-4.7 via the API? Send requests to RealRelay's OpenAI-compatible API and use the model ID z-ai/glm-4.7.