2026 model costs: DeepSeek-V3 vs General Language Model (GLM-4.5), $500 hard cap, fallback

Premium Deals
Mighty Travels Premium
Travel in style,
save up to 90%

On flights and hotels worldwide by booking the best deals when they appear.

See Deals

Sponsored

TakeawayDetail
Split the $500 prepaid cap into a $450 primary budget and a $50 reserve.Allocate $450 to the primary model alias and hold $50 in reserve so fallback traffic has a pre-funded path under the hard cap.
Choose DeepSeek-V3 or GLM-4.5 by the per-1M-token rate verified at request time.The gateway must re-pull each provider's quoted per-1M-token rate on a schedule; benchmark deltas do not determine the choice under the $500 cap.
Pre-wire fallback to the other model alias before any deny event.When the primary alias hits its $450 budget limit or a deny event occurs, the gateway routes to the alternate alias without adding fallback logic after denial.
Load both DeepSeek-V3 and GLM-4.5 as OpenAI-compatible aliases behind one gateway.DeepSeek supports an OpenAI-compatible API at api.deepseek.com, allowing both model aliases to be managed through a single gateway for rate verification and routing.

Under a $500 prepaid hard cap, the right choice between DeepSeek-V3 and GLM-4.5 is the alias whose per-1M-token rate your gateway verifies at request time.

This answer changes when re-pulled provider rates shift, so fallback must be pre-wired to the other alias before any deny event.

2026 model costs

One Endpoint, Two Aliases, One Wallet

The alias architecture is to treat DeepSeek-V3 and GLM-4.5 as aliases behind one OpenAI-compatible gateway, not as separate client integrations: the application sends a stable model alias to one endpoint; the gateway resolves it to a provider, checks the shared wallet before forwarding, and uses a fallback alias configured in advance.

Apply the prepaid-cap rule at the routing layer, so spend admission happens before an upstream request rather than after a deny event.

For the DeepSeek alias, the DeepSeek API Docs quickstart confirms OpenAI compatibility: keep existing OpenAI client libraries and change the base URL to api.deepseek.com. Put that provider setting and its credential in the gateway, then map your stable alias to the provider’s accepted model identifier. Before enabling traffic, run a configuration check that confirms authentication, alias resolution, and an OpenAI-shaped response; the application should not need a DeepSeek-specific branch.

For GLM, use a third-party provider configuration rather than assuming a direct endpoint. The GitHub project lonr-6/cc-desktop-switch documents switchable third-party Anthropic-compatible providers including Zhipu GLM and DeepSeek. Treat that as evidence for the configuration pattern, then confirm the selected provider exposes GLM-4.5, accepts your credential, and returns the response features your client uses; if its surface is Anthropic-compatible only, place the protocol adapter in the gateway.

Register each provider as a gateway alias with its own sub-cap. For every request, resolve the alias, read the verified per-1M-token rate supplied by the scheduled rate check, estimate the request’s maximum charge from the prompt and configured output limit, and compare that charge with both the alias allowance and the wallet balance. Admit the request only when both checks pass. If the rate is unavailable or the estimate exceeds either allowance, stop before the upstream call; do not let the application discover the cap after spending has occurred.

Pre-wire the other alias as the fallback in the gateway configuration, with its credential and sub-cap already present. A primary denial may select that alias only if the alternate passes the same pre-request wallet check; otherwise return a local error. Test this path in staging by forcing a primary denial and verifying that no primary request was forwarded, the alternate was checked independently, and the client received a normalized response. Keep retries bounded so a fallback cannot multiply charges, and do not wait for a live deny event to add the route.

2026 model costs, photo 2

Pull the Rate List Before You Route

Treat the rate list as request-time configuration, not as a number copied into code. For DeepSeek-V3, verify against DeepSeek’s official API pricing source; for GLM-4.5, verify against Z.AI’s official pricing source. Match the exact model version, then record the input rate, output rate, and quoted-at timestamp. Retain the source URL, currency, and billing unit so the pull can be reproduced. This section asserts no stable 2026 per-1M-token price for either model; the verification procedure is the control.

Third-party comparison pages may quote rates for GLM versions other than GLM-4.5, and those figures do not transfer to a GLM-4.5 decision. Treat any third-party quote as a prompt to check for discrepancies, then confirm the applicable rate for the exact GLM-4.5 version on the provider's own published pricing source — Zhipu's, per the provider configuration pattern documented in the cc-desktop-switch project — before updating the config.

AliasInput rate / 1MOutput rate / 1MQuoted atSource, version, unitStatus
DeepSeek-V3fetched valuefetched valueretrieval timestampofficial source; exact matchcurrent or stale
GLM-4.5fetched valuefetched valueretrieval timestampofficial source; exact matchcurrent or stale

