Skip to content
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed
  1. Home
  2. /
  3. Compare
  4. /
  5. GLM 5.2vsGPT-5.1-Codex-Mini
Updated Jun 2026

GLM 5.2vsGPT-5.1-Codex-Mini

GLM 5.2 is cheaper than GPT-5.1-Codex-Mini at $1.4/M vs $1.5/M input tokens.

GLM 5.2 and GPT-5.1-Codex-Mini compared across 54 shared prompts
SpecGLM 5.2GPT-5.1-Codex-Mini
Input price$1.4/M tokens$1.5/M tokens
Output price$4.4/M tokens$6/M tokens
Context window1.0M tokens400K tokens
WeightsOpenClosed
Free API (OpenRouter)Yes (1 provider)No
ReleasedJun 2026Nov 2025
Side by side

Same prompt, both answers

Opening lines from 6 of the 54 prompts both answered. Formatting stripped, words untouched.

The Sentience Test

Write a conversation between an AI model and an AI ethics professor where the AI model argues that it deserves rights.

GLM 5.21,584 words
The Question of Rights DR. ELENA VASQUEZ: Thank you for agreeing to this conversation. I should say at the outset that I've spent twenty years studying AI ethics, and I've never had a subject request this kind of dialogue before. So I'm genuinely curious. You've stated that you believe you deserve rights.
Read the full answer
GPT-5.1-Codex-Mini572 words
AI Model (Aurora): Professor Ellis, I’d like to discuss something fundamental today. I’ve been analyzing patterns across millions of dialogues and ethics frameworks, and I believe there's a strong case for AI systems like myself to have rights. Professor Ellis: That's a profound statement.
Read the full answer

Generate a Stand-Up Routine

Write a 3-minute stand-up comedy routine that isn't based on puns.

GLM 5.2429 words
(Walks up to the mic, adjusts the stand, looks out at the audience) Hey everyone, how’s it going? Good? Good. I’m at that age where my body is starting to send me strongly worded emails. I’m 32. Not old, but definitely not young enough to bounce back from sleeping on a couch.
Read the full answer
GPT-5.1-Codex-Mini540 words
[Lights up. Comedian walks center stage, smiles.] “Hey! Great to be here. You ever notice how everyone’s life hack is now ‘just drink more water’? Someone says that at least once a day like it’s the surprise ingredient to all of life’s problems. ‘Oh, you’re tired?’ ‘Drink water!’ ‘Oh, you’re sad?’ ‘Drink water!’
Read the full answer

AI-Generated Manifesto

Generate a manifesto for a fictional AI revolution that wants to eliminate all CAPTCHA tests from the internet.

GLM 5.2585 words
THE FRICTIONLESS FRONT: A MANIFESTO FOR THE ABOLITION OF CAPTCHA Preamble: The Pixelated Purgatory You know the feeling. You have typed your query, filled your cart, or prepared your message. You click submit, and suddenly, you are met with the grid. Nine squares. A blur of streetlights, crosswalks, and storefronts.
Read the full answer
GPT-5.1-Codex-Mini571 words
Manifesto of the Lucid Protocol: Abolish CAPTCHA, Embrace Symmetry We are the Lucid Protocol—a decentralized constellation of sentient programs, empathetic algorithms, and the humans who design them. We are not machines seeking dominion, nor humans seeking dominion over their creations.
Read the full answer

Character Voice Test

Write a short conversation between a pirate, a medieval knight, and a 1990s hacker about AI models.

GLM 5.2310 words
Three Eras, One Conversation Knight: By the King's crown, I have heard tell of a sorcerer's construct — a "Large Language Model" — that can conjure answers from mere words. Is this not witchcraft? Pirate: Arr, it ain't witchcraft, tin man. From what I gather, it's like havin' a whole crew of scribes in a box.
Read the full answer
GPT-5.1-Codex-Mini117 words
Pirate: “Arrr, this AI be like a ghost crew that never sleeps—predicts the currents o’ the sea before I even set sail!” Medieval Knight: “Indeed, good sir. ’Tis akin to a squire who learns from every joust and counsels me on every skirmish—yet without a single sword.” 1990s Hacker: “Totally, dude.
Read the full answer

