alibaba-cn/qwen-plus: add published explicit cache rates - #5235
Open
tbourrillon wants to merge 1 commit into
Open
alibaba-cn/qwen-plus: add published explicit cache rates#5235tbourrillon wants to merge 1 commit into
tbourrillon wants to merge 1 commit into
Conversation
Alibaba publishes explicit context-cache pricing for qwen-plus that this entry does not carry, so anything pricing a cached qwen-plus turn has to fall back to the uncached input rate. From the Model Studio pricing page (China Beijing / Global scope), base tier (Input <= 128k): Explicit Cache Creation 0.144 per 1M tokens Explicit Cache Read 0.012 per 1M tokens Both corroborate Alibaba's documented multipliers against the input rate this entry already carries: the context-cache guide states explicit cache creation is billed at 125% of the standard input price and an explicit cache hit at 10%. 0.115 * 1.25 = 0.14375 (published 0.144) and 0.115 * 0.10 = 0.0115 (published 0.012). cache_read is the EXPLICIT hit rate, matching how the other Qwen entries in this repo are populated. Alibaba prices an implicit prefix-cache hit separately at 20% (0.023), which this schema has no field for; raised as an issue rather than folded in here.
Contributor
|
No actionable findings. |
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.
alibaba-cn/qwen-pluscarriesinput,outputandreasoningbut no cache rates, even though Alibaba publishes explicit context-cache pricing for the model. Anything pricing a cached qwen-plus turn currently has to fall back to the uncached input rate.From the Model Studio pricing page (China Beijing tab; Germany Frankfurt and US Virginia show the same figures under
Scope: Global), base tierInput <= 128k:Both check out against Alibaba's documented multipliers and the
inputrate this entry already carries. The context cache guide states explicit cache creation is billed at 125% of the standard input price and an explicit cache hit at 10%:0.115 × 1.25 = 0.14375→ published 0.1440.115 × 0.10 = 0.0115→ published 0.012So two independent sources agree, against a base price this file already had right.
On which rate
cache_readcarriesI used the explicit hit rate (0.012), which is how the other Qwen entries here are populated —
qwen3.7-flash,qwen3.6-plusandqwen3.7-plusall sit at exactly 10% of their input.Worth flagging that Alibaba prices two different kinds of hit: an explicit (
cache_control) hit at 10%, and an implicit prefix-cache hit at 20% — 0.023 for this model, also published on that page. There's onecache_readfield, and the API reports both kinds in the samecached_tokens, so a consumer can't tell which rate applied. I've left that alone here rather than fold a schema question into a data fix; happy to open it separately if that's useful.Not included
qwen-plusis also published in three context tiers (<= 128k,128k–256k,256k–1M) and this entry carries only the first, flat, on a model whoselimit.contextis 1,000,000. I have figures for the upper tiers but only from a rendered read of the page, and they contain an internal inconsistency I couldn't reconcile confidently, so I've deliberately left them out rather than guess. Raising that separately so someone with a cleaner source can do it properly.Verified against the live page on 2026-08-21. Happy to adjust the format or split this differently.