GLM 5.1
GLM-5.1 is Zhipu's flagship AI model, excelling in programming, complex reasoning, and long-chain tasks.
Use cases
glm-5.1 prototyping · glm-5.1 production workflows
Input
Text, image
Output
Text
Billing
Per token
Start a conversation
Type a message below to begin
Sign up to get $0.5 in free credits — about 20 free images
Pricing details
Transparent usage-based pricing with no hidden fees.
Detailed Pricing
Usage-based pricing breakdown
| Spec | Price | Official | Savings |
|---|---|---|---|
| Input/1M tokens | 1.12 Credits≈$1.12 | 1.4 Credits | -20% |
| Output/1M tokens | 3.52 Credits≈$3.52 | 4.4 Credits | -20% |
| Cache Read/1M tokens | 0.208 Credits≈$0.208 | 0.26 Credits | -20% |
Billing Rules
- Output price varies by model, resolution, quality, duration, or token usage.
- Uploaded reference files may be charged separately when supported.
- Add-on capabilities such as web search or image search may be billed per request.
- Token-based models are billed by input and output tokens.
- If the primary route is unavailable, Velokey may automatically switch to a stable fallback route when possible.
- Usage is pay-as-you-go with transparent credit deduction.
* Final cost depends on the generated result.
Related models
Explore other models in the same family.
- ZhipuSave 20%
GLM 5.2
GLM-5.2 is Z.ai's flagship model with a 1M-token context, strong project-level coding, stable multi-step execution, and adjustable thinking for long-horizon engineering.
- ZhipuSave 20%
GLM 5
GLM-5 is Z.ai's 744B-parameter (40B active) sparse-attention model with Opus-4.5-level coding, strong agentic tool use, and a 200K context.
- OpenAISave 20%
GPT 5.4 Mini
OpenAI's fast, cost-efficient GPT-5.4 Mini for high-volume production, with vision, long context, and strong tool use at low latency.
- AlibabaSave 20%
Qwen3.6 Plus
Alibaba's Qwen3.6 Plus, a balanced flagship-tier model with strong reasoning, long context, multimodal input, and agentic tool use.
Affordable GLM-5.1 API
Access Z.ai / Zhipu's GLM-5.1 on Velokey — up to 8 hours of sustained autonomous execution, Opus-4.6-level agentic coding, an autonomous experiment-analyze-optimize loop, and a 200K-token context with full tool integration, all through a unified endpoint with below-list pricing.
Meet GLM-5.1 and its API access
GLM-5.1 is Z.ai / Zhipu's flagship model (request id glm-5-1), built for long-horizon autonomous tasks, complex engineering optimization, and real-world development workflows. Its general capability is aligned with Claude Opus 4.6, and it scores 58.4 on SWE-Bench Pro — outperforming GPT-5.4, Claude Opus 4.6, and Gemini 3.1 Pro. It ships with a 200K-token context window and up to 128K max output, plus Thinking Mode, streaming, function calling, context caching, structured output (JSON), and MCP tool integration. Velokey provides an affordable, easy-to-integrate GLM-5.1 API: a unified chat endpoint, one API key, a clear request flow, and below-list pricing for production systems, agent pipelines, and automation tools.
Up to 8 hours of sustained autonomous execution
GLM-5.1 can stay on a single task for up to 8 hours of sustained autonomous execution, keeping context and momentum across long-horizon work — ideal for large, multi-step projects that would otherwise need constant supervision.
View Documentation →
Opus-4.6-level agentic coding
General capability aligned with Claude Opus 4.6, scoring 58.4 on SWE-Bench Pro and outperforming GPT-5.4, Claude Opus 4.6, and Gemini 3.1 Pro — strong at agentic coding and real-world development workflows.
View Documentation →
Autonomous experiment-analyze-optimize loop
GLM-5.1 runs an autonomous 'experiment - analyze - optimize' loop for complex engineering optimization, delivering a 3.6x geometric-mean speedup on KernelBench Level 3 optimization tasks.
View Documentation →
200K context with full tool integration
A 200K-token context window and up to 128K max output, paired with Thinking Mode, function calling, MCP tool integration, context caching, and structured output (JSON) for building capable, tool-driven agents.
View Documentation →
How to call the GLM-5.1 API on Velokey
Get started with just a few steps.
Sign up and get an API key
Sign in to the Velokey console to generate one API key that authenticates every request sent to GLM-5.1 through the unified endpoint.
Configure request parameters
Set model to glm-5-1 and submit messages. Enable Thinking Mode for deeper reasoning, and turn on streaming, function calling, or structured output as your workflow needs.
Integrate and start calling
Send requests to Velokey's unified endpoint to power long-running agents, coding tasks, and automation, with usage and billing managed in one console.
Real-world use cases for GLM-5.1
From long-running agents to office productivity, covering many high-autonomy scenarios.
Agentic coding & long-running dev tasks
With up to 8 hours of sustained autonomous execution and Opus-4.6-level coding, fit for agentic coding and long-running development tasks.
Complex instruction following
General conversation with complex, multi-constraint instruction following, staying coherent across long, detailed prompts.
Creative writing
Fit for creative writing that needs a consistent voice, structure, and long-form coherence.
Front-end development & website generation
Fit for front-end development and full website generation, turning briefs into working layouts and components.
Office productivity
Generate and edit PowerPoint, Word, PDF, and Excel outputs for repeatable office productivity work.
Engineering optimization
The autonomous experiment-analyze-optimize loop delivers a 3.6x speedup on KernelBench Level 3 — fit for complex engineering optimization.
Why choose Velokey for GLM-5.1
Below-list pricing
Call GLM-5.1 at a lower price on Velokey — pay-as-you-go with no forced subscription, reducing upfront cost.
Unified endpoint, one API key
One API key accesses GLM-5.1 and other models through a single unified endpoint — no juggling multiple accounts and keys.
Full tool integration
Thinking Mode, streaming, function calling, context caching, structured output (JSON), and MCP tool integration are ready to use out of the box.
Complete docs and integration guidance
Endpoint references, parameter details, and integration examples help you adopt GLM-5.1's 200K context, long-horizon autonomy, and tools smoothly.
API Reference
Complete API call examples and parameter descriptions
Endpoint
https://api.velokey.ai/v1/chat/completionsAuthentication
Bearer YOUR_API_KEYRequest Example
curl https://api.velokey.ai/v1/chat/completions \
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.1",
"messages": [{"role": "user", "content": "Hello!"}],
"temperature": 0.7
}'Response Example
{
"id": "req_abc123",
"model": "glm-5.1",
"created": 1234567890,
"data": { ... }
}glm-5.1 API FAQ
What is the glm-5.1 API?
glm-5.1 is available through Velokey as a chat model. Set model to glm-5-1 and use the family-specific endpoint.
Which parameters does glm-5.1 use?
The playground shows the main fields for glm-5.1, including the model id and the most important generation parameters.
How is glm-5.1 billed?
Pricing is shown on this page when available, and credits are managed from one Velokey account.
Who should use glm-5.1?
It fits teams that want to test, compare, and ship AI capabilities through a unified API.
Start building with GLM 5.1 today
Use one API key to access low-cost, stable AI models through Velokey.