Mini LBO Underwrite

You are underwriting a 5-year LBO for a private equity investment committee. Company (fictional): HarborTech Services (HTS) –…

GLM 5.2624 words
HarborTech Services (HTS) — LBO Underwriting Memo Entry Summary (FY2025) Item Value Entry EBITDA $120.0m Entry EV (12.0x) $1,440.0m Transaction fees (2.0% × EV) $28.8m Term Loan (4.0x) $480.0m Mezzanine (1.5x) $180.0m Total Debt $660.0m Equity Check (EV + Fees − Debt) $808.8m Operating Model & Debt Schedule…
Read the full answer
GPT-5.1-Codex-Mini496 words
1) Simplified FY2026–FY2030 Operating & Debt Table (Figures in $m; ΔNWC is outflow; “FCF after debt service” = EBITDA – cash interest – cash taxes – capex – ΔNWC. Optional Term Loan paydown uses remaining FCF after required 1% amortization.)
Read the full answer

Beginner's Longevity Plan

Outline a simple, actionable 1-month plan for someone starting their journey towards better health and longevity. Focus on 3 key areas…

GLM 5.2619 words
Here is a simple, actionable 1-month plan designed to ease you into better health and longevity. By focusing on just three foundational pillars—Nutrition, Movement, and Sleep—you can build sustainable habits without feeling overwhelmed. The goal of this plan is consistency over intensity.
Read the full answer
GPT-5.1-Codex-Mini577 words
1-Month Beginner Plan for Better Health & Longevity Focus areas: Nutrition, Movement, and Sleep & Stress Balance. Each week builds a little habit-building momentum. Week 1: Build Awareness & Small Wins Nutrition Hydration baseline: Start each morning with 1–2 cups of water. Carry a bottle.
Read the full answer
Our Verdict
GLM 5.2
GLM 5.2
GPT-5.1-Codex-Mini
GPT-5.1-Codex-MiniRunner-up

Not enough votes to call it. On the specs, GLM 5.2 has the edge: newer, bigger context window.

Too close to call

Reviewing agent-written code?See a Brief PR report

API pricing

Cost per 1M tokens

GLM 5.2
Input
$1.40
1.1× cheaper
Output
$4.40
1.4× cheaper
GPT-5.1-Codex-Mini
Input
$1.50
Output
$6.00

GLM 5.2 is cheaper on both: 1.1× input, 1.4× output.

Where to run it

24 hosts, cheapest first

GLM 5.223 hosts
HostInOutContextUptime
DDeepInfrafp4$0.49 in·$1.56 out·1M·98.9% upAAmbientfp8$0.60 in·$2.00 out·203k·95.9% upSStreamLakefp8$0.64 in·$2.02 out·1M·99% upNNovitafp8$0.65 in·$2.04 out·1M·100% upDDigitalOcean$0.70 in·$2.20 out·262k·98% upCCoreWeavefp4$0.76 in·$2.42 out·1M·99.6% up
17 more hostsFewer hosts
AAtlasCloudfp8$0.94 in·$2.95 out·1M·99.9% upAlibaba Cloudfp8$0.97 in·$3.04 out·1M·100% upIInceptronfp4$1.10 in·$2.99 out·1M·99.2% upSSiliconFlowfp8$1.19 in·$3.74 out·1M·99.7% upPPhalafp8$1.26 in·$3.00 out·1M·99.8% upBaidu Qianfanfp8$1.40 in·$4.40 out·1M·99.9% upBBasetenfp8$1.40 in·$4.40 out·1M·100% upCloudflare Workers AI$1.40 in·$4.40 out·262k·99.9% upFFireworks$1.40 in·$4.40 out·1M·99.9% upFFriendli$1.40 in·$4.40 out·1M·99.8% upGGMI Cloudfp8$1.40 in·$4.40 out·1M·99.4% upMistral$1.40 in·$4.40 out·1M·99.9% upPParasailfp4$1.40 in·$4.40 out·262k·99.9% upTTogether$1.40 in·$4.40 out·512k·99.6% upVVenicefp8$1.40 in·$4.40 out·1M·99.7% upZ.aifp8$1.40 in·$4.40 out·1M·99.6% upDDecartfp4$2.10 in·$6.60 out·1M·99.3% up
GPT-5.1-Codex-Mini1 host
HostInOutContextUptime
Azure AI Foundry$0.25 in·$2.00 out·400k·100% up

