GLM 4.7 Flash API

GLM 4.7 Flash on AIMLAPI.

Modalities
Image, TextText
In / Out price
$0.1323/$0.529per 1M
Context window
198K tokens
Released
Jan 19, 2026

GLM 4.7 Flash overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GLM 4.7 Flash through AI/ML API

GLM 4.7 Flash specs

Model ID
z-ai/glm-4.7-flash
Developer
Zhipu AI
Context window
202,752 tokens
Max output
16,384 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.

Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

GLM 4.7 Flash is documented as suited to dialogue, instruction-following, and multi-turn tool calling across 100+ languages.

It is also recommended for coding and programming work, including frontend and backend tasks.

For broader general use, it is documented for Chinese writing, translation, long-context tasks, and emotional or role-playing tasks.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

GLM 4.7 Flash benchmarks by Artificial Analysis

See how GLM 4.7 Flash 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 Flash API pricing

GLM 4.7 Flash pricing in US dollars
UsagePriceUnit
Input$0.13231M tokens
Output$0.5291M tokens
Cached input$0.01061M tokens

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

GLM 4.7 Flash 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 Flash$0.1323$0.529
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 Flash 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": "z-ai/glm-4.7-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GLM 4.7 Flash FAQ

What is the context window of GLM 4.7 Flash?

GLM 4.7 Flash has a 202,752 tokens context window and can return up to 16,384 tokens.

What inputs and outputs does GLM 4.7 Flash support?

GLM 4.7 Flash takes image, text as input and returns text.

What is the model ID for GLM 4.7 Flash?

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

How much does GLM 4.7 Flash cost?

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

Does GLM 4.7 Flash support streaming?

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

Can GLM 4.7 Flash read images?

Yes, GLM 4.7 Flash accepts image input alongside text.

Who created GLM 4.7 Flash?

GLM 4.7 Flash was built by Zhipu AI.

Does GLM 4.7 Flash support function calling and tool use?

Yes, it supports function calling, parallel tool calls, and structured outputs.

Start building with GLM 4.7 Flash

GLM 4.7 Flash API

z-ai/glm-4.7-flash

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": "z-ai/glm-4.7-flash",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'