Pricing
- Input Tokens: $0.060 /M tokens
- Output Tokens: $0.220 /M tokens
Input Modalities
- Text
Output Modalities
- Text
Capabilities
- Thinking
- Tools
- Tool calling
- Structured outputs
Try this model
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AIHUBMIX_API_KEY"],
base_url="https://aihubmix.com/v1",
)
response = client.chat.completions.create(
model="coding-glm-5.2",
messages=[
{
"role": "user",
"content": "Hello, how are you?"
}
],
max_tokens=1024,
stream=False,
)
print(response.choices[0].message.content)Frequently asked questions
What is coding-glm-5.2?
How much does coding-glm-5.2 cost?
What modalities does coding-glm-5.2 support?
What capabilities does coding-glm-5.2 support?
How do I call coding-glm-5.2 via API?
Who created coding-glm-5.2?
Compare coding-glm-5.2
More models from Z.AI
GLM-5.3 is Z.ai’s reasoning model for coding and agentic workflows, designed for complex software engineering, long-running agents, and vulnerability analysis. It uses the same base model as GLM-5.2, with scaled post-training improving coding, task execution, and token efficiency. This model is a limited-time preview version of GLM-5.3, intended for testing and evaluation only. Service stability is not guaranteed, and we do not recommend using it in production environments. We’re waiting for the official commercial API release and will integrate it as soon as official support becomes available.
GLM-5.2 is Z.ai’s flagship model for the era of long-horizon tasks. With a truly usable 1M-token context window, it can handle project-level engineering context, execute long-running tasks more reliably, follow engineering standards more consistently, and complete the full development workflow from requirements to multi-platform deployment in a single task.
GLM-5.2-Fast-Preview is the high-speed version of Zhipu AI’s flagship model GLM-5.2, supporting a 1M ultra-long context. The model’s capabilities are aligned with the GLM-5.2 standard version, offering logical reasoning, long-text understanding, and code generation. Through inference acceleration optimizations, output TPS can reach 1.5–2× that of the GLM-5.2 standard version, significantly improving output speed. It is suitable for scenarios sensitive to output speed, such as real-time dialogue, multi-turn Agent calls, and streaming code generation.
coding glm 5.2 free (coding-glm-5.2-free) is a free coding-focused API route offered by AIHubMix, powered by Z.ai’s open-source flagship GLM-5.2 model. It is suitable for code generation, debugging, project-level development, tool use, and long-running agent tasks, with support for reasoning, function calling, and structured outputs. Compared with GLM-5.1, it offers stronger coding capabilities and a 1-million-token context window. Each account is limited to 5 requests per minute, 500 requests per day, and 1 million free tokens per day.
GLM-5.1 is Zhipu's latest flagship model, with greatly enhanced coding capabilities and significantly improved long-range task performance. It can continuously and autonomously work for up to 8 hours on a single task, completing the full closed loop from planning and execution to iterative optimization, delivering engineering-grade results. In terms of general capability and coding ability, GLM-5.1's overall performance aligns with Claude Opus 4.6, and it demonstrates stronger sustained work capability in long-range autonomous execution, complex engineering optimization, and real-world development scenarios, making it an ideal foundation for building Autonomous Agents and long-horizon Coding Agents.
$0.015 / IMG
GLM-Image is Zhipu AI's new flagship image generation model. The model is trained entirely on domestic chips and adopts an original hybrid architecture combining "autoregressive + diffusion decoder," balancing global instruction understanding with local detail depiction. It overcomes generation challenges in knowledge-intensive scenarios such as posters, PPTs, and popular science illustrations. This represents an important exploration towards the new generation of "cognitive generation" technology paradigms exemplified by Nano Banana Pro.
AIHubMix© 2023 - 2026 AIHubMix, LLC