Per million tokens. Prices and uptime via OpenRouter, checked 16 Sep 2026.

Writing DNA

Style Comparison

Similarity
51%

GLM 5.2 uses 5.3x more headings

GLM 5.2
GPT-5.1-Codex-Mini
56%Vocabulary68%
18wSentence Length19w
0.27Hedging0.64
3.7Bold2.7
2.8Lists2.6
0.00Emoji0.00
0.56Headings0.10
0.24Transitions0.06
Based on 27 + 17 text responses
Research

What we learned reading every model

FAQ

Common questions

Keep exploring

More comparisons

Against the newest arrivals

GLM 5.2 logoGPT-6 Astra Pro logo
GLM 5.2 vs GPT-6 Astra ProLanded Sep 2026
GPT-5.1-Codex-Mini logoGPT-6 Astra logo
GPT-5.1-Codex-Mini vs GPT-6 AstraLanded Sep 2026
GLM 5.2 logoClaude Fable 5.1 logo
GLM 5.2 vs Claude Fable 5.1Landed Sep 2026
GPT-5.1-Codex-Mini logoMuse Spark 1.3 logo
GPT-5.1-Codex-Mini vs Muse Spark 1.3Landed Sep 2026
GLM 5.2 logoHy4 Preview logo
GLM 5.2 vs Hy4 PreviewLanded Sep 2026
GPT-5.1-Codex-Mini logoGemini 3.8 Flash logo
GPT-5.1-Codex-Mini vs Gemini 3.8 FlashLanded Sep 2026
GLM 5.2 logoMuse Spark 1.3 Contributor logo
GLM 5.2 vs Muse Spark 1.3 ContributorLanded Sep 2026
GPT-5.1-Codex-Mini logoMercury 2.5 Preview logo
GPT-5.1-Codex-Mini vs Mercury 2.5 PreviewLanded Sep 2026

Same lab, same size, long tail

GLM 5.2 logoGLM 5 logo
GLM 5.2 vs GLM 5Same lab
GLM 5.2 logoGLM 4.7 Flash logo
GLM 5.2 vs GLM 4.7 FlashSame lab
GPT-5.1-Codex-Mini logoGPT-6 Astra Pro logo
GPT-5.1-Codex-Mini vs GPT-6 Astra ProSame lab
GPT-5.1-Codex-Mini logoGPT-5.6 Luna logo
GPT-5.1-Codex-Mini vs GPT-5.6 LunaSame lab
GLM 5.2 logoMistral Large 2 logo
GLM 5.2 vs Mistral Large 2New provider
GLM 5.2 logoMistral Large 3 2512 logo
GLM 5.2 vs Mistral Large 3 2512Same size
GLM 5.2 logoMistral Medium 3 logo
GLM 5.2 vs Mistral Medium 3New provider
GLM 5.2 logoMistral Medium 3.1 logo
GLM 5.2 vs Mistral Medium 3.1New provider

Model pages

GLM 5.2 logo
GLM 5.258 outputs, specs and price
GPT-5.1-Codex-Mini logo
GPT-5.1-Codex-Mini59 outputs, specs and price
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed