API cost decision in 10 seconds

Qwen3.5 397B A17B vs GLM 5

The standard workload cost is tied; choose by context window, provider fit, latency, or model quality.

Pricing data updated:  Prices normalized to USD per 1M tokens Sample workload: 1M input + 500K output

Budget verdict

The standard workload cost is tied; choose by context window, provider fit, latency, or model quality.

Both models are estimated at $1.56 for the standard 1M input plus 500K output workload.

Cost-first pickTie
Context-first pickQwen3.5 397B A17B
Sample savings$00%
10x traffic gap$0

Context-window winner: Qwen3.5 397B A17B. Cost does not separate this pair on the standard workload, so the next decision point is context window and model behavior.

Cost sensitivity

Workload Sensitivity

Same prices, different token mixes.

Cost winner changes by workload shape: input-heavy / RAG favors Qwen3.5 397B A17B, balanced workload favors GLM 5, and output-heavy chatbot favors GLM 5.

Workload shapeToken mixBetter pickQwen3.5 397B A17BGLM 5
Input-heavy / RAG5M input + 500K outputQwen3.5 397B A17B$3.12$3.96
Balanced workload1M input + 1M outputGLM 5$2.73$2.52
Output-heavy chatbot1M input + 5M outputGLM 5$12.09$10.2
Cheaper input Qwen3.5 397B A17B $0.39 vs $0.6 / 1M

Qwen3.5 397B A17B is $0.21 cheaper per 1M input tokens (35% lower; 1.54x difference).

Cheaper output GLM 5 $2.34 vs $1.92 / 1M

GLM 5 is $0.42 cheaper per 1M output tokens (17.9% lower; 1.22x difference).

Larger context Qwen3.5 397B A17B 262.14K vs 202.75K

Qwen3.5 397B A17B has 59.39K more context (1.29x larger).

Sample workload Tie $1.56 vs $1.56

Both models have the same estimated cost for the standard 1M input plus 500K output workload: $1.56.

Estimate your workload cost

Your Workload Cost

Prices are normalized to USD per 1M tokens.
Qwen3.5 397B A17B Calculating… Estimated API cost
GLM 5 Calculating… Estimated API cost
Cheaper for this workload Calculating… Difference: calculating…

This estimate uses normalized public API pricing per 1M tokens. It is a planning aid, not a billing quote. Verify provider pricing, limits, and terms before production use.

Quick Decision

Verdict

Qwen3.5 397B A17B has the lower input price; GLM 5 has the lower output price; Qwen3.5 397B A17B offers the larger context window. For the 1M input plus 500K output sample, the standard workload cost is tied.

For a 1M input token plus 500K output token workload, the estimated API cost is $1.56 for Qwen3.5 397B A17B and $1.56 for GLM 5.

Best Fit

Choose Qwen3.5 397B A17B when you care most about lower input-token price, and larger context window.

Choose GLM 5 when you care most about lower output-token price.

Decision Notes
  • Both models are estimated at $1.56 for the standard 1M input plus 500K output workload.
  • Both models have the same estimated cost for the standard 1M input plus 500K output workload: $1.56.
  • Qwen3.5 397B A17B is $0.21 cheaper per 1M input tokens (35% lower; 1.54x difference).
  • GLM 5 is $0.42 cheaper per 1M output tokens (17.9% lower; 1.22x difference).
  • Qwen3.5 397B A17B has 59.39K more context (1.29x larger).
Head-to-Head Specs
FeatureQwen3.5 397B A17B
(Qwen)
GLM 5
(Z.ai)
Input Price
prompt tokens per 1M
$0.39$0.6
Completion Price
per 1M tokens
$2.34$1.92
Sample Workload Cost
1M input + 500K output
$1.56$1.56
Context Window262.14K202.75K
Release Date

Use-Case Decision Matrix

Use caseBetter pickWhy
Budget-constrained productionTieBoth models are estimated at $1.56 for the standard 1M input plus 500K output workload.
High-volume input processingQwen3.5 397B A17BLower prompt-token price matters most when prompts, retrieved passages, or documents dominate the bill.
Long responses and chatbotsGLM 5Lower output-token price matters most when assistants generate many completion tokens.
RAG or long-document workQwen3.5 397B A17BA larger context window leaves more room for retrieved passages, conversation history, or source files.

Related Alternatives

Larger context near this budget
Popular competitors
  • No popular competitor is currently available.

Cheaper alternatives

Review low-cost models sorted by a standard 1M input plus 500K output workload.

Open cheapest models

Larger context alternatives

Find models with larger context windows for RAG, long documents, and codebase review.

Open largest context models

Provider catalogs

Compare models within provider hubs before choosing a final API vendor.

Open provider hubs

Qwen catalog

Review all tracked Qwen models before deciding whether this matchup is the right shortlist.

Open Qwen models

Z.ai catalog

Check other Z.ai models with comparable pricing, context, or release timing.

Open Z.ai models
Qwen3.5 397B A17B

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. It delivers...

GLM 5

GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...