GLM 5.2 vs Kimi K2.7 Code

GLM 5.2 and Kimi K2.7 Code side by side: specs, capabilities, parameters, and live pricing from the EmpirioLabs catalog.

Z.ai Moonshot AI Text Generation

GLM 5.2 vs Kimi K2.7 Code at a glance

GLM 5.2 from Z.ai and Kimi K2.7 Code from Moonshot AI are both in the Text Generation category, available through the EmpirioLabs API.

Key differences

  • Both models were released on Jun 16, 2026.
  • GLM 5.2 has the larger context window: 1M tokens, against 256K for Kimi K2.7 Code.
  • Input types only Kimi K2.7 Code accepts: Image, Video.
  • Capabilities listed only for Kimi K2.7 Code: multimodal, agentic coding.
  • Kimi K2.7 Code lists the lower rate for Input (per 1M prompt tokens) and Output (per 1M generated tokens).

GLM 5.2 vs Kimi K2.7 Code: specs

SpecGLM 5.2Kimi K2.7 Code
Model IDglm-5-2kimi-k2-7-code
AuthorZ.aiMoonshot AI
ReleasedJun 16, 2026Jun 16, 2026
Context window1M tokens256K tokens
Max output131,072 tokens131,072 tokens
Input
Text
Text Image Video
Output
Text
Text
Structured outputJSON ModeJSON Schema
RegionSingaporeInternational
Endpoints
POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/glm-5-2:generateContent
POST /v1/chat/completions POST /v1/responses POST /v1/messages POST /v1beta/models/kimi-k2-7-code:generateContent
Capabilities
reasoning function calling web search
reasoning function calling multimodal agentic coding web search

GLM 5.2 vs Kimi K2.7 Code: API pricing

Live rates from the EmpirioLabs catalog for both models. Each rate card always matches what the API charges.

GLM 5.2 vs Kimi K2.7 Code: API parameters

Request parameters each model lists on EmpirioLabs, with the allowed values or range where one applies. A dash marks a parameter the model does not list.

ParameterGLM 5.2Kimi K2.7 Code
max_tokens1 to 131072 Default: 655361 to 262144 Default: 32768
temperature0 to 1 Default: 1-
top_p0.01 to 1 Default: 0.95-
reasoning_effortnone, minimal, low, medium, high, xhigh, max Default: max-
enable_thinkingboolean Default: true-
preserve_thinkingboolean Default: false-
do_sampleboolean Default: true-
tool_web_searchboolean Default: falseboolean Default: false
search_recency_filteroneDay, oneWeek, oneMonth, oneYear, noLimit Default: noLimit-
count1 to 50 Default: 10-
search_domain_filterstring-
search_promptstring-
search_resultboolean Default: true-
tool_streamboolean Default: false-
toolsarray Default: []-
tool_choiceobject-

GLM 5.2 vs Kimi K2.7 Code: limits and notes

Kimi K2.7 Code

Supports text, image, and video inputs with 256K context, function calling, JSON mode structured output, and built-in web search at $0.015 per invoked call. Thinking is always on and cannot be disabled; reasoning tokens are billed as output tokens. Temperature and other sampling overrides are ignored because the model service uses fixed sampling settings. Multi-step function calling through the API must replay the assistant message with its reasoning_content field intact.

How to call GLM 5.2 and Kimi K2.7 Code

GLM 5.2 serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id glm-5-2. Both models are called through the same endpoint. Set model to glm-5-2 or kimi-k2-7-code. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5-2",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'

GLM 5.2 vs Kimi K2.7 Code: tests and guides

Prompt tests and comparison runs that cover both models.

GLM 5.2 vs Kimi K2.7 Code: common questions

What is the difference between GLM 5.2 and Kimi K2.7 Code?

Both models were released on Jun 16, 2026. GLM 5.2 has the larger context window: 1M tokens, against 256K for Kimi K2.7 Code. Input types only Kimi K2.7 Code accepts: Image, Video. The specs, rate cards, and parameters on this page come from the live EmpirioLabs catalog.

Which has the lower rate, GLM 5.2 or Kimi K2.7 Code?

Kimi K2.7 Code lists the lower rate for Input (per 1M prompt tokens) and Output (per 1M generated tokens). Both live rate cards are on this page and always match what the API charges.

Can I switch between GLM 5.2 and Kimi K2.7 Code without rebuilding my integration?

Yes. Both models use POST /v1/chat/completions with the same EmpirioLabs API key, so most integrations switch by changing the model value. Check the parameters table on this page first if you rely on a model-specific parameter.

Can I try GLM 5.2 and Kimi K2.7 Code in the browser before integrating?

Yes. Open each model in the EmpirioLabs playground and run the same prompt on both, with the parameters the API exposes.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.