Kling 4.0 is live on Atlas Cloud — 30s native video

Z.ai API for Top Open-Source GLM Coding

The Z.ai API brings ZhipuAI's full GLM series to your stack, from GLM-4.6 to the flagship GLM-5.1, which ranks first among open-source models on SWE-Bench Pro and runs autonomous coding agents for hours at a time. GLM pairs a 202K token context with balanced Chinese and English output under a permissive MIT license. Atlas Cloud serves each model through one OpenAI-compatible key with Day-0 access and transparent per-call pricing. Start today.

Z.ai is developed by Z.ai. Atlas Cloud (operated by Atlas Cloud AI LLC) provides access to it and does not own it. All trademarks belong to their respective owners.

Large Language Models by Z.ai

Power chat, reasoning, and agents at scale with leading large language models, served fast and affordably on Atlas Cloud.

View all models

Z.ai Models API Pricing Details

Compare standard vs. our pricing across every Z.ai model.

ModelStandard Price (USD)Our Price (USD)Discount
GLM 5.2
$1.4/$4.4per 1M tokens1048.6K context
$0.938/$2.948M in/outper 1M tokens1048.6K context
-33%View
GLM 5.1
$1.4/$4.4per 1M tokens202.8K context
$1.26/$3.96M in/outper 1M tokens202.8K context
-10%View
GLM 5v Turbo
$1.2/$4per 1M tokens202.8K context
$1.2/$4M in/outper 1M tokens202.8K context
—View
GLM 5
$1/$3.2per 1M tokens202.8K context
$0.95/$3.15M in/outper 1M tokens202.8K context
—View

Explore models from other providers

Instantly explore and experiment with 400+ production-ready models in the Atlas Playground. Start customizing with one click.

Z-AI API Use Cases You Can Build on Atlas Cloud

GLM's model tiers cover everything from fast bilingual chat tasks to multi-hour autonomous coding agents. Teams use GLM-5.1 for long-horizon engineering work and GLM-4.7 or GLM-5 Turbo where cost efficiency and speed take priority.

Long-horizon Database Performance Optimization

Engineering teams use GLM-5.1 to run autonomous optimization agents that iterate on production systems over hundreds of rounds. In a documented run, GLM-5.1 improved a vector database through 600 iterations and 6,000 tool calls, reaching 21,500 queries per second — six times the result achievable in a single 50-turn session. Atlas Cloud's pay-as-you-go pricing makes it practical to run these extended sessions without pre-purchasing capacity.

Autonomous Repo-scale Code Refactoring

Development teams use GLM-5.1 to execute full codebase transformations over multi-hour sessions without human checkpoints. The model plans, writes, tests, and iterates on changes continuously for up to 8 hours, handling 655 iterations in a demonstrated Linux system build from scratch. This replaces weeks of manual refactoring work on large, legacy codebases.

IDE Coding Agent Integration

Developer tools teams integrate GLM-5.1 and GLM-5 Turbo as the underlying model for AI coding workflows in Claude Code, Kilo Code, Cline, Roo Code, and OpenCode. The Z-AI API on Atlas Cloud is OpenAI-compatible, so the base URL swap is the only change required to route any of these tools through GLM. GLM-5 Turbo's 262K context window makes it especially suited for large file context in IDE workflows.

Tier-1 Support Query Automation

Operations teams build support agents using GLM-5 that combine ticket database access, knowledge base search, and escalation tooling to handle repetitive queries without human intervention. The model's multi-tool calling and streaming support make it practical for real-time customer-facing deployments. Bilingual support means the same agent handles Chinese and English tickets from a single model endpoint on Atlas Cloud.

Bilingual Document Generation at Scale

Content and business teams use GLM-4.7 to generate Word documents, PowerPoint presentations, PDFs, and Excel reports in both Chinese and English from structured prompts. At $0.52 per million input tokens, it is the most cost-efficient GLM tier for high-volume document workflows that do not require frontier-level reasoning. The 202K context window is sufficient to hold full document outlines and source material in a single call.