Write the fetched values into a config table the gateway reads at request time. Set quoted-at to the successful retrieval time, preserving any provider publication date separately. Keep input and output rates separate; if the provider does not publish both, mark the row incomplete rather than deriving a split. Confirm the currency and per-1M-token unit, and mark the row current only after the exact alias version and source match. A failed parse or version mismatch leaves the previous row intact but flagged stale.

Make freshness an explicit gate. On each scheduled pull, compare the new row with the active row and log changes in rate, version, or unit. If quoted-at falls outside your configured freshness window, or the fetch fails, the gateway must not present the cached value as current. Without that status check, a stale cached rate silently invalidates every worst-case computation because token estimates are multiplied by an obsolete price.

Before routing, run a preflight check that both aliases have complete input and output fields, a valid quoted-at timestamp, and a current status. Reject the rate row if any field is missing or the source cannot be tied to the exact alias version. Re-pull on the defined schedule and after any provider-version change you detect; the goal is a reproducible rate snapshot at request time, not a permanent price assumption.

Pull the Rate List Before You Route — 2026 model costs

Options Compared: Primary vs Fallback

The routing table is the artifact that turns two aliases into an operating decision. It has one row per alias and one named winner per workload, plus the exact condition that flips the winner. Build it from the rate pull you already timestamped, not from a benchmark article or a cached pricing screenshot. DeepSeek documents an OpenAI-compatible API at api.deepseek.com, so the base URL style for that alias is a swapped base URL with the same client shape; the GLM-4.5 alias uses the Z.AI base URL style from that same verified source pull. If either URL style cannot be confirmed against the provider's own docs at pull time, the row stays unroutable rather than inheriting a neighbor's format.

Alias Base URL style Worst-case cost formula Sub-cap Deny threshold Fallback target
DeepSeek-V3 OpenAI-compatible base URL swap to api.deepseek.com (per DeepSeek API Docs) max_tokens × verified DeepSeek output rate per 1M tokens, from the current pull Primary slot when its verified output rate is lower; otherwise reserve slot Computed worst case exceeds the alias's remaining committed allowance at request time GLM-4.5 alias, pre-wired
GLM-4.5 OpenAI-compatible base URL style from Z.AI's verified pricing/docs pull max_tokens × verified GLM-4.5 output rate per 1M tokens, from the current pull Primary slot when its verified output rate is lower; otherwise reserve slot Computed worst case exceeds the alias's remaining committed allowance at request time DeepSeek-V3 alias, pre-wired

The winner rule is narrow and deliberately mechanical: for high-volume generation, the alias with the cheaper verified output rate takes the primary slot, and the other alias is the fallback. A rate is "verified" only if it came from the scheduled pull for the exact model version, with a timestamp your gateway can read during the request. If the two verified rates tie, keep the current primary rather than churning the table on a tie; record the tie so the next pull can break it with a fresh observation.

Benchmark rank is the explicit loser here. Any third-party benchmark comparison may show GLM-4.5 ahead of DeepSeek-V3 on aggregate scores, but no source grounded in this piece establishes that ranking — and a benchmark lead would not override a verified cost gap under a prepaid cap anyway.

Quality evidence belongs in a separate model-selection note; the routing table answers a different question, which is whether the worst-case output charge fits the allowance before the request is sent. A higher aggregate score does not lower max_tokens, and it does not change the per-1M output rate your gateway just read.

Flip conditions must be written into the table before traffic starts. The primary flips when the next scheduled pull shows the other alias with the lower verified output rate for the same workload class, or when the current primary's computed worst case crosses its deny threshold. The fallback is already named in the last column, so a deny event selects a pre-wired target instead of triggering a search for somewhere else to send the request. If a pull fails validation, hold the last verified table rather than promoting an alias on an unreadable rate.

Keep the table small enough to audit line by line. Each row should reconcile to the same sub-cap arithmetic used elsewhere in this piece, and each deny threshold should be computable from fields the gateway already has: max_tokens, the pulled output rate, and the alias's remaining allowance. When you change a rate, change the winner cell and the fallback cell in the same edit; a table with a stale winner and a fresh rate is worse than no table, because it looks authoritative while routing on a premise the current pull has already invalidated.

Options Compared: Primary vs Fallback — 2026 model costs

The $500 Split: Numbers That Reconcile

The cap reconciles as four fixed numbers: a $500 wallet, a $50 reserve, a $450 committed ceiling, and a $405 deny threshold. The reserve is not part of alias spend; the DeepSeek and GLM alias sub-caps must sum to no more than $450.

