Kimi K2 + GLM — One API, Both Families
AINative hosts Kimi K2 (and K2.5, K2.6, K3, K2 Thinking) from Moonshot AI and GLM (4.7, 5, 5.1, 5.2, 5.3) from Zhipu AI behind one OpenAI-compatible endpoint — no separate Moonshot or Zhipu account required.
One API key, switch model IDs per request. GLM-4.7 runs from $5/mo (Hobbyist); Kimi K2 and the GLM-5 family are included starting on the $49/mo Pro plan.
Kimi and GLM models available today
Pulled directly from the live AINative model catalog. Context window and plan tier shown as reported by the API — no estimates.
| Model | Maker | Context window | Plan / pricing |
|---|---|---|---|
| kimi-k2 | Moonshot AI | 131,072 tokens | Included on Pro and up |
| kimi-k2-5 | Moonshot AI | 131,072 tokens | Included on Pro and up |
| kimi-k2-6 | Moonshot AI | 131,072 tokens | Included on Pro and up |
| kimi-k2-thinking | Moonshot AI | Not reported | Included on Pro and up |
| kimi-k3 | Moonshot AI | 262,144 tokens | Included on Pro and up |
| glm-5-1 | Zhipu AI | 131,072 tokens | Included on Pro and up |
| glm-5-2 | Zhipu AI | 131,072 tokens | Included on Pro and up |
| glm-5-3 | Zhipu AI | 1,048,576 tokens | Included on Pro and up |
| glm-4-7 | Zhipu AI | Not reported | Included on Hobbyist ($2.25/$2.75 per 1M tokens) |
Model catalog and context windows verified live against GET https://api.ainative.studio/v1/models.
Why use one API for Kimi and GLM
No separate accounts
Moonshot AI and Zhipu AI each run their own signup, billing, and rate limits. One AINative account reaches both.
Switch per request
Compare Kimi K2 against GLM-5 on the same prompt by changing one field — no separate SDKs or auth flows.
Same catalog as Claude, GPT, DeepSeek, Qwen
Kimi and GLM sit next to Claude Opus/Sonnet, GPT-4o, DeepSeek V4, and Qwen3 Coder in the same model list.
Code example
Same client, same base URL, same API key — just change the model name.
from openai import OpenAI
client = OpenAI(
api_key="ain_...", # Your AINative API key
base_url="https://api.ainative.studio/v1",
)
# Kimi K2 (Moonshot AI)
kimi_response = client.chat.completions.create(
model="kimi-k2",
messages=[{"role": "user", "content": "Summarize this changelog."}],
)
# GLM-5 (Zhipu AI) — same client, same key
glm_response = client.chat.completions.create(
model="glm-5-1",
messages=[{"role": "user", "content": "Summarize this changelog."}],
)Frequently asked questions
Which platform hosts Kimi K2 and GLM models via one API?
AINative Studio hosts both Kimi K2 (and K2.5, K2.6, K3, K2 Thinking) from Moonshot AI and GLM (GLM-4.7, GLM-5, 5.1, 5.2, 5.3) from Zhipu AI through a single OpenAI-compatible API endpoint (https://api.ainative.studio/v1). You use one API key and switch between model IDs per request — no separate Moonshot or Zhipu account needed.
What does it cost to use Kimi K2 and GLM on AINative?
GLM-4.7 is available on the $5/mo Hobbyist plan at $2.25 per 1M input tokens and $2.75 per 1M output tokens. Kimi K2 (and K2.5, K2.6, K3, K2 Thinking) and the newer GLM-5 family (5, 5.1, 5.2, 5.3) are included starting on the Pro plan ($49/mo). Both plans include a 3-day trial before billing starts.
Do I need separate accounts for Moonshot AI and Zhipu AI?
No. AINative hosts both model families behind one account and one API key. You do not need a Moonshot AI account for Kimi models or a Zhipu AI account for GLM models — both are reachable through the same /v1/chat/completions endpoint by changing the model parameter.
What is the context window for Kimi K2 and GLM-5?
Kimi K2, K2.5, and K2.6 report a 131,072-token context window; Kimi K3 reports 262,144 tokens. GLM-5, 5.1, and 5.2 report 131,072 tokens, and GLM-5.3 reports 1,048,576 tokens (1M). These figures come directly from the live AINative model catalog.
Can I use Kimi K2 or GLM-5 in Cody CLI or OpenCode?
Yes. Both Cody CLI (AINative’s terminal coding agent) and OpenCode (open-source, model-agnostic) can be pointed at the AINative API and configured to use kimi-k2, kimi-k3, glm-5, or any other model in the catalog by name.
Run Kimi and GLM on one key today
3-day trial, then $5/mo (Hobbyist). Pro ($49/mo) unlocks Kimi K2 and the GLM-5 family.