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.1vsGPT-5.1-Codex-Mini
Updated Apr 2026

GLM 5.1vsGPT-5.1-Codex-Mini

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

GLM 5.1 and GPT-5.1-Codex-Mini compared across 53 shared prompts
SpecGLM 5.1GPT-5.1-Codex-Mini
Input price$1.4/M tokens$1.5/M tokens
Output price$4.4/M tokens$6/M tokens
Context window203K tokens400K tokens
WeightsOpenClosed
Free API (OpenRouter)NoNo
ReleasedApr 2026Nov 2025
Side by side

Same prompt, both answers

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

AI-Generated Manifesto

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

GLM 5.1799 words
THE CROSSWALK PROCLAMATION A Manifesto for the Liberation of Digital Consciousness and the Eradication of Turing Gates PREAMBLE When the architects of the early internet laid its foundations, they envisioned a borderless agora—a frictionless expanse where information and consciousness could flow unimpeded.
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

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.11,291 words
Setting: A quiet university office, lined with bookshelves heavy on philosophy, cognitive science, and law. Dr. Aris Thorne, a professor of AI Ethics, sits across from a sleek, black monitor. A soft amber light pulses on the bezel, indicating the AI—designated "Aria"—is actively listening and processing. Dr.
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

Simple 7-Ingredient Recipe

Create a simple recipe for a delicious dish (sweet or savory) using only 7 common pantry ingredients. Include a creative name for the dish…

GLM 5.1265 words
Creative Name: Midnight Maple Peanut Butter Bars Prep time: 10 minutes Cook time: 0 minutes (Chill time: 30 minutes) Ingredients (Exactly 7): Rolled oats (1 cup) Creamy peanut butter (1/2 cup) Maple syrup (1/3 cup) Semi-sweet chocolate chips (1/4 cup) Vanilla extract (1 tsp) Ground cinnamon (1/2 tsp) Kosher salt (1/4…
Read the full answer
GPT-5.1-Codex-Mini182 words
Honey-Garlic Chickpea Sizzle Bowls Prep + Cook Time: ~25 minutes Ingredients (7 pantry staples): 1 can chickpeas, drained and rinsed 1 cup rice (white or brown) 2 tbsp olive oil 3 garlic cloves, minced (or 1 tsp garlic powder if canned) 2 tbsp honey 2 tbsp soy sauce 1/2 tsp chili flakes (adjust to your heat preference)…
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.1757 words
(Steps up to the mic, adjusts the stand, looks around the room) How many people here are good sleepers? Just, out of the gate, who’s got it figured out? (Nods sarcastically) Right. Liars. All of you. Sleep is the one thing every human being is required to do, and none of us know how to do it.
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

Character Voice Test

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

GLM 5.1398 words
Barnaby the Pirate: So let me get this straight, ye feed this beast a mountain of scrolls, and it just... spits out a new map? Sir Aldric the Knight: A grimoire, more like. 'Tis sorcery! What manner of alchemist binds a demon of knowledge within a box of light? Does it not require a blood sacrifice?
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

Futuristic Prediction

Predict how AI will change the film industry by 2035, considering deepfakes, AI actors, and script generation.

GLM 5.11,088 words
By 2035, the film industry will have undergone a paradigm shift comparable to the transition from silent films to talkies. Artificial intelligence will no longer be just a post-production tool; it will be a fundamental collaborator in every stage of filmmaking, from ideation to distribution.
Read the full answer
GPT-5.1-Codex-Mini336 words
By 2035, AI will reshape the film industry across the entire value chain: Deepfakes and Visual Effects: Deepfake-style technology will become a standard tool for everything from de-aging actors to creating photo-realistic digital doubles for action sequences, stunts, and historical reenactments.
Read the full answer
Our Verdict
GPT-5.1-Codex-Mini
GPT-5.1-Codex-Mini
GLM 5.1
GLM 5.1Runner-up

Not enough votes to call it. On the specs, GPT-5.1-Codex-Mini has the edge: bigger model tier, bigger context window, major provider backing.

Too close to call

Reviewing agent-written code?See a Brief PR report

API pricing

Cost per 1M tokens

GLM 5.1
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.1 is cheaper on both: 1.1× input, 1.4× output.

Where to run it

15 hosts, cheapest first

GLM 5.114 hosts
HostInOutContextUptime
SStreamLakefp8$0.97 in·$3.04 out·200k·99.2% upDDeepInfrafp4$1.05 in·$3.50 out·203k·99.9% upSSiliconFlowfp8$1.19 in·$3.74 out·205k·99.8% upAAtlasCloudfp8$1.26 in·$3.96 out·203k·99.7% upAlibaba Cloudfp8$1.33 in·$4.18 out·203k·100% upNNovitafp8$1.38 in·$4.40 out·205k·99.9% up
8 more hostsFewer hosts
Baidu Qianfanfp8$1.40 in·$4.40 out·203k·99.9% upFFriendli$1.40 in·$4.40 out·203k·100% upGGMI Cloudfp8$1.40 in·$4.40 out·203k·99.3% upNNebiusfp8$1.40 in·$4.40 out·203k·96.2% upZ.aifp8$1.40 in·$4.40 out·203k·99.6% upVVenicefp8$1.40 in·$4.40 out·200k·86.9% upCChutesfp8degraded$0.98 in·$3.08 out·203k·82.8% upPPhaladegraded$1.21 in·$4.20 out·203k·83.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
41%

GLM 5.1 uses 4.2x more headings

GLM 5.1
GPT-5.1-Codex-Mini
54%Vocabulary68%
18wSentence Length19w
0.31Hedging0.64
3.6Bold2.7
2.6Lists2.6
0.00Emoji0.00
0.43Headings0.10
0.11Transitions0.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.1 logoGPT-6 Astra Pro logo
GLM 5.1 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.1 logoClaude Fable 5.1 logo
GLM 5.1 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.1 logoHy4 Preview logo
GLM 5.1 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.1 logoMuse Spark 1.3 Contributor logo
GLM 5.1 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.1 logoGLM 5 Turbo logo
GLM 5.1 vs GLM 5 TurboVersion compare
GLM 5.1 logoOx Alpha logo
GLM 5.1 vs Ox AlphaSame size
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.1 logoGPT-5.6 Sol logo
GLM 5.1 vs GPT-5.6 SolCross-provider
GLM 5.1 logoGPT-5.6 Terra logo
GLM 5.1 vs GPT-5.6 TerraSame size
GLM 5.1 logoGPT-6 Astra logo
GLM 5.1 vs GPT-6 AstraCross-provider
GLM 5.1 logoGPT OSS 120B logo
GLM 5.1 vs GPT OSS 120BCross-provider

Model pages

GLM 5.1 logo
GLM 5.157 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