AI Models · Tutorial 04
Qwen, MiniMax, and GLM for Cost-Efficient AI Work
Choose a cheaper model by the cost of work you can accept. Compare Qwen, MiniMax, and GLM with dated API rates and a repeatable task trial.

0 of 1 complete
Reference guide · Read when needed · View the route
Last checked and updated: November 26, 2026. Official pricing and plan documentation reviewed; the exercises below are proposed practice, not reported model benchmarks.
The cheapest model is an expensive choice if you spend the afternoon fixing its output. For Qwen, MiniMax, and GLM, the useful comparison is what you pay to finish a task you can actually accept.
This lesson turns the candidates from L03’s Chinese model guide into a small cost trial. You will leave with a comparison sheet and a default for one workload. The L05 decision framework then helps you choose where to run it.
The cost gap: count tokens, not messages
“50 messages a day” is not enough information to estimate an API bill. A request to rewrite a paragraph and an agent session that repeatedly reads files are different workloads, even if both start with one message.
For a simple uncached text request:
API cost = (input tokens × input rate + output tokens × output rate) / 1,000,000
Use rates in dollars per million tokens. Add separately billed tools and any cache charges; sum every billed request, including retries. Use the provider’s billed usage categories so cached input or reasoning tokens are not counted twice.
A dated price snapshot
These are selected comparison candidates, not a ranking or a claim that every model is available in your app. Rates are USD per million tokens, checked November 26, 2026. They cover ordinary uncached API input and output under the conditions shown.
| Exact model ID | Input | Output | Billing conditions and official source |
|---|---|---|---|
qwen3.7-plus-2026-05-26 | $0.40 | $1.60 | Singapore / International, input at most 256K tokens; Alibaba Cloud pricing |
MiniMax-M3.1-Flash | $0.15 | $0.60 | Published text API rates; MiniMax pricing |
MiniMax-M3 | $0.30 | $1.20 | Standard service, input at most 512K tokens, displayed discounted rates; MiniMax pricing |
GLM-5.3-Flash | $0.15 | $0.50 | Published text API rates; Z.AI pricing |
GLM-5.3 | $1.40 | $4.40 | Published text API rates; Z.AI pricing |
The conditions matter. Alibaba lists higher rates for the selected Qwen model above 256K input tokens. MiniMax lists a higher M3 tier above 512K and a separately priced Priority service. Z.AI lists web search as an additional charge. Recheck the linked row before budgeting; these figures exclude taxes, tool fees and subscription charges.
Work one calculation before choosing
Hypothetical example: a request uses 20,000 uncached input tokens and 2,000 output tokens. At the selected Qwen rates:
(20,000 × $0.40 + 2,000 × $1.60) / 1,000,000 = $0.0112
That is 1.12 cents for this invented request. Three attempts with identical usage would cost $0.0336. Real retries can cost more if the conversation grows, so use each attempt’s actual usage when measuring.
Cost and capability are separate measurements
A price list tells you what tokens cost. It does not tell you whether a model will preserve a source fact, pass your tests, or follow a tool instruction. I would start with the least expensive candidate that fits the input and tools, then make it earn the job on a task with a clear finish line.
Set the finish line before reading any output. For a documentation edit, require every supplied fact to survive and every command to remain unchanged. For a refactor, require the existing behavior checks to pass and the diff to stay within the requested files. For a UI task, check the actual interaction and narrow-screen layout, not just the screenshot.
Choose among Qwen, MiniMax, and GLM
Qwen: record the exact version and region
“Qwen Plus” is too vague for a reproducible cost comparison. Alibaba’s table distinguishes dated model IDs, deployment regions, input-length tiers and, for some entries, thinking modes. The dated Plus row above gives you a specific starting point. Record the ID your endpoint actually accepts and the region used for billing. Do not substitute a different alias and assume its price is identical.
MiniMax: compare Flash and M3 on the same task
MiniMax’s table offers a concrete question: does the higher-priced M3 candidate save enough rework to justify the difference from M3.1 Flash? Try the same bounded task on both if your harness supports them. The price gap is documented; a quality or speed advantage on your work is something you still need to measure. Check supported input types separately before sending images or video.
GLM: separate API pricing from the Coding Plan
Z.AI publishes token rates for its API and a separate GLM Coding Plan. The plan documentation describes both five-hour and weekly usage limits, with model-dependent credit consumption. A subscription allowance is not an unlimited API budget, and its model list need not match the API price table. Write down which access route you are testing before comparing costs.
Decision table
| Workload | Useful first trial | What earns the default |
|---|---|---|
| Summaries or extraction from supplied text | A low-rate candidate available in your harness | Preserves required facts and returns the requested structure |
| Small code or documentation edits | Two candidates on the same starting files | Correct diff, passing checks and little repair work |
| UI components | Same brief, assets and acceptance checks | Working interactions, readable layout and acceptable review time |
| Long agent sessions | A bounded part of the workflow first | Finishes within your request, time and spend limits |
| Tasks your current model repeatedly fails | A stronger candidate on the saved failure | Fixes the specific failure without introducing another |
For more candidates, return to L03. For the harness itself, see Hermes L01.
Run the same task three ways
The exercise
Pick one task from this week: a small refactor, a docstring pass, a UI component, or a summary of supplied notes. Use three candidates you can actually access. Keep the prompt, source files, tools and acceptance checks the same, and start each run in a fresh session or isolated copy of the files.
If you need a starter task, use this fictional practice brief:
Rewrite these notes as a release update of at most 80 words.
Preserve every fact. Do not invent a release date or a cause.
Notes:
- CSV export now keeps column order.
- The fix applies to newly created exports.
- Previously downloaded files do not change.
- The export button label remains "Download CSV".
The result must retain all four facts, keep the button label exact, stay within 80 words, and add no date or explanation of the bug’s cause. Fluent prose alone does not pass.
Before running, choose a time and spend ceiling and allow at most one repair attempt per candidate. Save each first response before asking for a repair. Record:
Model ID / provider / access route / date:
Prompt and input files:
Thinking mode and tools enabled:
Acceptance checks:
First attempt: pass or fail, with the failed check:
Repair attempt and final verdict: accept / reject:
Billed input, output, cache usage and tool fees:
Total API spend across attempts, or unavailable:
Elapsed seconds / human review minutes:
For a subscription trial, record allowance consumption and review time rather than inventing a per-request dollar bill. If the app hides usage, mark it unavailable. You can still compare quality; you cannot claim measured API savings.
One run can eliminate a bad fit, but it is a weak basis for a daily default. Repeat with a few representative tasks, including one that previously failed. Choose the candidate that clears your quality bar with the lowest acceptable combination of spend, delay and repair work. All three may fail; that is a useful reason to revise the task or try another candidate.
Routing cheap models in production
Use the trial to define an escalation rule. For example: start a bounded documentation edit on the chosen inexpensive model; if it still drops a required fact after one repair, stop and pass the original input plus the failed check to another model. Include both models’ charges in the task total.
An authentication error or unavailable tool is an access problem to fix before judging model quality. A repeated failure against a clear acceptance check is better evidence for changing models. Hermes L06 covers routing and cost control; verify your installed harness’s configuration before automating the rule.
Keep the comparison sheet. Re-run the saved tasks when the model version, pricing or workload changes. A default should be easy to replace when the evidence improves.