Repository navigation
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- qwen3-max: 3e-6/15e-6 → 1.2e-6/6e-6 base + pricing tiers (official 2026-08-12 list) - qwen3-coder-plus: 6e-6/60e-6 → 1e-6/5e-6 base + pricing tiers (official 2026-08-12 list) - qwen3.7-flash: add eu-frankfurt/us-virginia/cn-beijing overrides at 0.028/0.110 base - qwen3.7-plus: add us-virginia/cn-beijing overrides at 0.276/1.101 base - qwen3.6-plus: add us-virginia/cn-beijing overrides at 0.276/1.651 base - qwen3.6-flash: add eu-frankfurt override at 0.165/0.99 base - Promos (qwen3.7-max 50% off, qwen3.7-plus 20% off) intentionally NOT applied - Deactivated entries skipped
vicovaro
force-pushed
the
chore/alibaba-qwen-pricing
branch
from
August 12, 2026 22:26
1392ea5 to
8039140
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync Qwen model pricing with Alibaba Cloud Model Studio official list prices
(source: https://www.alibabacloud.com/help/en/model-studio/model-pricing —
"Model inference pricing", page updated 2026-08-12 03:12 UTC; region values
verified per-tab on the same page). Only permanent, lower changes applied.
Rule applied: repo price > official list price, and the change is
permanent (no "Limited-time X% off" promo). ✅ = change applied.
❌ = deliberately NOT changed (promo trap / already lower / deactivated / not in catalog).
✅ Changes applied
qwen3-max — flat top-tier → official base + tiers
qwen3-maxrow (≤32K tier), page 2026-08-12qwen3-coder-plus — flat top-tier → official base + tiers
qwen3-coder-plusrow (≤32K tier), page 2026-08-12qwen3.7-flash — add non-SG regional overrides
qwen3.7-flash(Global id), page 2026-08-12qwen3.7-plus — add missing us-virginia + cn-beijing overrides
qwen3.7-plus(Global id), page 2026-08-12qwen3.6-plus — add missing us-virginia + cn-beijing overrides
qwen3.6-plus(Global id), page 2026-08-12qwen3.6-flash — add missing eu-frankfurt override
qwen3.6-flash(Global id), page 2026-08-12All overrides carry cache prices at the repo's existing 20%/10%/125%
(cachedInput/cacheRead/cacheWrite) pattern.
❌ Not changed (deliberate)
promos; the gateway already carries the permanent list price. Promo prices
intentionally NOT applied. ❌
lower-only rule → no raise. ❌
—
deactivatedAtin the past, zero billing impact. ❌qwen3.7-plus-us/qwen3.6-flash-us— US-pinned SKUs are separate model ids(still $0.40 / $0.25 in US) NOT used by the gateway; do not confuse with the
Global ids this PR fixes. ❌
the repo catalog. ❌
How regional pricing works here (DashScope multi-region)
Alibaba Cloud Model Studio is a separate OpenAI-compatible endpoint per
region, each with its own host, list price, and API key. The gateway models
this with three layers; this PR only touches the price-data layer:
packages/models/src/providers.tsregionConfigendpointMap(singapore →dashscope-intl.aliyuncs.com, us-virginia →dashscope-us.aliyuncs.com, cn-beijing →dashscope.aliyuncs.com, eu-frankfurt → workspace-dedicated{workspaceId}.eu-central-1.maas.aliyuncs.comwithtrial.eu-central-1…fallback)packages/models/src/models/alibaba.tsregions[]inputPrice/outputPrice/cache and may carry its ownpricingTierspackages/models/src/region-helpers.tsexpandProviderRegionsregions[]→ flat entries ([root, singapore, eu-frankfurt, us-virginia, cn-beijing]);externalIdstays constant,regionis the disambiguatorpackages/actions/src/get-provider-endpoint.tsendpointMap[region]→resolveWorkspaceScopedEndpoint()fills{workspaceId}for Frankfurt → appends/compatible-modeapps/gateway/src/chat/chat.ts(PR #3533/#3540)Concretely: with this PR's overrides in place,
expandProviderRegionsexposesthe lower non-Singapore list prices, cheapest-region routing sends the request
to the winning region's real DashScope host, and billing matches the served
endpoint. No endpoint, credential, or routing code changes are needed — the
machinery already exists (eu-frankfurt overrides for qwen3.7-plus/qwen3.6-plus
and us-virginia/cn-beijing for qwen3.6-flash were already present and working).
requests need a workspace id on the Alibaba credential, otherwise they fall back
to the shared
trial.eu-central-1.maas.aliyuncs.comhost (1000 RPM cap, no SLA).Verifications to run for reviewers
1. Confirm the official Alibaba list prices with curl
The pricing page is server-rendered — plain curl returns the numbers. Both
commands below fetch the SAME page used for this PR (updated 2026-08-12):
Optional stronger check — run the packaged verifier (fetches + normalizes both pages):
python3 /tmp/verify-alibaba-pricing.py # prints per-model, per-region USD prices2. E2E the pricing through the LLMGateway stack
From a worktree on the PR branch (see Task 7 for the /tmp scratch setup):
Validation (from this PR)
pnpm build✅ ·pnpm test:unit✅ · no price increased in the diff ✅(page header: "Updated at: 2026-08-12 03:12:30").