# Z.ai: GLM 4.7 Flash — Use via Hanzo AI API > As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic c... Access via Hanzo's OpenAI-compatible API. Context: 203K. Get started free. [Models](https://hanzo.ai/models)/[Z.ai](https://hanzo.ai/models/z-ai)/glm-4.7-flash # Z.ai: GLM 4.7 Flash [Z.ai](https://hanzo.ai/models/z-ai) As a 30B-class SOTA model, GLM-4.7-Flash offers a new option that balances performance and efficiency. It is further optimized for agentic coding use cases, strengthening coding capabilities, long-horizon task planning,... text [Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat) ## Specifications Context Window 203K Modalities text Input $0.072 / M tokens Output $0.480 / M tokens Status available Category third-party Model ID z-ai/glm-4.7-flash ## Quick Start TypeScript ``` import OpenAI from 'openai' const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: 'https://api.hanzo.ai/v1' }) const response = await client.chat.completions.create({ model: 'z-ai/glm-4.7-flash', messages: [{ role: 'user', content: 'Hello!' }] }) console.log(response.choices[0].message.content) ``` Python ``` from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="z-ai/glm-4.7-flash", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content) ``` cURL ``` curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d '{ "model": "z-ai/glm-4.7-flash", "messages": [{"role": "user", "content": "Hello!"}] }' ``` Go ``` package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "z-ai/glm-4.7-flash", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) } ``` ## More from Z.ai [Z.ai: GLM 4.5131KGLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of up to 128k tokens. GLM-4.5 delivers significantly...](https://hanzo.ai/models/z-ai/glm-4.5)[Z.ai: GLM 4.5 Air131KGLM-4.5-Air is the lightweight variant of our latest flagship model family, also purpose-built for agent-centric applications. Like GLM-4.5, it adopts the Mixture-of-Experts (MoE) architecture but with a more compact parameter...](https://hanzo.ai/models/z-ai/glm-4.5-air)[Z.ai: GLM 4.5V66KGLM-4.5V is a vision-language foundation model for multimodal agent applications. Built on a Mixture-of-Experts (MoE) architecture with 106B parameters and 12B activated parameters, it achieves state-of-the-art results in video understanding,...](https://hanzo.ai/models/z-ai/glm-4.5v)[Z.ai: GLM 4.6205KCompared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex...](https://hanzo.ai/models/z-ai/glm-4.6)[Z.ai: GLM 4.6V131KGLM-4.6V is a large multimodal model designed for high-fidelity visual understanding and long-context reasoning across images, documents, and mixed media. It supports up to 128K tokens, processes complex page layouts...](https://hanzo.ai/models/z-ai/glm-4.6v)[Z.ai: GLM 4.7205KGLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...](https://hanzo.ai/models/z-ai/glm-4.7) [View all Z.ai models →](https://hanzo.ai/models/z-ai) ## Use Z.ai: GLM 4.7 Flash via Hanzo AI One API key. Every major model. OpenAI-compatible. Start free. [Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)