@chenlongapps/opencode-token-usage 0.4.11 → 0.4.13

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.
@@ -1,5 +1,5 @@
1
1
  export declare const GENERATED_PRICE_SNAPSHOT: {
2
- readonly verified: "2026-10-15";
2
+ readonly verified: "2026-10-20";
3
3
  readonly source: "https://models.dev/api.json";
4
4
  readonly entries: readonly [{
5
5
  readonly providerID: "ai21";
@@ -865,7 +865,7 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
865
865
  readonly read: 0.003;
866
866
  };
867
867
  }];
868
- readonly released: "2026-09-10";
868
+ readonly released: "2026-10-17";
869
869
  }, {
870
870
  readonly providerID: "deepseek";
871
871
  readonly id: "deepseek-v4-flash";
@@ -876,7 +876,7 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
876
876
  readonly read: 0.003;
877
877
  };
878
878
  }];
879
- readonly released: "2026-09-10";
879
+ readonly released: "2026-10-17";
880
880
  }, {
881
881
  readonly providerID: "deepseek";
882
882
  readonly id: "deepseek-v4-flash-vision-exp";
@@ -887,7 +887,7 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
887
887
  readonly read: 0.003;
888
888
  };
889
889
  }];
890
- readonly released: "2026-09-10";
890
+ readonly released: "2026-10-17";
891
891
  }, {
892
892
  readonly providerID: "deepseek";
893
893
  readonly id: "deepseek-v4-pro";
@@ -1361,6 +1361,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
1361
1361
  };
1362
1362
  }];
1363
1363
  readonly released: "2026-06-01";
1364
+ }, {
1365
+ readonly providerID: "minimax";
1366
+ readonly id: "minimax-m3.1-flash";
1367
+ readonly prices: readonly [{
1368
+ readonly input: 0.15;
1369
+ readonly output: 0.6;
1370
+ readonly cache: {
1371
+ readonly read: 0.015;
1372
+ };
1373
+ }];
1374
+ readonly released: "2026-10-19";
1364
1375
  }, {
1365
1376
  readonly providerID: "mistral";
1366
1377
  readonly id: "codestral-2508";
@@ -2148,17 +2159,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2148
2159
  };
2149
2160
  }];
2150
2161
  readonly released: "2025-12-11";
2151
- }, {
2152
- readonly providerID: "openai";
2153
- readonly id: "gpt-5.2-chat-latest";
2154
- readonly prices: readonly [{
2155
- readonly input: 1.75;
2156
- readonly output: 14;
2157
- readonly cache: {
2158
- readonly read: 0.175;
2159
- };
2160
- }];
2161
- readonly released: "2025-12-11";
2162
2162
  }, {
2163
2163
  readonly providerID: "openai";
2164
2164
  readonly id: "gpt-5.2-fast";
@@ -2179,17 +2179,6 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2179
2179
  readonly output: 168;
2180
2180
  }];
2181
2181
  readonly released: "2025-12-11";
2182
- }, {
2183
- readonly providerID: "openai";
2184
- readonly id: "gpt-5.3-chat-latest";
2185
- readonly prices: readonly [{
2186
- readonly input: 1.75;
2187
- readonly output: 14;
2188
- readonly cache: {
2189
- readonly read: 0.175;
2190
- };
2191
- }];
2192
- readonly released: "2026-03-03";
2193
2182
  }, {
2194
2183
  readonly providerID: "openai";
2195
2184
  readonly id: "gpt-5.3-codex";
@@ -2982,6 +2971,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
2982
2971
  readonly output: 0.15;
2983
2972
  }];
2984
2973
  readonly released: "2024-06-12";
2974
+ }, {
2975
+ readonly providerID: "upstage";
2976
+ readonly id: "solar-mini4";
2977
+ readonly prices: readonly [{
2978
+ readonly input: 0.1;
2979
+ readonly output: 0.4;
2980
+ readonly cache: {
2981
+ readonly read: 0.01;
2982
+ };
2983
+ }];
2984
+ readonly released: "2026-09-22";
2985
2985
  }, {
2986
2986
  readonly providerID: "upstage";
2987
2987
  readonly id: "solar-pro2";
@@ -3616,6 +3616,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
3616
3616
  readonly prices: readonly [{
3617
3617
  readonly input: 0.6;
3618
3618
  readonly output: 1.8;
3619
+ readonly cache: {
3620
+ readonly read: 0.11;
3621
+ };
3619
3622
  }];
3620
3623
  readonly released: "2025-08-11";
3621
3624
  }, {
@@ -3635,6 +3638,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
3635
3638
  readonly prices: readonly [{
3636
3639
  readonly input: 0.3;
3637
3640
  readonly output: 0.9;
3641
+ readonly cache: {
3642
+ readonly read: 0.05;
3643
+ };
3638
3644
  }];
3639
3645
  readonly released: "2025-12-08";
3640
3646
  }, {
@@ -1,5 +1,5 @@
1
1
  export const GENERATED_PRICE_SNAPSHOT = {
2
- verified: "2026-10-15",
2
+ verified: "2026-10-20",
3
3
  source: "https://models.dev/api.json",
4
4
  entries: [
5
5
  { "providerID": "ai21", "id": "jamba-large", "prices": [{ "input": 2, "output": 8 }], "released": "2025-07-01" },
@@ -86,9 +86,9 @@ export const GENERATED_PRICE_SNAPSHOT = {
86
86
  { "providerID": "cohere", "id": "command-r7b-arabic-02-2025", "prices": [{ "input": 0.0375, "output": 0.15 }], "released": "2025-02-27" },
87
87
  { "providerID": "cohere", "id": "north-mini-code-1-0", "prices": [{ "input": 0, "output": 0 }], "released": "2026-06-09" },
88
88
  { "providerID": "cohere", "id": "north-small-translate-09-2026", "prices": [{ "input": 0, "output": 0 }], "released": "2026-09-09" },
89
- { "providerID": "deepseek", "id": "deepseek-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-09-10" },
90
- { "providerID": "deepseek", "id": "deepseek-v4-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-09-10" },
91
- { "providerID": "deepseek", "id": "deepseek-v4-flash-vision-exp", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-09-10" },
89
+ { "providerID": "deepseek", "id": "deepseek-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-10-17" },
90
+ { "providerID": "deepseek", "id": "deepseek-v4-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-10-17" },
91
+ { "providerID": "deepseek", "id": "deepseek-v4-flash-vision-exp", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-10-17" },
92
92
  { "providerID": "deepseek", "id": "deepseek-v4-pro", "prices": [{ "input": 0.66, "output": 1.98, "cache": { "read": 0.022 } }], "released": "2026-08-12" },
93
93
  { "providerID": "google", "id": "deep-research-max-preview-04-2026", "prices": [{ "input": 2, "output": 12, "cache": { "read": 0.2 } }, { "input": 4, "output": 18, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-04-21" },
94
94
  { "providerID": "google", "id": "deep-research-preview-04-2026", "prices": [{ "input": 2, "output": 12, "cache": { "read": 0.2 } }, { "input": 4, "output": 18, "cache": { "read": 0.4 }, "tier": { "type": "context", "size": 200000 } }], "released": "2026-04-21" },
@@ -126,6 +126,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
126
126
  { "providerID": "minimax", "id": "minimax-m2.7", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.06, "write": 0.375 } }], "released": "2026-03-18" },
127
127
  { "providerID": "minimax", "id": "minimax-m2.7-highspeed", "prices": [{ "input": 0.6, "output": 2.4, "cache": { "read": 0.06, "write": 0.375 } }], "released": "2026-03-18" },
128
128
  { "providerID": "minimax", "id": "minimax-m3", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.06 } }, { "input": 0.6, "output": 2.4, "cache": { "read": 0.12 }, "tier": { "type": "context", "size": 512000 } }], "released": "2026-06-01" },
129
+ { "providerID": "minimax", "id": "minimax-m3.1-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.015 } }], "released": "2026-10-19" },
129
130
  { "providerID": "mistral", "id": "codestral-2508", "prices": [{ "input": 0.3, "output": 0.9, "cache": { "read": 0.03 } }], "released": "2025-07-30" },
130
131
  { "providerID": "mistral", "id": "codestral-latest", "prices": [{ "input": 0.3, "output": 0.9, "cache": { "read": 0.03 } }], "released": "2024-05-29" },
131
132
  { "providerID": "mistral", "id": "devstral-2512", "prices": [{ "input": 0.4, "output": 2 }], "released": "2025-12-09" },
@@ -209,10 +210,8 @@ export const GENERATED_PRICE_SNAPSHOT = {
209
210
  { "providerID": "openai", "id": "gpt-5.1", "prices": [{ "input": 1.25, "output": 10, "cache": { "read": 0.125 } }], "released": "2025-11-13" },
210
211
  { "providerID": "openai", "id": "gpt-5.1-fast", "providers": ["openai"], "prices": [{ "input": 2.5, "output": 20, "cache": { "read": 0.25 } }], "released": "2025-11-13" },
211
212
  { "providerID": "openai", "id": "gpt-5.2", "prices": [{ "input": 1.75, "output": 14, "cache": { "read": 0.175 } }], "released": "2025-12-11" },
212
- { "providerID": "openai", "id": "gpt-5.2-chat-latest", "prices": [{ "input": 1.75, "output": 14, "cache": { "read": 0.175 } }], "released": "2025-12-11" },
213
213
  { "providerID": "openai", "id": "gpt-5.2-fast", "providers": ["openai"], "prices": [{ "input": 3.5, "output": 28, "cache": { "read": 0.35 } }], "released": "2025-12-11" },
214
214
  { "providerID": "openai", "id": "gpt-5.2-pro", "prices": [{ "input": 21, "output": 168 }], "released": "2025-12-11" },
215
- { "providerID": "openai", "id": "gpt-5.3-chat-latest", "prices": [{ "input": 1.75, "output": 14, "cache": { "read": 0.175 } }], "released": "2026-03-03" },
216
215
  { "providerID": "openai", "id": "gpt-5.3-codex", "prices": [{ "input": 1.75, "output": 14, "cache": { "read": 0.175 } }], "released": "2026-02-05" },
217
216
  { "providerID": "openai", "id": "gpt-5.3-codex-fast", "providers": ["openai"], "prices": [{ "input": 3.5, "output": 28, "cache": { "read": 0.35 } }], "released": "2026-02-05" },
218
217
  { "providerID": "openai", "id": "gpt-5.3-codex-spark", "prices": [{ "input": 1.75, "output": 14, "cache": { "read": 0.175 } }], "released": "2026-02-05" },
@@ -266,6 +265,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
266
265
  { "providerID": "stepfun-ai", "id": "step-5-preview", "prices": [{ "input": 1, "output": 2.7, "cache": { "read": 0.05 } }], "released": "2026-09-16" },
267
266
  { "providerID": "tencent-tokenhub", "id": "hy4-preview", "prices": [{ "input": 0.834, "output": 2.501, "cache": { "read": 0.042 } }], "released": "2026-08-28" },
268
267
  { "providerID": "upstage", "id": "solar-mini", "prices": [{ "input": 0.15, "output": 0.15 }], "released": "2024-06-12" },
268
+ { "providerID": "upstage", "id": "solar-mini4", "prices": [{ "input": 0.1, "output": 0.4, "cache": { "read": 0.01 } }], "released": "2026-09-22" },
269
269
  { "providerID": "upstage", "id": "solar-pro2", "prices": [{ "input": 0.25, "output": 0.25 }], "released": "2025-05-20" },
270
270
  { "providerID": "upstage", "id": "solar-pro3", "prices": [{ "input": 0.25, "output": 0.25 }] },
271
271
  { "providerID": "upstage", "id": "solar-pro4", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.06 } }], "released": "2026-08-06" },
@@ -301,9 +301,9 @@ export const GENERATED_PRICE_SNAPSHOT = {
301
301
  { "providerID": "zai", "id": "glm-4.5", "prices": [{ "input": 0.6, "output": 2.2, "cache": { "read": 0.11 } }], "released": "2025-07-28" },
302
302
  { "providerID": "zai", "id": "glm-4.5-air", "prices": [{ "input": 0.2, "output": 1.1, "cache": { "read": 0.03 } }], "released": "2025-07-28" },
303
303
  { "providerID": "zai", "id": "glm-4.5-flash", "prices": [{ "input": 0, "output": 0, "cache": { "read": 0 } }], "released": "2025-07-28" },
304
- { "providerID": "zai", "id": "glm-4.5v", "prices": [{ "input": 0.6, "output": 1.8 }], "released": "2025-08-11" },
304
+ { "providerID": "zai", "id": "glm-4.5v", "prices": [{ "input": 0.6, "output": 1.8, "cache": { "read": 0.11 } }], "released": "2025-08-11" },
305
305
  { "providerID": "zai", "id": "glm-4.6", "prices": [{ "input": 0.6, "output": 2.2, "cache": { "read": 0.11 } }], "released": "2025-09-30" },
306
- { "providerID": "zai", "id": "glm-4.6v", "prices": [{ "input": 0.3, "output": 0.9 }], "released": "2025-12-08" },
306
+ { "providerID": "zai", "id": "glm-4.6v", "prices": [{ "input": 0.3, "output": 0.9, "cache": { "read": 0.05 } }], "released": "2025-12-08" },
307
307
  { "providerID": "zai", "id": "glm-4.6v-flash", "prices": [{ "input": 0, "output": 0, "cache": { "read": 0 } }], "released": "2025-12-08" },
308
308
  { "providerID": "zai", "id": "glm-4.7", "prices": [{ "input": 0.6, "output": 2.2, "cache": { "read": 0.11 } }], "released": "2025-12-22" },
309
309
  { "providerID": "zai", "id": "glm-4.7-flash", "prices": [{ "input": 0, "output": 0, "cache": { "read": 0 } }], "released": "2026-01-19" },
package/dist/pricing.d.ts CHANGED
@@ -14,7 +14,7 @@ export interface OfficialPriceEntry {
14
14
  /** Checked-in data: updating prices is explicit, not a network request at
15
15
  * startup, during a refresh, or during an npm build. */
16
16
  export declare const OFFICIAL_PRICE_SNAPSHOT: {
17
- verified: "2026-10-15";
17
+ verified: "2026-10-20";
18
18
  source: "https://models.dev/api.json";
19
19
  entries: OfficialPriceEntry[];
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenlongapps/opencode-token-usage",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "Session-tree token usage, live performance, context window and estimated cost for OpenCode 2",
5
5
  "keywords": [
6
6
  "opencode",