# GLM-4.6 > GLM-4.6 is a Z.ai text model for coding and complex tasks, with a 200K-token context window. ## 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-09-30 - Knowledge cutoff: 2025-03-31 - Model IDs: `z-ai/glm-4.6` - Model page: https://www.realrelay.ai/model/z-ai/glm-4.6 ## Overview GLM-4.6 is a text model from Z.ai, positioned by the vendor as a flagship coding model. It is designed for coding and for complex tasks that need a long context, and its context window is documented at 200K tokens. Reasoning, structured output and tool calling are available for building applications on top of it. GLM-4.6 has a 200K-token context window and can generate up to 128K output tokens. It accepts text input and returns text output. Its knowledge cutoff is March 31, 2025. It was released on September 30, 2025. ## Capabilities GLM-4.6 supports reasoning, structured output and tool calling. Z.ai describes it as a high-performance model with strong coding ability. ## Pricing GLM-4.6 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens. Cache reads cost $0.11 per 1M tokens. GLM-4.6 is available through RealRelay's OpenAI-compatible API. ## Use cases Use GLM-4.6 for coding work such as writing, reviewing and debugging code, where the 200K-token context window lets you send many files and long instructions in one request. It also fits complex text tasks that need structured results, for example extracting fields into a defined schema or calling tools from a workflow, using its structured output and tool calling support. ## 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.6", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## FAQ ### What is GLM-4.6? GLM-4.6 is a Z.ai text model for coding and complex tasks, with a 200K-token context window. ### How much does GLM-4.6 cost? GLM-4.6 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.6? GLM-4.6 has a 200K-token context window and can generate up to 128K output tokens. ### What inputs and outputs does GLM-4.6 support? GLM-4.6 accepts text input and returns text output. ### Does GLM-4.6 support tool calling? Yes. GLM-4.6 supports tool calling, along with reasoning and structured output. ### When was GLM-4.6 released? GLM-4.6 was released on September 30, 2025. ### How do I call GLM-4.6 via the API? Send requests to RealRelay's OpenAI-compatible API and use the model ID z-ai/glm-4.6.