Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit aec3f11

Browse files
committed
fix: correct DeepSeek V4 model pricing to accurate USD values
1 parent 28c6d27 commit aec3f11

5 files changed

Lines changed: 40 additions & 40 deletions

File tree

packages/types/src/providers/baseten.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ export const basetenModels = {
8888
contextWindow: 1_000_000,
8989
supportsImages: false,
9090
supportsPromptCache: true,
91-
inputPrice: 12,
92-
outputPrice: 24,
93-
cacheWritesPrice: 0,
94-
cacheReadsPrice: 1,
91+
inputPrice: 1.74,
92+
outputPrice: 3.48,
93+
cacheWritesPrice: 1.74,
94+
cacheReadsPrice: 0.145,
9595
description: "DeepSeek V4 Pro",
9696
},
9797
"deepseek-ai/DeepSeek-V4-Flash": {
9898
maxTokens: 384_000,
9999
contextWindow: 1_000_000,
100100
supportsImages: false,
101101
supportsPromptCache: true,
102-
inputPrice: 0.2,
103-
outputPrice: 1,
104-
cacheWritesPrice: 0,
105-
cacheReadsPrice: 1,
102+
inputPrice: 0.14,
103+
outputPrice: 0.28,
104+
cacheWritesPrice: 0.14,
105+
cacheReadsPrice: 0.028,
106106
description: "DeepSeek V4 Flash",
107107
},
108108
"openai/gpt-oss-120b": {

packages/types/src/providers/deepseek.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export const deepSeekModels = {
3838
supportsImages: false,
3939
supportsPromptCache: true,
4040
preserveReasoning: true,
41-
inputPrice: 12,
42-
outputPrice: 24,
43-
cacheWritesPrice: 0,
44-
cacheReadsPrice: 1,
41+
inputPrice: 1.74, // $1.74 per million tokens (cache miss)
42+
outputPrice: 3.48, // $3.48 per million tokens
43+
cacheWritesPrice: 1.74, // $1.74 per million tokens (cache miss)
44+
cacheReadsPrice: 0.145, // $0.145 per million tokens (cache hit)
4545
description: `DeepSeek V4 Pro`,
4646
},
4747
"deepseek-v4-flash": {
@@ -50,10 +50,10 @@ export const deepSeekModels = {
5050
supportsImages: false,
5151
supportsPromptCache: true,
5252
preserveReasoning: true,
53-
inputPrice: 0.2,
54-
outputPrice: 1,
55-
cacheWritesPrice: 0,
56-
cacheReadsPrice: 1,
53+
inputPrice: 0.14, // $0.14 per million tokens (cache miss)
54+
outputPrice: 0.28, // $0.28 per million tokens
55+
cacheWritesPrice: 0.14, // $0.14 per million tokens (cache miss)
56+
cacheReadsPrice: 0.028, // $0.028 per million tokens (cache hit)
5757
description: `DeepSeek V4 Flash`,
5858
},
5959
} as const satisfies Record<string, ModelInfo>

packages/types/src/providers/fireworks.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,21 @@ export const fireworksModels = {
207207
contextWindow: 1_000_000,
208208
supportsImages: false,
209209
supportsPromptCache: true,
210-
inputPrice: 12,
211-
outputPrice: 24,
212-
cacheWritesPrice: 0,
213-
cacheReadsPrice: 1,
210+
inputPrice: 1.74,
211+
outputPrice: 3.48,
212+
cacheWritesPrice: 1.74,
213+
cacheReadsPrice: 0.145,
214214
description: "DeepSeek V4 Pro",
215215
},
216216
"accounts/fireworks/models/deepseek-v4-flash": {
217217
maxTokens: 384_000,
218218
contextWindow: 1_000_000,
219219
supportsImages: false,
220220
supportsPromptCache: true,
221-
inputPrice: 0.2,
222-
outputPrice: 1,
223-
cacheWritesPrice: 0,
224-
cacheReadsPrice: 1,
221+
inputPrice: 0.14,
222+
outputPrice: 0.28,
223+
cacheWritesPrice: 0.14,
224+
cacheReadsPrice: 0.028,
225225
description: "DeepSeek V4 Flash",
226226
},
227227
"accounts/fireworks/models/glm-4p7": {

packages/types/src/providers/sambanova.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ export const sambaNovaModels = {
6666
contextWindow: 1_000_000,
6767
supportsImages: false,
6868
supportsPromptCache: true,
69-
inputPrice: 12,
70-
outputPrice: 24,
71-
cacheWritesPrice: 0,
72-
cacheReadsPrice: 1,
69+
inputPrice: 1.74,
70+
outputPrice: 3.48,
71+
cacheWritesPrice: 1.74,
72+
cacheReadsPrice: 0.145,
7373
description: "DeepSeek V4 Pro",
7474
},
7575
"deepseek-ai/DeepSeek-V4-Flash": {
7676
maxTokens: 384_000,
7777
contextWindow: 1_000_000,
7878
supportsImages: false,
7979
supportsPromptCache: true,
80-
inputPrice: 0.2,
81-
outputPrice: 1,
82-
cacheWritesPrice: 0,
83-
cacheReadsPrice: 1,
80+
inputPrice: 0.14,
81+
outputPrice: 0.28,
82+
cacheWritesPrice: 0.14,
83+
cacheReadsPrice: 0.028,
8484
description: "DeepSeek V4 Flash",
8585
},
8686
"Llama-4-Maverick-17B-128E-Instruct": {

src/api/providers/__tests__/fireworks.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ describe("FireworksHandler", () => {
259259
contextWindow: 1_000_000,
260260
supportsImages: false,
261261
supportsPromptCache: true,
262-
inputPrice: 12,
263-
outputPrice: 24,
264-
cacheWritesPrice: 0,
265-
cacheReadsPrice: 1,
262+
inputPrice: 1.74,
263+
outputPrice: 3.48,
264+
cacheWritesPrice: 1.74,
265+
cacheReadsPrice: 0.145,
266266
description: expect.stringContaining("DeepSeek V4 Pro"),
267267
}),
268268
)
@@ -282,10 +282,10 @@ describe("FireworksHandler", () => {
282282
contextWindow: 1_000_000,
283283
supportsImages: false,
284284
supportsPromptCache: true,
285-
inputPrice: 0.2,
286-
outputPrice: 1,
287-
cacheWritesPrice: 0,
288-
cacheReadsPrice: 1,
285+
inputPrice: 0.14,
286+
outputPrice: 0.28,
287+
cacheWritesPrice: 0.14,
288+
cacheReadsPrice: 0.028,
289289
description: expect.stringContaining("DeepSeek V4 Flash"),
290290
}),
291291
)

0 commit comments

Comments
 (0)