AI model comparison

GPT-5.4 Nano vs GLM 5.2

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
400K
Input / 1M
$0.20
Output / 1M
$1.25
Context tokens
1.05M
Input / 1M
$0.62
Output / 1M
$2.42
Benchmark snapshot
Code Completion
GPT-5.4 NanoGLM 5.2
67.391%
80.435%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
GPT-5.4 Nano and GLM 5.2 scored 67.391% and 80.435%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $0.5125 for GPT-5.4 Nano and $1.225 for GLM 5.2.
Context window
GLM 5.2 lists 1,048,576 tokens of context. GPT-5.4 Nano lists 400,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

GPT-5.4 NanoGLM 5.2

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

67.391%
80.435%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74.286%
78.873%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

63.636%
63.636%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50%
55%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

26.667%
36.667%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
98%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

94.388%
94%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

54.301%
79.276%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

82.828%
76%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

64%
80%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95.098%
96.078%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

87.982%
89.047%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

66.649%
62.25%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

39.133%
60.725%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

62.75%
55.667%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

82%
94%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

67.653%
62.883%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

71.767%
68.367%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

50.588%
45.865%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98.039%
96.078%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.769%
75%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

54%
74%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

97.619%
65.5%
Test configurations
GPT-5.4 Nano
gpt-5.4-nano-xhigh
GLM 5.2
glm-5.2

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensGPT-5.4 NanoGLM 5.2
Uncached input$0.20$0.62
Output$1.25$2.42
Cache read$0.02$0.14
Cache writeUnavailableUnavailable

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

GPT-5.4 Nano$0.5125
GLM 5.2$1.225

GPT-5.4 Nano costs $0.7125 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationGPT-5.4 NanoGLM 5.2
Catalog statusListedListed
Catalog model IDopenai/gpt-5.4-nanoz-ai/glm-5.2
ProviderOpenAIZ.ai
Context window400,000 tokens1,048,576 tokens
Max output128,000 tokens943,718 tokens
Input modalitiesFile, Image, TextText
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateMar 17, 2026Jun 16, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

GPT-5.4 Nano

Listed in the public Router catalog.

gpt-5.4-nano

GLM 5.2

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology