Skip to content

Commit 678f6f2

Browse files
committed
Update more OpenAI cache prices
1 parent 7fe8d12 commit 678f6f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/shared/api.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ export const openAiNativeModels = {
781781
supportsPromptCache: true,
782782
inputPrice: 1.1,
783783
outputPrice: 4.4,
784+
cacheReadsPrice: 0.55,
784785
reasoningEffort: "medium",
785786
},
786787
"o3-mini-high": {
@@ -790,6 +791,7 @@ export const openAiNativeModels = {
790791
supportsPromptCache: true,
791792
inputPrice: 1.1,
792793
outputPrice: 4.4,
794+
cacheReadsPrice: 0.55,
793795
reasoningEffort: "high",
794796
},
795797
"o3-mini-low": {
@@ -799,6 +801,7 @@ export const openAiNativeModels = {
799801
supportsPromptCache: true,
800802
inputPrice: 1.1,
801803
outputPrice: 4.4,
804+
cacheReadsPrice: 0.55,
802805
reasoningEffort: "low",
803806
},
804807
o1: {
@@ -808,6 +811,7 @@ export const openAiNativeModels = {
808811
supportsPromptCache: true,
809812
inputPrice: 15,
810813
outputPrice: 60,
814+
cacheReadsPrice: 7.5,
811815
},
812816
"o1-preview": {
813817
maxTokens: 32_768,
@@ -816,6 +820,7 @@ export const openAiNativeModels = {
816820
supportsPromptCache: true,
817821
inputPrice: 15,
818822
outputPrice: 60,
823+
cacheReadsPrice: 7.5,
819824
},
820825
"o1-mini": {
821826
maxTokens: 65_536,
@@ -824,6 +829,7 @@ export const openAiNativeModels = {
824829
supportsPromptCache: true,
825830
inputPrice: 1.1,
826831
outputPrice: 4.4,
832+
cacheReadsPrice: 0.55,
827833
},
828834
"gpt-4.5-preview": {
829835
maxTokens: 16_384,
@@ -832,6 +838,7 @@ export const openAiNativeModels = {
832838
supportsPromptCache: true,
833839
inputPrice: 75,
834840
outputPrice: 150,
841+
cacheReadsPrice: 37.5,
835842
},
836843
"gpt-4o": {
837844
maxTokens: 16_384,
@@ -840,6 +847,7 @@ export const openAiNativeModels = {
840847
supportsPromptCache: true,
841848
inputPrice: 2.5,
842849
outputPrice: 10,
850+
cacheReadsPrice: 1.25,
843851
},
844852
"gpt-4o-mini": {
845853
maxTokens: 16_384,
@@ -848,6 +856,7 @@ export const openAiNativeModels = {
848856
supportsPromptCache: true,
849857
inputPrice: 0.15,
850858
outputPrice: 0.6,
859+
cacheReadsPrice: 0.075,
851860
},
852861
} as const satisfies Record<string, ModelInfo>
853862

0 commit comments

Comments
 (0)