LineAmountRule
Total prepaid wallet$500Hard funding limit
Reserve$50Not spendable by aliases
Committed alias budget$450Sum of alias sub-caps ≤ this
Deny threshold$40590% of committed; new requests denied
Committed headroom at deny$45$450 − $405

The $405 kill switch is 90% of the $450 committed amount. New requests are denied at that point unless a logged override is approved, and the same $405 value must appear identically in the wallet configuration, the gateway rule, and the audit log schema.

For burn checkpoints, use the verified rate R for the primary alias in dollars per 1M output tokens and the cumulative output-token count recorded at each checkpoint. Cumulative spend equals R multiplied by cumulative output tokens, divided by 1,000,000. Compare that figure with $405 on day 4, day 9, and day 16; the first checkpoint at or above $405 is where the deny rule should already be in force.

A valid split can be any combination whose two alias sub-caps total $450 or less; for instance, $300 assigned to one alias and $150 to the other leaves the $50 reserve untouched. The reconciliation check is the sum, not the individual values.

If the verified rate changes, recompute the same checkpoints from the new R rather than carrying forward an old cumulative estimate. The $500, $50, $450, and $405 values remain the reconciliation anchors even when the rate does not.

The 0 Split: Numbers That Reconcile — 2026 model costs

What the Evidence Does Not Establish

I keep this section narrow: the limits table below is the only new claim here—which cost claims are unverified for 2026 and where the cap rule breaks or still wins. The DeepSeek API Docs 2026 excerpt, the deepseek-ai/DeepSeek-V3 GitHub repository, and the FrankensteinSim/Kimi-K2.7-Code configuration file identify DeepSeek-V3 or its configuration, but none supplies a 2026 per-1M rate for that exact model. The lonr-6/cc-desktop-switch deep read names Zhipu GLM as a configurable provider, but it does not quote a GLM-4.5 per-1M rate. My check is simple: if a rate cannot be tied to the exact model version in a named provider source, it is not evidence for routing.

The inherited-number trap is the first limit. The $1.40/M figure is for GLM-5.3, a different model version; I would not carry it into a GLM-4.5 decision. Treat any inherited rate as stale until re-pulled, even if it came from a familiar dashboard or a copied config. The comparison that matters is not DeepSeek-V3 versus GLM-4.5 on a remembered price; it is the current provider quote for the exact alias you will call, matched before the cap decision is made.

The edge cases split cleanly; I use this table as a failure check, not as a new routing recommendation.

Edge case What the evidence shows Cap rule Rule to apply
Cache-poisoned rates A cached quote can survive after the provider quote changes; the grounded sources do not verify a stable 2026 rate for either model. Breaks Re-pull on schedule before trusting the cap check.
Provider alias returning 429s mid-burst A deny event is an availability signal, not a price quote; the pre-wired fallback alias absorbs the burst. Wins Keep the fallback attached to the same cap decision instead of adding it after the deny.
Context-window overage pricing not in the quoted rate A per-1M quote may not describe every long-context charge; no grounded source supplies a GLM-4.5 or DeepSeek-V3 overage figure. Breaks Add a worst-case multiplier for max context before approving the route.

Benchmark deltas are the second non-proof. If a GLM-4.5 eval lead is cited, I treat it as a capability comparison, not as evidence that GLM-4.5 fits the cap or that either alias deserves primary status. The grounded items here are configuration docs, quickstart material, and repository pages; they do not establish a 2026 cost winner from benchmark scores. My rule is to let benchmark deltas inform quality expectations only after the verified rate check has passed.

What the Evidence Does Not Establish — 2026 model costs

30 Days on $450

Start with $450 committed after the $50 reserve, a $405 kill switch, and sub-caps of $300 for the primary alias and $150 for the fallback. Treat each day as V tokens at the verified output rate R: daily cost = V / 1,000,000 × R.

Compute the example scale from your pulled R and measured V — daily cost = V / 1,000,000 × R — then multiply by 30 for the month. The grounded sources supply no stable 2026 rate for either model, so no illustrative R is asserted here.

Compare observed cumulative spend against the $405 deny threshold at each scheduled checkpoint (day 4, day 9, and day 16, as defined in the cap-split section above). A breach means re-price the alias and rebalance the sub-caps before the kill switch fires; do not wait for the kill switch to discover the drift.

Being wrong has two costs: if the primary is actually the costlier alias, its $300 sub-cap empties early and the fallback inherits traffic it was not sized for; if the fallback is actually the cheaper alias, its $150 sub-cap sits unused while the primary burns faster than the plan. Either error should appear as a checkpoint breach before it becomes a hard stop.