ML Workload Kernel Optimization

AI infrastructure teams use GLM-5.1 to run benchmark-driven optimization pipelines on machine learning workloads. On KernelBench-style tasks, GLM-5.1 performs thousands of tool-driven optimization cycles and achieves a 3.6x geometric mean speedup. The 8-hour continuous execution capability means the agent runs the full optimization loop without requiring manual restarts between sessions.

Render your enterprise vision into reality with Atlas Cloud AI.

Contact Sales

What Developers Ask About the Z.ai API

The Z.ai API gives developers programmatic access to the GLM series of large language models built by Z.ai, the company also known as Zhipu AI. GLM stands for General Language Model and spans releases from GLM-4.6 to the GLM-5.1 flagship, tuned for coding, agentic workflows, and bilingual Chinese and English production use. On Atlas Cloud you reach the full lineup through one OpenAI-compatible endpoint.

Atlas Cloud hosts the GLM series from GLM-4.6 up to the GLM-5.1 flagship, with GLM-4.7 and GLM-5 in between. Lighter tiers handle high-volume everyday tasks at lower cost, while GLM-5.1 targets the most demanding coding and agentic work. Every model runs pay-as-you-go through the same key.

Yes. GLM open weights, including GLM-5.1, are released under the MIT license, which permits commercial use, fine-tuning, and redistribution without restriction. If you would rather skip infrastructure overhead, Atlas Cloud serves the same models by API for managed access instead of self-hosting.

Point your existing OpenAI SDK at the Atlas Cloud base URL, set your key, and pass the GLM model name you want. Because the Z.ai API is OpenAI-compatible, most projects migrate by changing only the base URL and model string, and the models plug directly into agent tools such as Claude Code, Cline, and Roo Code. Start building today.

Both Chinese and English are first-class for GLM, which is trained for strong proficiency in each. Prompt in either language and you get consistent quality back, which makes the lineup practical for teams serving Chinese and international users from a single model rather than maintaining separate stacks.

GLM-4.6 through GLM-5.1 support a 200K token context window, enough to hold large codebases, long documents, or extended agent traces in a single request. Should your workflow produce long outputs, the same window covers big code files and multi-step execution logs without early truncation.

GLM-5.1 topped SWE-Bench Pro with a score of 58.4 in April 2026, placing it among the strongest open-source models for real-world coding. It also supports continuous autonomous execution for up to eight hours on a single task, running planning, iteration, and delivery in one loop, which suits long-horizon agent workflows in environments like Claude Code.

Every GLM model on the Z.ai API runs on transparent pay-as-you-go pricing, billed per token with no subscription or monthly commitment. Input and output tokens are metered separately, and lighter tiers such as GLM-4.7 cost less per token than the GLM-5.1 flagship, so you can match model choice to budget. Check the current per-token rate on each model card in Atlas Cloud.

Explore More Families

Kling 4.0

The Kling 4 API delivers Kling 4.0, the video model Kuaishou released on October 15, 2026. It generates up to 30 seconds in a single pass, follows up to 10 keyframes, blends 15 images, videos, and subjects through Omni Reference, and adds stereo audio with lip sync. Atlas Cloud serves all four endpoints, including video editing, on one OpenAI-compatible key from $0.11 per second. Start building today.

View Family

Seedance 2.5

The Seedance 2.5 API gives developers ByteDance Seed’s joint audio and video model, generating 4 to 30 seconds in one pass from text, a first frame, or up to 50 references across images, video, and audio. It edits selected regions, extends clips, and follows white-model and green-screen inputs. Atlas Cloud, an authorized U.S. reseller, adds a 480p draft mode, native 1080p finals, and enhanced 4K delivery with pay-as-you-go pricing.

View Family

Wan 3.0

