Requesty
DeepInfra logo

glm-5.2

DeepInfra/Open weights/1 provider

GLM-5.2 is Z-AI's latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a **solid 1M-token context**.More

Which id to call

glm-5.2

Requesty routes this id across every provider serving glm-5.2, picking on price and health and failing over automatically. The id stays valid when a provider changes underneath it.

From /1M input

$0.54

$0.60 list

DeepInfra Inc.

Context

1M

128K output

Best first token

2.63s

DeepInfra Inc.

Price spread

1.3x

2 endpoints

Capabilities 4/8

VisionReasoningTool callingCachingWeb searchJSON schemaComputer useImage generation

156/s↑ 62/s

Week of Aug 17, latest, median of 9 providerslog axis

Median tokens per second once generation starts, measured on traffic routed through Requesty through Aug 20. Hover a week to read it.more

The axis is logarithmic, because the lines here are more than 12x apart and a linear axis would press most of them flat. Each gridline is a step in ratio rather than a fixed amount. The axis is set by the bulk of the weeks, not by the extremes, so 3 weekly points sit off the frame and are marked with a caret at the edge: hover one for its figure. Stretching the axis to reach them would flatten every line worth comparing. Each provider line is that provider's own median across every model it serves, which is the grain published per provider, so a provider line can cover weeks this model was not called in yet. The exact per-provider figures for this model are ranked below.

2 endpoints / 1 region

Providers serving glm-5.2

Provider prices, per 1M tokens. Pay as you go adds 5%, or 0% on your own keys.more

The two panes rank glm-5.2 as measured on Requesty traffic: by the provider that served it, and by the region the request came from, where the share is how much of that region's traffic this model carries. Whole-window figures, because that is the grain Requesty publishes per provider and per region.

By provider

highest first
Doubleword4676/s
sference148/s
Nebius AI124/s
TensorX Ltd.122/s
Fireworks AI83/s
DeepInfra Inc.70/s
Z.ai65/s
Inceptron AB53/s
Tencent52/s
Median tokens per second once generation starts. Bar length is the value, so the longest bar wins.more

Whole-window figures as published, not an average of weekly points. The axis stops at 183/s: one row runs past it and is notched there, because stretching the axis to the outlier flattens every other bar. The figure beside each bar is exact either way.

By traffic region

highest first
Asia Pacific149/s
Europe124/s
United States96/s
Median tokens per second once generation starts. Bar length is the value, so the longest bar wins.more

Whole-window figures as published, not an average of weekly points.

Providers serving glm-5.2, with pricing and measured performance. The best value in each column is highlighted.
RankCost 10wkPrivacy
1DeepInfra Inc.10% offGlobal1M$0.60$0.54$1.92$1.73$0.102.63s70.092.9%DeepInfra Inc.: Cost by week, across every model it serveszdr
2DeepInfra Inc.10% offGlobal262K$0.75$0.68$2.40$2.16$0.132.63s70.092.9%DeepInfra Inc.: Cost by week, across every model it serveszdr

A column is blank where no qualifying sample exists, and every row links to that provider's endpoint page.

model=

Which id to call

One base url, https://router.requesty.ai/v1, and one key for every id here.

glm-5.2

Requesty routes this id across every provider serving glm-5.2, picking on price and health and failing over automatically. The id stays valid when a provider changes underneath it.

OpenAI compatible

Call it in three lines

Change the base url, use your Requesty key, set the model to any id on the left. Existing OpenAI SDK code needs no other edit.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="glm-5.2", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Artificial Analysis

Benchmark scores

Coding Indexcoding
68.8%

Artificial Analysis Coding Index: a composite of coding evaluations including LiveCodeBench, SciCode and Terminal-Bench.

GPQA Diamondreasoning
89.5%

Graduate-level physics, chemistry & biology questions designed to resist Googling.

Intelligence Indexreasoning
52.6%

Artificial Analysis Intelligence Index: a composite of multiple evaluations measuring overall model capability.

Scores from artificialanalysis.ai. They measure the model, not the provider, so they are the same on every endpoint above.

1

More from DeepInfra

Reference

glm-5.2 questions

Which providers serve glm-5.2?

glm-5.2 is available from 1 provider through Requesty: DeepInfra Inc.. All endpoints share one OpenAI-compatible API and one key, and Requesty fails over between them automatically.

How much does glm-5.2 cost?

Pricing starts at $0.54 per million input tokens and $1.73 per million output tokens on DeepInfra Inc., the cheapest endpoint. Prices vary by provider and region; the table above shows every endpoint. Those are the upstream provider rates: pay as you go adds 5% on top, or 0% if you bring your own provider keys.

Is glm-5.2 open weights?

Yes. glm-5.2 is an open-weights model from DeepInfra, which is why multiple inference providers can host it. Provider choice affects price, latency, and data-privacy terms, all compared above.

What is the context window of glm-5.2?

glm-5.2 supports up to 1M tokens of context, with up to 128K output tokens per response. Some providers expose a smaller window; check the per-endpoint context column above.

Which provider is fastest for glm-5.2?

In recent production traffic through Requesty, sference had the lowest median time to first token (75ms) for glm-5.2. Latency shifts over time, so Requesty's latency-based routing picks the fastest healthy provider per request automatically.

How do I use glm-5.2 with the OpenAI SDK?

Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "glm-5.2" or any endpoint id from the table above. The quickstart section shows Python, JavaScript and cURL snippets.

Should I call glm-5.2 by its managed id or a provider id?

Use the managed id, "glm-5.2". Requesty picks which of the 1 provider serves each request based on price and health, and fails over when one degrades, so the id keeps working while the routing changes underneath it. There is also an EU-only id, "glm-5.2@eu", which routes the same way but only through EU-hosted providers. Send a provider id like "deepinfra/glm-5.2:flex" only when you need one specific deployment and want no failover.

Route glm-5.2 through one endpoint

One key for 1 provider on this model and 600+ others. No markup on provider prices, automatic failover, caching built in.

Benchmark rankings