fix: correct DeepSeek V4 model pricing to accurate USD values

This commit is contained in:
RISC-1145 2026-04-24 19:51:15 +08:00
parent 28c6d27707
commit aec3f1184c
5 changed files with 40 additions and 40 deletions

View file

@ -88,10 +88,10 @@ export const basetenModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 12,
outputPrice: 24,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 1.74,
outputPrice: 3.48,
cacheWritesPrice: 1.74,
cacheReadsPrice: 0.145,
description: "DeepSeek V4 Pro",
},
"deepseek-ai/DeepSeek-V4-Flash": {
@ -99,10 +99,10 @@ export const basetenModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 0.2,
outputPrice: 1,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 0.14,
outputPrice: 0.28,
cacheWritesPrice: 0.14,
cacheReadsPrice: 0.028,
description: "DeepSeek V4 Flash",
},
"openai/gpt-oss-120b": {

View file

@ -38,10 +38,10 @@ export const deepSeekModels = {
supportsImages: false,
supportsPromptCache: true,
preserveReasoning: true,
inputPrice: 12,
outputPrice: 24,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 1.74, // $1.74 per million tokens (cache miss)
outputPrice: 3.48, // $3.48 per million tokens
cacheWritesPrice: 1.74, // $1.74 per million tokens (cache miss)
cacheReadsPrice: 0.145, // $0.145 per million tokens (cache hit)
description: `DeepSeek V4 Pro`,
},
"deepseek-v4-flash": {
@ -50,10 +50,10 @@ export const deepSeekModels = {
supportsImages: false,
supportsPromptCache: true,
preserveReasoning: true,
inputPrice: 0.2,
outputPrice: 1,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 0.14, // $0.14 per million tokens (cache miss)
outputPrice: 0.28, // $0.28 per million tokens
cacheWritesPrice: 0.14, // $0.14 per million tokens (cache miss)
cacheReadsPrice: 0.028, // $0.028 per million tokens (cache hit)
description: `DeepSeek V4 Flash`,
},
} as const satisfies Record<string, ModelInfo>

View file

@ -207,10 +207,10 @@ export const fireworksModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 12,
outputPrice: 24,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 1.74,
outputPrice: 3.48,
cacheWritesPrice: 1.74,
cacheReadsPrice: 0.145,
description: "DeepSeek V4 Pro",
},
"accounts/fireworks/models/deepseek-v4-flash": {
@ -218,10 +218,10 @@ export const fireworksModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 0.2,
outputPrice: 1,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 0.14,
outputPrice: 0.28,
cacheWritesPrice: 0.14,
cacheReadsPrice: 0.028,
description: "DeepSeek V4 Flash",
},
"accounts/fireworks/models/glm-4p7": {

View file

@ -66,10 +66,10 @@ export const sambaNovaModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 12,
outputPrice: 24,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 1.74,
outputPrice: 3.48,
cacheWritesPrice: 1.74,
cacheReadsPrice: 0.145,
description: "DeepSeek V4 Pro",
},
"deepseek-ai/DeepSeek-V4-Flash": {
@ -77,10 +77,10 @@ export const sambaNovaModels = {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 0.2,
outputPrice: 1,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 0.14,
outputPrice: 0.28,
cacheWritesPrice: 0.14,
cacheReadsPrice: 0.028,
description: "DeepSeek V4 Flash",
},
"Llama-4-Maverick-17B-128E-Instruct": {

View file

@ -259,10 +259,10 @@ describe("FireworksHandler", () => {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 12,
outputPrice: 24,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 1.74,
outputPrice: 3.48,
cacheWritesPrice: 1.74,
cacheReadsPrice: 0.145,
description: expect.stringContaining("DeepSeek V4 Pro"),
}),
)
@ -282,10 +282,10 @@ describe("FireworksHandler", () => {
contextWindow: 1_000_000,
supportsImages: false,
supportsPromptCache: true,
inputPrice: 0.2,
outputPrice: 1,
cacheWritesPrice: 0,
cacheReadsPrice: 1,
inputPrice: 0.14,
outputPrice: 0.28,
cacheWritesPrice: 0.14,
cacheReadsPrice: 0.028,
description: expect.stringContaining("DeepSeek V4 Flash"),
}),
)