Worksheet fieldPrimary aliasFallback alias
Alias sent to gatewayprimary-aliasfallback-alias
Verified output rate R ($/1M)________
Expected daily volume V________
Daily cost (V / 1,000,000 × R)________
Sub-cap$300$150
Checkpoint actionRe-price and rebalance on breachPromote only after breach or sub-cap exhaustion

Keep this worksheet beside the gateway config and fill it from the rate verified at request time, not from a copied figure. Re-pull R on schedule, recalculate the daily cost, and update the checkpoint comparison before the next billing day.

Worked Example: Run the Numbers

This section alone works one concrete numeric example end to end; it is not a general rule. Scenario: a 2026 run under the $500 prepaid cap for one engineering party operating a gateway. Dates: the 2026 plan year and the monthly cycle named in apidog’s Cursor guide; I assert no calendar day because the supplied grounding gives none. Party: that engineering team. apidog lists Cursor Pro at $20/month with 500 Fast Use credits monthly, and I keep those as client-billing inputs, not per-1M token rates.

Illustration only: let R_D be the verified DeepSeek-V3 rate in dollars per 1M tokens and R_G the verified GLM-4.5 rate in dollars per 1M tokens; I do not fill either with a quoted price because grounding supplies none. Step 1 uses the already-set envelope: primary budget = $450, reserve budget = $50. Step 2 converts budget to verified volume: DeepSeek-V3 primary volume = 450 / R_D million tokens; GLM-4.5 reserve volume = 50 / R_G million tokens. The check is dimensional: dollars divided by dollars per million tokens returns millions of tokens.

Illustration only: set 450 / R_D = 50 / R_G. Multiply both sides by R_D × R_G: 450 R_G = 50 R_D. Divide by 450: R_G = R_D / 9. That is the break-even trigger for this example: GLM-4.5 must be verified below one-ninth of DeepSeek-V3’s verified rate before the smaller reserve can buy more tokens than the larger primary. If R_G equals R_D / 9, the two volumes tie; if R_G is above it, the primary volume is larger.

Illustration only: I set the example’s rate state as R_G ≥ R_D / 9; under that input, I declare DeepSeek-V3 the winner of the primary slot because the $450 primary envelope buys at least as many verified tokens as the $50 reserve. GLM-4.5 wins this example only when the gateway’s verified R_G is below R_D / 9. That is a rate test, not a benchmark-delta test: I do not need a quality delta to flip the example, only the verified rate crossing that one-ninth line.

Illustration only: before I let the example drive spend, I compare the recorded rates to the trigger and write down the inequality I used: R_G < R_D / 9 means GLM-4.5; R_G ≥ R_D / 9 means DeepSeek-V3. If either rate is missing, I stop the numeric claim and use the mechanism instead of inventing a per-1M figure; the available sources do not give a stable 2026 price for either model. The apidog $20/month and 500 Fast Use credits stay outside this comparison because they are not per-1M token rates.

If/Then Rules for the Cap

I check cap survival before model preference. The four rules below are the final if/then layer I use after the rate list is known and before any request is dispatched. They are not a benchmark ranking for DeepSeek-V3 versus GLM-4.5; they are the gate that makes the $500 cap enforceable from verified per-1M-token rates, remaining wallet balance, and a fallback that is already wired to the other alias.

Threshold checkedRouting action
Rule 1: If the primary alias's worst-case cost (max_tokens × output rate) exceeds remaining wallet balancethen route to the fallback alias before the request leaves the gateway. The fallback must be pre-wired to the other alias, not added after a deny event.
Rule 2: If the fallback alias's worst-case cost exceeds remaining wallet balancethen deny the request before dispatch; do not keep searching for another alias after the pre-wired fallback fails the same check.
Rule 3: If a rate re-pull shows either provider's quoted rate changed by more than 10%then invalidate all cached worst-case computations and re-run the deny-path synthetic test.
Rule 4: If cumulative spend hits $405then deny all new requests on both aliases unless a logged override is approved — no per-alias exceptions.

I read the first two rows as one preflight sequence. The gateway settles the primary decision, then the fallback decision, while the request is still local. That ordering is the check I care about: a deny event should close a request, not trigger construction of a new fallback. If the other alias is not already available at that moment, the cap logic is decorative rather than operational.

I audit the third row as a cache-control check. When a quoted rate moves past the stated tolerance, I do not let old worst-case numbers survive in memory. I also look for evidence that the deny-path synthetic test ran again before I trust the gate. That evidence is the check: the rule is not complete until both the cache state and the synthetic result are current.

