@@ -37,13 +37,17 @@ const KIMI_K27_CODE: Cost4 = { input: 0.95, output: 4, cacheRead: 0.19, cacheWri
3737const KIMI_K27_CODE_HIGHSPEED : Cost4 = { input : 1.9 , output : 8 , cacheRead : 0.38 , cacheWrite : 1.9 } ;
3838const KIMI_K26 : Cost4 = { input : 0.95 , output : 4 , cacheRead : 0.16 , cacheWrite : 0.95 } ;
3939const KIMI_K25 : Cost4 = { input : 0.6 , output : 3 , cacheRead : 0.1 , cacheWrite : 0.6 } ;
40+ const QWEN38_ROUTEWAY_TEMPORARY : Cost4 = { input : 1.5 , output : 5 , cacheRead : 0.15 , cacheWrite : 0 } ;
4041
4142const GEMINI_PRICING = "https://ai.google.dev/gemini-api/docs/pricing (2026-07-22); cacheWrite=0: storage is billed per-hour, not per-token" ;
4243const MINIMAX_PRICING = "https://platform.minimax.io/docs/guides/pricing-paygo" ;
4344const DEEPSEEK_PRICING = "https://api-docs.deepseek.com/quick_start/pricing-details-usd; V4 Flash alias transition scheduled 2026-07-24 — re-verify after" ;
4445// Kimi official tables publish input/output/cache-hit only; cacheWrite is mapped to the
4546// cache-miss input price (Kimi auto-caches with no separate write billing). 2026-07-20 re-verified.
4647const KIMI_PRICING = "https://platform.kimi.ai/docs/pricing (official table; cacheWrite derived = input, Kimi auto-cache has no write billing)" ;
48+ // TEMPORARY proxy only: Routeway's reseller API rate is not Alibaba Token Plan billing.
49+ // Replace these overlays when Alibaba publishes an official qwen3.8-max-preview token rate.
50+ const QWEN38_ROUTEWAY_PRICING = "https://routeway.ai/models/qwen3.8-max-preview (temporary reseller proxy; NOT Alibaba Token Plan billing; cacheWrite unpublished -> 0)" ;
4751
4852export const EXPECTED_PRICE_OVERLAYS : readonly ExpectedPriceOverlay [ ] = [
4953 // MiniMax M2.1 highspeed — published PAYG price (verified).
@@ -95,6 +99,10 @@ export const EXPECTED_PRICE_OVERLAYS: readonly ExpectedPriceOverlay[] = [
9599 { provider : "kimi-code" , modelId : "kimi-k2.6" , cost4 : KIMI_K26 , source : KIMI_PRICING , verifiedAt : "2026-07-20" , status : "verified-derived" } ,
96100 { provider : "kimi-code" , modelId : "kimi-k2.5" , cost4 : KIMI_K25 , source : KIMI_PRICING , verifiedAt : "2026-07-20" , status : "verified-derived" } ,
97101 { provider : "kimi-code" , modelId : "kimi-for-coding" , cost4 : KIMI_K27_CODE , source : `derived: kimi-k2.7-code ${ KIMI_PRICING } ` , verifiedAt : "2026-07-20" , status : "verified-derived" } ,
102+ // Alibaba has not published a per-token Token Plan rate yet. Use Routeway's
103+ // independently published reseller rate temporarily and keep estimates derived.
104+ { provider : "alibaba-token-plan" , modelId : "qwen3.8-max-preview" , cost4 : QWEN38_ROUTEWAY_TEMPORARY , source : QWEN38_ROUTEWAY_PRICING , verifiedAt : "2026-07-22" , status : "verified-derived" } ,
105+ { provider : "alibaba-token-plan-intl" , modelId : "qwen3.8-max-preview" , cost4 : QWEN38_ROUTEWAY_TEMPORARY , source : QWEN38_ROUTEWAY_PRICING , verifiedAt : "2026-07-22" , status : "verified-derived" } ,
98106 // Cursor Auto router — Cursor's published fixed token price (verified).
99107 { provider : "cursor" , modelId : "auto" , cost4 : { input : 1.25 , output : 6 , cacheRead : 0.25 , cacheWrite : 1.25 } , source : "https://docs.cursor.com/account/pricing + https://cursor.com/blog/aug-2025-pricing" , verifiedAt : "2026-07-20" , status : "verified" } ,
100108] ;
0 commit comments