@rayadesu/dsh-llm-billing 0.3.15 → 0.3.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -410,8 +410,8 @@ const V4_PRO_SWITCHED_RATES = {
410
410
  * series (V4.1 Flash, V4 Flash, V4 Flash Vision Exp) carries the second
411
411
  * revision effective 2026-09-10 12:00 Beijing, and the V4 Pro row the V4.1
412
412
  * Flash rates from its announced route switch (2026-09-14 12:00 Beijing) —
413
- * the MiMo-V2.5 series is untouched by either adjustment. Rows sharing a model
414
- * are that model's rate history.
413
+ * the MiMo series (V2.5, and V2.6 which kept V2.5's pricing) is untouched by
414
+ * either adjustment. Rows sharing a model are that model's rate history.
415
415
  */
416
416
  const DEFAULT_MODEL_PRICING = [
417
417
  {
@@ -488,6 +488,32 @@ const DEFAULT_MODEL_PRICING = [
488
488
  cacheMissInput: 1,
489
489
  output: 2
490
490
  }
491
+ },
492
+ {
493
+ model: "mimo-v2.6-pro",
494
+ peak: {
495
+ cacheHitInput: .025,
496
+ cacheMissInput: 3,
497
+ output: 6
498
+ },
499
+ offPeak: {
500
+ cacheHitInput: .025,
501
+ cacheMissInput: 3,
502
+ output: 6
503
+ }
504
+ },
505
+ {
506
+ model: "mimo-v2.6-flash",
507
+ peak: {
508
+ cacheHitInput: .02,
509
+ cacheMissInput: 1,
510
+ output: 2
511
+ },
512
+ offPeak: {
513
+ cacheHitInput: .02,
514
+ cacheMissInput: 1,
515
+ output: 2
516
+ }
491
517
  }
492
518
  ];
493
519
  /**
@@ -2037,10 +2063,11 @@ const BASE_URL_ENV = "DEEPSEEK_BASE_URL";
2037
2063
  const PUBLIC_BASE_URL = "https://api.deepseek.com";
2038
2064
  /**
2039
2065
  * Advisory display rows mirroring the DSH `llm-deepseek` catalog (V4.1 Flash
2040
- * first, its current default route), plus the MiMo-V2.5 series. The retired
2041
- * preview id `deepseek-v4.1-flash-expires-on-0910` stays so the logs that used
2042
- * it keep a readable label; rows never restrict which models are priced — the
2043
- * pricing table does.
2066
+ * first, its current default route), plus the MiMo series (V2.5, and V2.6
2067
+ * which kept V2.5's pricing). The retired preview id
2068
+ * `deepseek-v4.1-flash-expires-on-0910` stays so the logs that used it keep a
2069
+ * readable label; rows never restrict which models are priced — the pricing
2070
+ * table does.
2044
2071
  */
2045
2072
  const DEFAULT_MODELS = [
2046
2073
  {
@@ -2070,6 +2097,14 @@ const DEFAULT_MODELS = [
2070
2097
  {
2071
2098
  id: "mimo-v2.5",
2072
2099
  name: "MiMo-V2.5"
2100
+ },
2101
+ {
2102
+ id: "mimo-v2.6-pro",
2103
+ name: "MiMo-V2.6-Pro"
2104
+ },
2105
+ {
2106
+ id: "mimo-v2.6-flash",
2107
+ name: "MiMo-V2.6-Flash"
2073
2108
  }
2074
2109
  ];
2075
2110
  const billingModel = z.object({
@@ -106,8 +106,8 @@ export declare const V4_PRO_ROUTE_SWITCH_AT: number;
106
106
  * series (V4.1 Flash, V4 Flash, V4 Flash Vision Exp) carries the second
107
107
  * revision effective 2026-09-10 12:00 Beijing, and the V4 Pro row the V4.1
108
108
  * Flash rates from its announced route switch (2026-09-14 12:00 Beijing) —
109
- * the MiMo-V2.5 series is untouched by either adjustment. Rows sharing a model
110
- * are that model's rate history.
109
+ * the MiMo series (V2.5, and V2.6 which kept V2.5's pricing) is untouched by
110
+ * either adjustment. Rows sharing a model are that model's rate history.
111
111
  */
112
112
  export declare const DEFAULT_MODEL_PRICING: readonly BillingConfigModel[];
113
113
  /** Resolved billing configuration: a pricing table plus peak-hour windows. */
@@ -65,8 +65,8 @@ const V4_PRO_SWITCHED_RATES = {
65
65
  * series (V4.1 Flash, V4 Flash, V4 Flash Vision Exp) carries the second
66
66
  * revision effective 2026-09-10 12:00 Beijing, and the V4 Pro row the V4.1
67
67
  * Flash rates from its announced route switch (2026-09-14 12:00 Beijing) —
68
- * the MiMo-V2.5 series is untouched by either adjustment. Rows sharing a model
69
- * are that model's rate history.
68
+ * the MiMo series (V2.5, and V2.6 which kept V2.5's pricing) is untouched by
69
+ * either adjustment. Rows sharing a model are that model's rate history.
70
70
  */
71
71
  export const DEFAULT_MODEL_PRICING = [
72
72
  // deepseek-flash is the V4.1 Flash route, DSH's default catalog entry; image
@@ -92,7 +92,10 @@ export const DEFAULT_MODEL_PRICING = [
92
92
  // images are converted to tokens at the same per-token price.
93
93
  { model: 'deepseek-v4-flash-vision-exp', ...FLASH_BASE_RATES },
94
94
  { model: 'deepseek-v4-flash-vision-exp', ...FLASH_REPRICED_RATES },
95
- // MiMo-V2.5 series (Xiaomi): flat rate, no peak/off-peak distinction.
95
+ // MiMo series (Xiaomi): flat rate, no peak/off-peak distinction. V2.6 keeps
96
+ // V2.5's published API pricing (2026-09-22 launch, "API pricing unchanged
97
+ // from V2.5"); cache writes bill at the miss rate, though Xiaomi's launch
98
+ // window makes them free provider-side for a limited time.
96
99
  {
97
100
  model: 'mimo-v2.5-pro',
98
101
  peak: { cacheHitInput: 0.025, cacheMissInput: 3.0, output: 6.0 },
@@ -103,6 +106,16 @@ export const DEFAULT_MODEL_PRICING = [
103
106
  peak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
104
107
  offPeak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
105
108
  },
109
+ {
110
+ model: 'mimo-v2.6-pro',
111
+ peak: { cacheHitInput: 0.025, cacheMissInput: 3.0, output: 6.0 },
112
+ offPeak: { cacheHitInput: 0.025, cacheMissInput: 3.0, output: 6.0 },
113
+ },
114
+ {
115
+ model: 'mimo-v2.6-flash',
116
+ peak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
117
+ offPeak: { cacheHitInput: 0.02, cacheMissInput: 1.0, output: 2.0 },
118
+ },
106
119
  ];
107
120
  /**
108
121
  * Resolve optional configuration to a pricing table, defaulting omitted or
@@ -39,10 +39,11 @@ const BASE_URL_ENV = 'DEEPSEEK_BASE_URL';
39
39
  export const PUBLIC_BASE_URL = 'https://api.deepseek.com';
40
40
  /**
41
41
  * Advisory display rows mirroring the DSH `llm-deepseek` catalog (V4.1 Flash
42
- * first, its current default route), plus the MiMo-V2.5 series. The retired
43
- * preview id `deepseek-v4.1-flash-expires-on-0910` stays so the logs that used
44
- * it keep a readable label; rows never restrict which models are priced — the
45
- * pricing table does.
42
+ * first, its current default route), plus the MiMo series (V2.5, and V2.6
43
+ * which kept V2.5's pricing). The retired preview id
44
+ * `deepseek-v4.1-flash-expires-on-0910` stays so the logs that used it keep a
45
+ * readable label; rows never restrict which models are priced — the pricing
46
+ * table does.
46
47
  */
47
48
  const DEFAULT_MODELS = [
48
49
  { id: 'deepseek-flash', name: 'DeepSeek-V41-Flash' },
@@ -52,6 +53,8 @@ const DEFAULT_MODELS = [
52
53
  { id: 'deepseek-v4-flash-vision-exp', name: 'DeepSeek-V4-Flash-Vision-Exp' },
53
54
  { id: 'mimo-v2.5-pro', name: 'MiMo-V2.5-Pro' },
54
55
  { id: 'mimo-v2.5', name: 'MiMo-V2.5' },
56
+ { id: 'mimo-v2.6-pro', name: 'MiMo-V2.6-Pro' },
57
+ { id: 'mimo-v2.6-flash', name: 'MiMo-V2.6-Flash' },
55
58
  ];
56
59
  const billingModel = z.object({
57
60
  id: z.string().required(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rayadesu/dsh-llm-billing",
3
3
  "description": "Standalone DeepSeek account-balance and session-spend provider exposed through the billing Remote",
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },