AI model comparison

Qwen3.5 397B A17B vs GLM 4.7

Pricing, context window, benchmarks, and features compared side by side. Or skip the guesswork and send one prompt to both.

The Qwen3.5 series 397B-A17B native vision-language model is built on a hybrid architecture that integrates a linear attention mechanism with a sparse mixture-of-experts model, achieving higher inference efficiency.

Input / 1M
$0.55
Output / 1M
$3.50
Context
262K

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution.

GLM 4.7 is scheduled to be retired on December 31, 2026. Consider GLM 5.3 instead.

Input / 1M
$0.60
Output / 1M
$2.20
Context
205K

At a glance

Quick verdict

How the two models stack up on the things people ask about most.

Lower price

z-ai logo

GLM 4.7

1.2x cheaper for a typical chat

Higher intelligence score

z-ai logo

GLM 4.7

22.2 vs 21.4 on Artificial Analysis

Larger context window

qwen logo

Qwen3.5 397B A17B

262K vs 205K tokens

Newer release

qwen logo

Qwen3.5 397B A17B

Released February 16, 2026

Benchmarks

Benchmark scores

Independent scores from Artificial Analysis. Higher is better.

Intelligence index

qwen logoQwen3.5 397B A17B21.4
z-ai logoGLM 4.722.2

Coding index

qwen logoQwen3.5 397B A17BNot available
z-ai logoGLM 4.745.3

Agentic index

qwen logoQwen3.5 397B A17BNot available
z-ai logoGLM 4.7Not available

Pricing

Qwen3.5 397B A17B vs GLM 4.7 API pricing

Per-token API rates. Cheaper option highlighted.

Metricqwen logoQwen3.5 397B A17Bz-ai logoGLM 4.7
Input tokensPer 1M tokens$0.55$0.60
Output tokensPer 1M tokens$3.50$2.20
Cached input (read)Per 1M tokens$0.22$0.11
Cache writePer 1M tokensNot availableNot available

What it costs in practice

Estimated cost per 1,000 requests at standard rates. Coding and long-document figures also show the cost when the input is already cached.

Chat message

2K in, 500 out

qwen logoQwen3.5 397B A17B$2.85
z-ai logoGLM 4.7$2.30

Coding task

30K in, 4K out

qwen logoQwen3.5 397B A17B$30.50$20.75 cached
z-ai logoGLM 4.7$26.80$12.10 cached

Long document summary

150K in, 2K out

qwen logoQwen3.5 397B A17B$89.50$40.75 cached
z-ai logoGLM 4.7$94.40$20.90 cached

Specs

Context window and capabilities

How much each model can read, how much it can write, and what it accepts as input.

Metricqwen logoQwen3.5 397B A17Bz-ai logoGLM 4.7
Context window262K tokens205K tokens
Max output236K tokens131K tokens
Input typesImage, Text, VideoText
Output typesTextText
Reasoning effort levelsNot availableNot available
Default reasoning effortNot availableNot available
Release dateFebruary 16, 2026December 22, 2025

Features

Supported features

API features available for each model.

Metricqwen logoQwen3.5 397B A17Bz-ai logoGLM 4.7
Tool callingSupportedSupported
Structured outputsSupportedSupported
JSON modeSupportedSupported
ReasoningSupportedSupported
TemperatureSupportedSupported
Stop sequencesSupportedSupported
Deterministic seedSupportedSupported
Verbosity controlNot supportedNot supported

Our take

GLM 4.7 is 1.2x cheaper for a typical chat. GLM 4.7 scores higher on the Artificial Analysis Intelligence Index (22.2 vs 21.4). Qwen3.5 397B A17B has the larger context window (262K vs 205K tokens). The right pick depends on your workload, so the quickest way to settle it is to send the same prompt to both and compare.

FAQ

Frequently asked questions

Is Qwen3.5 397B A17B or GLM 4.7 cheaper?

GLM 4.7 is cheaper for a typical chat (2K input tokens and 500 output tokens). GLM 4.7 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens, while Qwen3.5 397B A17B costs $0.55 per 1M input tokens and $3.50 per 1M output tokens.

Which has a bigger context window, Qwen3.5 397B A17B or GLM 4.7?

Qwen3.5 397B A17B supports up to 262K tokens of context, compared with 205K for GLM 4.7.

Is Qwen3.5 397B A17B smarter than GLM 4.7?

On the Artificial Analysis Intelligence Index, Qwen3.5 397B A17B scores 21.4 and GLM 4.7 scores 22.2, putting GLM 4.7 ahead. Benchmarks don't capture everything, so the best test is running your own prompts through both.

Can I use Qwen3.5 397B A17B and GLM 4.7 at the same time?

Yes. Shortcut Chat sends one prompt to multiple models at once, so you can see Qwen3.5 397B A17B and GLM 4.7 answer side by side and keep the better response.

qwen logoz-ai logo

Why choose? Ask both.

Send one prompt to Qwen3.5 397B A17B and GLM 4.7 at the same time. Compare the answers side by side and keep the best one.