I audit the fourth row as a wallet-wide check, not a model-level preference. The comparison is cumulative spend against the hard stop, and the exception is procedural: an approved, logged override. I do not let one alias keep spending because the other alias is blocked, and I do not let an override become a hidden per-model exception.

What to do next

StepActionWhy it matters
1Load both DeepSeek-V3 and GLM-4.5 as OpenAI-compatible aliases behind a single gateway.A unified gateway gives you one control point for routing, budgeting, and fallback between the two models.
2Split the $500 prepaid cap into a $450 primary budget and a $50 reserve in the gateway wallet.This keeps fallback traffic pre-funded and prevents the hard cap from being consumed entirely by the primary alias.
3Configure the gateway to re-pull each provider's quoted per-1M-token rate for DeepSeek-V3 and GLM-4.5 on a fixed schedule.Choosing by verified current rates, not benchmark deltas, ensures routing decisions reflect actual cost under the hard cap.
4Before each request, calculate the primary alias's worst-case cost as max_tokens × output rate and compare it to the remaining wallet balance.This check catches potential overages before they happen, protecting the remaining budget.
5Pre-wire automatic routing to the alternate alias so fallback activates when the $450 primary budget is exhausted or a deny event occurs.Having fallback logic in place before denial avoids service interruption and emergency reconfiguration.
6Route traffic to the fallback alias the moment the primary's worst-case cost exceeds the remaining wallet balance.This enforces the hard cap in real time while preserving the $50 reserve for continued fallback service.

Frequently Asked Questions

When should I switch between DeepSeek-V3 and GLM-4.5 under the prepaid cap?

Choose whichever alias has the lower per-1M-token rate your gateway verifies at request time, since benchmark deltas do not determine the choice under the hard cap.

How often does the gateway need to check provider pricing?

The gateway must re-pull each provider's quoted per-1M-token rate on a schedule, because the right answer changes when re-pulled rates shift.

What happens when the primary model's budget runs out?

When the primary alias hits its budget limit or a deny event occurs, the gateway routes to the alternate alias without adding fallback logic after denial.

Can I manage both models through one integration?

Yes — DeepSeek supports an OpenAI-compatible API at api.deepseek.com, so both model aliases can be loaded behind a single gateway for rate verification and routing.

Should I set up fallback after I get denied?

No — fallback must be pre-wired to the other model alias before any deny event, not added after denial.

Why hold back part of the prepaid balance instead of funding one model fully?

Holding a reserve keeps fallback traffic on a pre-funded path so the alternate alias can serve requests even while the overall prepaid hard cap stays in force.

Quick answers

How should the prepaid hard cap be split?Split the prepaid hard cap into a primary budget and a reserve, allocate the primary budget to the primary model alias, and hold the reserve so fallback traffic has a pre-funded path under the hard cap.
How should you choose between DeepSeek-V3 and GLM-4.5 under the hard cap?Choose DeepSeek-V3 or GLM-4.5 by the per-1M-token rate verified at request time; benchmark deltas do not determine the choice under the hard cap.
When should fallback to the other model alias be pre-wired?Fallback must be pre-wired to the other model alias before any deny event.
What happens when the primary alias hits its budget limit or a deny event occurs?When the primary alias hits its primary budget limit or a deny event occurs, the gateway routes to the alternate alias without adding fallback logic after denial.
How can DeepSeek-V3 and GLM-4.5 be managed through one gateway?Load both DeepSeek-V3 and GLM-4.5 as OpenAI-compatible aliases behind one gateway, as DeepSeek supports an OpenAI-compatible API at api.deepseek.com, allowing both model aliases to be managed through a single gateway for rate verification and routing.

Also worth reading: Control AI API spending: per-model prepaid caps stop DeepSeek and GLM overruns at $50: Control AI API spending: per-model · Model price comparison: DeepSeek vs GLM (Z.ai) $50 prepaid cap vs per-model rates in 2026: Model price comparison: DeepSeek vs · Set up DeepSeek: General Language Model (GLM), $50 prepaid OpenAI gateway cap split — 2026: Set up DeepSeek: General Language

Premium Deals
Mighty Travels Premium
Travel in style,
save up to 90%

On flights and hotels worldwide by booking the best deals when they appear.

See Deals

Sponsored

Research Methodology & Editorial Standards

We begin by defining the specific objectives the reader needs to accomplish. Primary product documentation and authoritative secondary sources are assembled into a verified research corpus; drafting occurs only after this foundation is in place.

Every quantitative claim is subjected to dual-source verification. Any figure that cannot be independently corroborated is either qualified or omitted.

Published · Last reviewed · Owned by the Bluusun editorial desk (About, Contact, Privacy).

Related answers