@chenlongapps/opencode-token-usage 0.4.11 → 0.4.12
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/dist/prices.generated.d.ts +21 -4
- package/dist/prices.generated.js +7 -6
- package/dist/pricing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
2
|
-
readonly verified: "2026-10-
|
|
2
|
+
readonly verified: "2026-10-18";
|
|
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-
|
|
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-
|
|
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-
|
|
890
|
+
readonly released: "2026-10-17";
|
|
891
891
|
}, {
|
|
892
892
|
readonly providerID: "deepseek";
|
|
893
893
|
readonly id: "deepseek-v4-pro";
|
|
@@ -2982,6 +2982,17 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
2982
2982
|
readonly output: 0.15;
|
|
2983
2983
|
}];
|
|
2984
2984
|
readonly released: "2024-06-12";
|
|
2985
|
+
}, {
|
|
2986
|
+
readonly providerID: "upstage";
|
|
2987
|
+
readonly id: "solar-mini4";
|
|
2988
|
+
readonly prices: readonly [{
|
|
2989
|
+
readonly input: 0.1;
|
|
2990
|
+
readonly output: 0.4;
|
|
2991
|
+
readonly cache: {
|
|
2992
|
+
readonly read: 0.01;
|
|
2993
|
+
};
|
|
2994
|
+
}];
|
|
2995
|
+
readonly released: "2026-09-22";
|
|
2985
2996
|
}, {
|
|
2986
2997
|
readonly providerID: "upstage";
|
|
2987
2998
|
readonly id: "solar-pro2";
|
|
@@ -3616,6 +3627,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
3616
3627
|
readonly prices: readonly [{
|
|
3617
3628
|
readonly input: 0.6;
|
|
3618
3629
|
readonly output: 1.8;
|
|
3630
|
+
readonly cache: {
|
|
3631
|
+
readonly read: 0.11;
|
|
3632
|
+
};
|
|
3619
3633
|
}];
|
|
3620
3634
|
readonly released: "2025-08-11";
|
|
3621
3635
|
}, {
|
|
@@ -3635,6 +3649,9 @@ export declare const GENERATED_PRICE_SNAPSHOT: {
|
|
|
3635
3649
|
readonly prices: readonly [{
|
|
3636
3650
|
readonly input: 0.3;
|
|
3637
3651
|
readonly output: 0.9;
|
|
3652
|
+
readonly cache: {
|
|
3653
|
+
readonly read: 0.05;
|
|
3654
|
+
};
|
|
3638
3655
|
}];
|
|
3639
3656
|
readonly released: "2025-12-08";
|
|
3640
3657
|
}, {
|
package/dist/prices.generated.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const GENERATED_PRICE_SNAPSHOT = {
|
|
2
|
-
verified: "2026-10-
|
|
2
|
+
verified: "2026-10-18",
|
|
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-
|
|
90
|
-
{ "providerID": "deepseek", "id": "deepseek-v4-flash", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-
|
|
91
|
-
{ "providerID": "deepseek", "id": "deepseek-v4-flash-vision-exp", "prices": [{ "input": 0.15, "output": 0.6, "cache": { "read": 0.003 } }], "released": "2026-
|
|
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" },
|
|
@@ -266,6 +266,7 @@ export const GENERATED_PRICE_SNAPSHOT = {
|
|
|
266
266
|
{ "providerID": "stepfun-ai", "id": "step-5-preview", "prices": [{ "input": 1, "output": 2.7, "cache": { "read": 0.05 } }], "released": "2026-09-16" },
|
|
267
267
|
{ "providerID": "tencent-tokenhub", "id": "hy4-preview", "prices": [{ "input": 0.834, "output": 2.501, "cache": { "read": 0.042 } }], "released": "2026-08-28" },
|
|
268
268
|
{ "providerID": "upstage", "id": "solar-mini", "prices": [{ "input": 0.15, "output": 0.15 }], "released": "2024-06-12" },
|
|
269
|
+
{ "providerID": "upstage", "id": "solar-mini4", "prices": [{ "input": 0.1, "output": 0.4, "cache": { "read": 0.01 } }], "released": "2026-09-22" },
|
|
269
270
|
{ "providerID": "upstage", "id": "solar-pro2", "prices": [{ "input": 0.25, "output": 0.25 }], "released": "2025-05-20" },
|
|
270
271
|
{ "providerID": "upstage", "id": "solar-pro3", "prices": [{ "input": 0.25, "output": 0.25 }] },
|
|
271
272
|
{ "providerID": "upstage", "id": "solar-pro4", "prices": [{ "input": 0.3, "output": 1.2, "cache": { "read": 0.06 } }], "released": "2026-08-06" },
|
|
@@ -301,9 +302,9 @@ export const GENERATED_PRICE_SNAPSHOT = {
|
|
|
301
302
|
{ "providerID": "zai", "id": "glm-4.5", "prices": [{ "input": 0.6, "output": 2.2, "cache": { "read": 0.11 } }], "released": "2025-07-28" },
|
|
302
303
|
{ "providerID": "zai", "id": "glm-4.5-air", "prices": [{ "input": 0.2, "output": 1.1, "cache": { "read": 0.03 } }], "released": "2025-07-28" },
|
|
303
304
|
{ "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" },
|
|
305
|
+
{ "providerID": "zai", "id": "glm-4.5v", "prices": [{ "input": 0.6, "output": 1.8, "cache": { "read": 0.11 } }], "released": "2025-08-11" },
|
|
305
306
|
{ "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" },
|
|
307
|
+
{ "providerID": "zai", "id": "glm-4.6v", "prices": [{ "input": 0.3, "output": 0.9, "cache": { "read": 0.05 } }], "released": "2025-12-08" },
|
|
307
308
|
{ "providerID": "zai", "id": "glm-4.6v-flash", "prices": [{ "input": 0, "output": 0, "cache": { "read": 0 } }], "released": "2025-12-08" },
|
|
308
309
|
{ "providerID": "zai", "id": "glm-4.7", "prices": [{ "input": 0.6, "output": 2.2, "cache": { "read": 0.11 } }], "released": "2025-12-22" },
|
|
309
310
|
{ "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-
|
|
17
|
+
verified: "2026-10-18";
|
|
18
18
|
source: "https://models.dev/api.json";
|
|
19
19
|
entries: OfficialPriceEntry[];
|
|
20
20
|
};
|