GLM-4.7 API

GLM-4.7 is Zhipu AI flagship text LLM optimized for agentic coding and stable multi-step reasoning, supporting long-context workflows.

Modalities
TextText
In / Out price
$0.6/$2.2per 1M
Context window
200K tokens
Released
Dec 23, 2025

GLM-4.7 overview

GLM-4.7 by Zhipu AI

GLM-4.7 is Z.AI's latest flagship large language model, purpose-built for agentic coding and stable multi-step reasoning.

GLM-4.7 specs

Model ID
zhipu/glm-4.7
Developer
Zhipu AI
Context window
200,000 tokens
Max output
128,000 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

GLM-4.7: Zhipu AI's Flagship LLM for Agentic Coding

GLM-4.7 represents Zhipu AI's latest advancement in large language models, prioritizing agentic coding, stable multi-step reasoning, and complex workflows. Released in December 2025, it supports a 200K token context window and up to 128K output tokens, enabling robust handling of extended tasks.

Technical Specifications

  • Model Type: Large Language Model (LLM)
  • Context Window: 200,000 tokens
  • Maximum Output Length: 128,000 tokens
  • Output Modalities: Text, structured responses, reasoning traces

Performance Benchmarks

GLM-4.7 leads open-source models in coding benchmarks at 128K context, achieving 73.8% on SWE-bench Verified (up 5.8% from GLM-4.6) and 84.9% on LiveCodeBench v6, surpassing Claude Sonnet 4.5. Reasoning scores include 42.8% on HLE with tools (41% gain over predecessor) and 95.7% on AIME 2025.

Key Features

GLM-4.7 excels in programming with a "think before acting" mechanism, improving multi-language code generation and terminal agent performance. It integrates function calling, structured JSON outputs, context caching, and real-time streaming for seamless developer workflows.​

Agentic Coding‍

Seamlessly writes, debugs, and deploys code across languages, ideal for terminal-based and IDE-integrated workflows.

Vibe Coding & UI Generation‍

Generates modern, aesthetically refined HTML/CSS/JS and presentation slides with accurate layout, spacing, and design sensibility.

Use cases

  • Web UI and visual content creation with professional-grade aesthetics for low-code tools.
  • Complex problem-solving in multi-turn chats, research, and immersive writing/role-play.
  • Intelligent search consolidating cross-source data for decision support.

Capabilities

  • Function calling
  • Streaming
  • Structured outputs
  • Reasoning

GLM-4.7 benchmarks by Artificial Analysis

See how GLM-4.7 compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 13 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

GLM-4.7 API pricing

GLM-4.7 pricing in US dollars
UsagePriceUnit
Input$0.61M tokens
Output$2.21M tokens
Cached input$0.111M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GLM-4.7 vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GLM-4.7$0.6$2.2
GLM-5.3-Flash$0.15$0.5
GLM 5.3 FlashX$0.37$1.25
GLM-5.3$1.4$4.4
GLM 5.2 Fast Preview$3.5$11

How to use the GLM-4.7 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "zhipu/glm-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GLM-4.7 FAQ

What is the context window of GLM-4.7?

GLM-4.7 has a 200,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does GLM-4.7 support?

GLM-4.7 takes text as input and returns text.

What is the model ID for GLM-4.7?

Use zhipu/glm-4.7 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

When was GLM-4.7 released?

GLM-4.7 became available on December 23, 2025.

How much does GLM-4.7 cost?

GLM-4.7 costs $0.6 input and $2.2 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GLM-4.7 support streaming?

Yes, GLM-4.7 can stream responses as they are generated.

Who created GLM-4.7?

GLM-4.7 was built by Zhipu AI.

Start building with GLM-4.7

GLM-4.7 API

zhipu/glm-4.7

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "zhipu/glm-4.7",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'