Z.ai: GLM-4.7 FlashX
Chatz-ai/glm-4.7-flashxGLM-4.7 FlashX is Z.ai's fast, low-cost variant of the 30B-class GLM-4.7-Flash model, balancing performance with efficiency and further optimized for agentic coding: stronger coding capability, long-horizon task planning, and tool collaboration. It supports reasoning, function calling (tool use), prompt caching, and web search. Context: 200K tokens, output: 128K. Pricing is aggressive at $0.072/M input tokens and $0.43/M output, with cached input reads at $0.015/M. Available via OpenAI and Anthropic protocols.
Context Window
200K
Max Output Tokens
128K
Released
2026-01-19
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
Zhipu
Supported Protocols
openaianthropic
Providers
Zhipu
Input Tokens
$0.072/M
Output Tokens
$0.43/M
Cache Read
$0.015/M
Web Search
$0.01/R
Protocols
openai
/v1/chat/completionsanthropic
Code Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.ai/v1",api_key="YOUR_OFOX_API_KEY",)response = client.chat.completions.create(model="z-ai/glm-4.7-flashx",messages=[{"role": "user", "content": "Hello!"}],)print(response.choices[0].message.content)
Related Models
Frequently Asked Questions
Z.ai: GLM-4.7 FlashX on Ofox.ai costs $0.072/M per million input tokens and $0.43/M per million output tokens. Pay-as-you-go, no monthly fees.
Z.ai: GLM-4.7 FlashX supports a context window of 200K tokens with max output of 128K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible โ just change the base URL and API key in your existing code.
Z.ai: GLM-4.7 FlashX supports the following capabilities: Function Calling, Reasoning, Prompt Caching, Web Search. Access all features through the Ofox.ai unified API.