GLM 5.2 vs Claude Sonnet 5
GLM 5.2 costs less on both: $0.24 in and $0.60 out per million tokens, against $1.20 in and $3.00 out for Claude Sonnet 5. Both on one key at UplinkSwitch, each next to its developer's list price.
Prices · per million tokens, USD
Get a key| Tokens | GLM 5.2glm-5.2 | Claude Sonnet 5claude-sonnet-5 |
|---|---|---|
| Input | $0.24Z.ai lists $0.60 · 60% under | $1.20Anthropic lists $2.00 · 40% under |
| Cached input | $0.068Z.ai lists $0.15 · 54% under | $0.12Anthropic lists $0.20 · 40% under |
| Output | $0.60Z.ai lists $2.00 · 70% under | $3.00Anthropic lists $10.00 · 70% under |
| Context window | 1,000,000 tokens | 1,000,000 tokens |
| Max output | 131,072 tokens | 128,000 tokens |
| Input | text | text, image |
| Released | 2026-06-16 | 2026-06-30 |
| Anthropic lifecycle | — | active, retires no sooner than 2027-06-30 |
| Formats | OpenAI SDK | Anthropic SDK, OpenAI SDK |
| Developer | Z.ai | Anthropic |
| Daily check | Steady since Oct 23 | Steady since Nov 14 |
List price: each developer's published rate, read October 2026. A model with no cached rate bills cached tokens at its input rate. Live from GET https://api.uplinkswitch.com/v1/catalog. Lifecycle from Anthropic's model deprecations, read 2026-10-19.
What the same work costs · USD, here and at list
| Work | GLM 5.2 | Claude Sonnet 5 |
|---|---|---|
| 1,000 chat requests | $0.78list $2.20 | $3.90list $9.00 |
| 100 long documents | $1.32list $3.40 | $6.60list $12.00 |
| A month of both, daily | $63.00list $168.00 | $315.00list $630.00 |
A chat request is 2,000 input and 500 output tokens; a long document is 50,000 in and 2,000 out; the month is 1,000 chats and 100 documents a day for 30 days, uncached. Over that month GLM 5.2 costs $252.00 less here. Against list, GLM 5.2 saves $105.00 and Claude Sonnet 5 saves $315.00 over that month, and each top-up locks both prices for 30 days.
Try the same prompt on both · streamed live, billed to your key
Stays in this browser only. Get a key in the console.
glm-5.2
claude-sonnet-5
Newest in the line
- Claude Sonnet 5.5 is the newest in Claude Sonnet 5's line: $1.164 in and $2.91 out per million tokens here, against $2.00 and $10.00 at list.
Same key, same URL
One base URL and one key serve both models. The GLM 5.2 API and the Claude Sonnet 5 API answer at the same base URL in the OpenAI format, so a client or SDK setup moves between them by changing the model id. The request below calls GLM 5.2; put claude-sonnet-5 in the model field to call Claude Sonnet 5 instead.
shell
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"Hello"}]}'Model pages: GLM 5.2 API, Claude Sonnet 5 API. Pricing by family: GLM, Claude. More comparisons: GLM 5.2 vs DeepSeek V4 Pro 0423, GLM 5.2 vs Claude Fable 5, GLM 5.2 vs Claude Opus 4.8, GPT-5.5 vs GLM 5.2.
Questions
GLM 5.2 costs less on both: $0.24 in and $0.60 out per million tokens, against $1.20 in and $3.00 out for Claude Sonnet 5.
Yes. Both answer in the OpenAI SDK format at the same base URL with the same key. Change the model id from glm-5.2 to claude-sonnet-5 and nothing else.
No. Prepaid credit from $10, with no subscription or monthly fee. Each top-up locks your prices for 30 days.
Better depends on the job; this page compares what the catalog can measure. GLM 5.2 costs less on both: $0.24 in and $0.60 out per million tokens, against $1.20 in and $3.00 out for Claude Sonnet 5. Both take 1,000,000 tokens of context. Claude Sonnet 5 is the newer release. Both run on the same key, so the fair test is your own prompt sent to each model id.
No. Anthropic made Sonnet 5's launch price, $2.00 input and $10.00 output per million tokens, its standard price; the rise to $3 and $15 planned for 2026-09-01 will not happen (Anthropic pricing, read 2026-10-19). Here Sonnet 5 is $1.20 and $3.00.