Models / Zhipu AI
Model vendor
Zhipu AI
Zhipu AI (Z.ai) builds the GLM family — open-weight generalists, vision models and rerankers.
13Models routed
−30%Average vs list price
1Channels serving Zhipu AI
Popular models
GLM 5.2newGLM 5.2 is Zhipu AI's large-scale reasoning model, released 2026-06, built for long-horizon agent workflows and project-level software engineering.$0.30 / $1.05in / out · 1M−66%GLM 4.7GLM 4.7 is Zhipu AI's flagship language model, released 2025-12, focused on stronger programming and more reliable multi-step reasoning.$0.25 / $1.10in / out · 1M−37%GLM 5.1GLM 5.1 is Zhipu AI's flagship reasoning model, released 2026-04, designed for long-horizon autonomous work.$0.45 / $2.15in / out · 1M−35%
Zhipu AI models on MirAPI
ModelTypeContextInputOutputCache r / wOff listChannels
Defaultstable$0.30 / $1.05in / out · 1M−66%vs list price
Defaultstable$0.25 / $1.10in / out · 1M−37%vs list price
Defaultstable$0.45 / $2.15in / out · 1M−35%vs list price
Defaultstable$1.20 / $4.20in / out · 1M−7%vs list price
Defaultstable$0.48 / $1.90in / out · 1M−6%vs list price
Migration
A drop-in replacement for the OpenAI API
We speak the OpenAI wire format: official SDKs, LangChain, agent frameworks and your own wrapper all work as-is. Change the base URL and write model IDs the catalogue way: glm-5.2 becomes z-ai/glm-5.2.
Endpoints
/v1/chat/completionsChat & tool callsimport os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="z-ai/glm-5.2", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "z-ai/glm-5.2", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello"}] }'
One key covers Zhipu AI and 10 more vendors.
1M free tokens to start. No card required.