# GLM-4.7-FlashX > GLM-4.7-FlashX is a lightweight, high-speed Z.ai text model for agentic coding at an affordable price. ## Key facts - Model author: Z.ai - Input: $0.07 per 1M tokens - Output: $0.40 per 1M tokens - Cached input: $0.01 per 1M tokens - Context window: 200,000 tokens - Maximum output: 128,000 tokens - Input modalities: text - Output modalities: text - Capabilities: reasoning, structured_output, tools - Model IDs: `z-ai/glm-4.7-flashx` - Model page: https://www.realrelay.ai/model/z-ai/glm-4.7-flashx ## Overview GLM-4.7-FlashX is a lightweight, high-speed and affordable text model from Z.ai. It is tuned for agentic coding and carries enhanced general capabilities, so it fits coding assistance and tool-driven tasks that run at high volume. It supports reasoning, structured output and tool calling. GLM-4.7-FlashX has a 200K-token context window and can generate up to 128K output tokens. It accepts text input and returns text output. ## Capabilities GLM-4.7-FlashX supports reasoning, structured output and tool calling. Z.ai positions it as lightweight and high-speed, with optimized agentic coding and enhanced general capabilities. ## Pricing GLM-4.7-FlashX costs $0.07 per 1M input tokens and $0.40 per 1M output tokens. Cache reads cost $0.01 per 1M tokens. GLM-4.7-FlashX is available through RealRelay's OpenAI-compatible API. ## Use cases Use GLM-4.7-FlashX for high-volume coding help, such as quick edits, short refactors and automated review comments, where a low price and quick responses matter. Its 200K-token context window and tool calling also support lightweight agents that read project files, call tools and return structured results for each request they handle. ## 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-flashx", "messages": [{"role": "user", "content": "Hello"}]}' ``` ## FAQ ### What is GLM-4.7-FlashX? GLM-4.7-FlashX is a lightweight, high-speed Z.ai text model for agentic coding at an affordable price. ### How much does GLM-4.7-FlashX cost? GLM-4.7-FlashX costs $0.07 per 1M input tokens and $0.40 per 1M output tokens, with cache reads at $0.01 per 1M tokens. ### What is the context window of GLM-4.7-FlashX? GLM-4.7-FlashX has a 200K-token context window and can generate up to 128K output tokens. ### What inputs and outputs does GLM-4.7-FlashX support? GLM-4.7-FlashX accepts text input and returns text output. ### Does GLM-4.7-FlashX support tool calling? Yes. GLM-4.7-FlashX supports tool calling, along with reasoning and structured output. ### How do I call GLM-4.7-FlashX via the API? Send requests to RealRelay's OpenAI-compatible API and use the model ID z-ai/glm-4.7-flashx.