Wan 3.0 API is the next generation of Alibaba's Wan video family, built to push long-form generation, multi-reference control, and audiovisual quality to new heights. Atlas Cloud already hosts Wan 2.7, 2.6, and 2.5, and Wan 3.0 runs on the same unified key with no separate setup. Start building today. Scroll down to the showcase to see what Wan 3.0 can create.

View Family

MiniMax H3

MiniMax H3 is MiniMax's multimodal video family for text, image, and reference guided creation. Across supported routes, it preserves subjects from reference media, offers flexible aspect ratios, and pairs generated sound with visuals through H3 Developer, with output profiles selected by endpoint. Atlas Cloud unifies the family behind one OpenAI-compatible key with transparent pay-as-you-go pricing from the standard rate of $0.038 per second. Start building today.

View Family

GPT Image 2.5

GPT Image 2.5 is OpenAI’s image generation and editing model, released on September 8, 2026 in two API versions. Flare is the default, with up to 50% lower latency than GPT Image 2, while Sunburst takes longer to give finer control over detailed edits. Both support up to 16 reference images, five quality tiers, transparent backgrounds, and custom sizes up to 3840px. Atlas Cloud serves the GPT Image 2.5 API at OpenAI’s per token rates, or at a flat price per image by 1K, 2K, or 4K tier.

View Family

Seedream 5.0 Pro

Seedream 5.0 Pro API gives developers ByteDance's controllable image editing model on Atlas Cloud. It places edits precisely with anchors and coordinates, separates images into editable layers, fuses multiple references, and matches exact colors and materials, with multilingual text at 2K and 3K. On Atlas Cloud you reach it through one key!

View Family

Seedance 2.0

Seedance 2.0 is ByteDance’s production video model for precise shot creation. Turn prompts into video, animate a first-frame image with optional last-frame guidance, or shape results with reference media and optional web search. Atlas Cloud brings these workflows into one unified API with transparent pay-as-you-go pricing and one OpenAI-compatible key. Start building today.

View Family

Kling V3.0

From Kuaishou, the Kling V3 API family supports text, image, and reference video workflows. Transfer motion while preserving character identity, guide generation with visual references, and edit videos through natural language commands. Atlas Cloud offers Standard and Pro endpoints for different production needs. Update: Kling V4 is now available on Atlas Cloud. Explore it on the[Kling V4](https://www.atlascloud.ai/zh/models/kling-v4) page.

View Family

Grok Imagine Video

Grok Imagine Video gives developers access to xAI’s video family for creating, animating, extending, and editing clips. Generate 1 to 15 second videos from prompts, guide people, objects, or styles with up to seven reference images, and work at 480p or 720p. Atlas Cloud brings these capabilities together through OpenAI-compatible endpoints with transparent pay-as-you-go pricing. Start building today.

View Family

Vidu Q4 Preview

Vidu Q4 is Vidu's latest flagship video model, designed for image-to-video and reference-to-video generation. It can animate a single still image and create automatic scene transitions, giving developers two input paths for different product workflows. Atlas Cloud provides dedicated API endpoints with published parameter schemas at the verified standard price of $0.04 per second. Start building today.

View Family

Gemini Omni 1.1 Flash

Gemini Omni 1.1 Flash is Google DeepMind’s natively multimodal video family for flexible production workflows. Edit existing footage through text instructions, maintain visual consistency with up to 10 reference images and 3 video clips, or extend a shot in chainable segments to 40 seconds. Access every workflow on Atlas Cloud with one OpenAI-compatible API key, pay-as-you-go pricing, and Day-0 availability. Start building today.

View Family

Nano Banana 2.1

Nano Banana 2.1 is Google's image model family built on Gemini 3.6 Flash. It delivers Pro-level generation and editing at Flash-level speed, supports natural-language edits and merges across 1 to 14 input images, and maintains consistency for up to 4 characters and 10 objects. Through Atlas Cloud, developers can access the family with one OpenAI-compatible key, reliable uptime, and Day-0 availability. Start building today.

View Family

Recommended Articles

Guides, tutorials, and product updates to help you get the most out of Atlas Cloud.