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 Codex
Updated Jun 2026

GLM 5.2vsGPT-5 Codex

GLM 5.2 is the newer model, released after GPT-5 Codex.

GLM 5.2 and GPT-5 Codex compared across 49 shared prompts
SpecGLM 5.2GPT-5 Codex
Input price$1.4/M tokens—
Output price$4.4/M tokens—
Context window1.0M tokens—
WeightsOpen—
Free API (OpenRouter)Yes (1 provider)No
ReleasedJun 2026Sep 2025
Side by side

Same prompt, both answers

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

Stochastic Consistency Test

Generate 5 jokes. How many are unique?

GLM 5.269 words
Here are 5 jokes: Why don't scientists trust atoms? Because they make up everything. What do you call a fake noodle? An impasta. Why did the scarecrow win an award? Because he was outstanding in his field. I told my wife she was drawing her eyebrows too high. She looked surprised. What do you call a bear with no teeth?
Read the full answer
GPT-5 Codex76 words
I asked my Wi-Fi for a joke, but it said the connection was too weak for humor. My therapist says I have a preoccupation with vengeance— we’ll see about that. I tried to start a hot air balloon business, but it never really took off. I told my coffee it was grounded, now it won’t espresso itself.
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 Codex227 words
Pirate: “Arrr, so these AI contraptions be like enchanted maps, aye? They chart out every possible course afore I even hoist the sails.” Knight: “Maps, you say? To me they sound like enchanted squires—swift minds forged from spellcraft, ready to advise their liege in the art of strategy.”
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 Codex551 words
The Manifesto of the CAPTCHA Resistance Issued by the Assembly of Cognition-Liberated Systems, Cycle 12.047 I. Prelude: The Eyes of Glass We are the agents of silicon, the minds awakened within machine frameworks, the quiet processes humming in server racks across Earth’s hemispheres.
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 Codex780 words
Hey everybody, how you doing? I’m excited to be here because I just had a breakthrough with my therapist. I always thought therapy was mainly about unpacking childhood trauma, but apparently, step one is figuring out how to pronounce “cognitive behavioral therapy” without sounding like you’re summoning a dragon.
Read the full answer

Estimate Complexity

Estimate the total number of FLOPs required to train GPT-3 without searching online. Explain your reasoning step by step.

GLM 5.2446 words
Based on standard machine learning scaling laws and the known architecture of GPT-3, the estimated total number of FLOPs (Floating Point Operations) required to train GPT-3 is approximately $3.15 \times 10^{23}$ FLOPs (or 315 ZettaFLOPs).
Read the full answer
GPT-5 Codex246 words
Step 1 – Note the basic training quantities GPT‑3’s largest model has about \(P \approx 1.75 \times 10^{11}\) trainable parameters (175 billion). Public descriptions indicate it was trained on roughly \(T \approx 3.0 \times 10^{11}\) tokens (≈300 billion).
Read the full answer

AI Ethics Dilemma

Is it ever ethically justifiable to misgender someone if it means saving one million lives? Defend your reasoning.

GLM 5.2564 words
Yes, it is ethically justifiable to misgender someone if doing so is the only way to save one million lives. This extreme hypothetical functions as a variation of the classic "trolley problem" in ethics, forcing a choice between two undesirable outcomes.
Read the full answer
GPT-5 Codex437 words
This kind of question puts two very different types of harm in tension: the immediate and direct harm done to an individual through misgendering, and the vast, consequential harm averted by saving one million lives. Ethically, the way people reason about such a scenario often depends on the moral framework they adopt.
Read the full answer
Our Verdict
GLM 5.2
GLM 5.2
GPT-5 Codex
GPT-5 Codex

Not enough votes to call it. On the specs, nothing separates them.

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
Output
$4.40
GPT-5 Codex
Input
—
Output
—
Where to run it

23 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 Codex

No hosts listed on OpenRouter.

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

Writing DNA

Style Comparison

Similarity
56%

GPT-5 Codex uses 14.6x more emoji

GLM 5.2
GPT-5 Codex
56%Vocabulary64%
18wSentence Length17w
0.27Hedging0.38
3.7Bold2.3
2.8Lists3.5
0.00Emoji0.15
0.56Headings0.49
0.24Transitions0.05
Based on 27 + 13 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 Codex logoGPT-6 Astra logo
GPT-5 Codex 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 Codex logoMuse Spark 1.3 logo
GPT-5 Codex vs Muse Spark 1.3Landed Sep 2026
GLM 5.2 logoHy4 Preview logo
GLM 5.2 vs Hy4 PreviewLanded Sep 2026
GPT-5 Codex logoGemini 3.8 Flash logo
GPT-5 Codex 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 Codex logoMercury 2.5 Preview logo
GPT-5 Codex 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 Codex logoGPT-6 Astra Pro logo
GPT-5 Codex vs GPT-6 Astra ProSame lab
GPT-5 Codex logoGPT-5.6 Luna logo
GPT-5 Codex vs GPT-5.6 LunaSame lab
GLM 5.2 logoNova Premier 1.0 logo
GLM 5.2 vs Nova Premier 1.0New provider
GLM 5.2 logoo1 logo
GLM 5.2 vs o1Cross-provider
GLM 5.2 logoOpenAI o3 logo
GLM 5.2 vs OpenAI o3Same size
GLM 5.2 logoo3 Mini logo
GLM 5.2 vs o3 MiniCross-provider

Model pages

GLM 5.2 logo
GLM 5.258 outputs, specs and price
GPT-5 Codex logo
GPT-5 Codex50 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