@@ -10,33 +10,45 @@ const modelPricing: ModelPricingMap = {
1010 // OpenAI Models
1111 'gpt-4o' : {
1212 input : 2.5 ,
13- cachedInput : 1.25 , // 50% discount for cached input
13+ cachedInput : 1.25 ,
1414 output : 10.0 ,
15- updatedAt : '2025-03-21 ' ,
15+ updatedAt : '2025-06-17 ' ,
1616 } ,
1717 o1 : {
1818 input : 15.0 ,
19- cachedInput : 7.5 , // 50% discount for cached input
19+ cachedInput : 7.5 ,
2020 output : 60 ,
21- updatedAt : '2025-04-16 ' ,
21+ updatedAt : '2025-06-17 ' ,
2222 } ,
2323 o3 : {
24- input : 10 ,
25- cachedInput : 2 .5,
26- output : 40 ,
27- updatedAt : '2025-04-16 ' ,
24+ input : 2 ,
25+ cachedInput : 0 .5,
26+ output : 8 ,
27+ updatedAt : '2025-06-17 ' ,
2828 } ,
2929 'o4-mini' : {
3030 input : 1.1 ,
3131 cachedInput : 0.275 ,
3232 output : 4.4 ,
33- updatedAt : '2025-04-16 ' ,
33+ updatedAt : '2025-06-17 ' ,
3434 } ,
3535 'gpt-4.1' : {
3636 input : 2.0 ,
3737 cachedInput : 0.5 ,
3838 output : 8.0 ,
39- updatedAt : '2025-05-13' ,
39+ updatedAt : '2025-06-17' ,
40+ } ,
41+ 'gpt-4.1-nano' : {
42+ input : 0.1 ,
43+ cachedInput : 0.025 ,
44+ output : 0.4 ,
45+ updatedAt : '2025-06-17' ,
46+ } ,
47+ 'gpt-4.1-mini' : {
48+ input : 0.4 ,
49+ cachedInput : 0.1 ,
50+ output : 1.6 ,
51+ updatedAt : '2025-06-17' ,
4052 } ,
4153
4254 // Azure OpenAI Models (same pricing as OpenAI)
@@ -72,43 +84,43 @@ const modelPricing: ModelPricingMap = {
7284 } ,
7385
7486 // Anthropic Models
75- 'claude-3-5-sonnet-20240620 ' : {
87+ 'claude-3-5-sonnet-latest ' : {
7688 input : 3.0 ,
7789 cachedInput : 1.5 ,
7890 output : 15.0 ,
79- updatedAt : '2024 -06-20 ' ,
91+ updatedAt : '2025 -06-17 ' ,
8092 } ,
81- 'claude-3-7-sonnet-20250219 ' : {
93+ 'claude-3-7-sonnet-latest ' : {
8294 input : 3.0 ,
8395 cachedInput : 1.5 ,
8496 output : 15.0 ,
85- updatedAt : '2025-03-21 ' ,
97+ updatedAt : '2025-06-17 ' ,
8698 } ,
87- 'claude-sonnet-4-20250514 ' : {
99+ 'claude-sonnet-4-0 ' : {
88100 input : 3.0 ,
89101 cachedInput : 1.5 ,
90102 output : 15.0 ,
91- updatedAt : '2025-05-22 ' ,
103+ updatedAt : '2025-06-17 ' ,
92104 } ,
93- 'claude-opus-4-20250514 ' : {
105+ 'claude-opus-4-0 ' : {
94106 input : 15.0 ,
95107 cachedInput : 7.5 ,
96108 output : 75.0 ,
97- updatedAt : '2025-05-22 ' ,
109+ updatedAt : '2025-06-17 ' ,
98110 } ,
99111
100112 // Google Models
101- 'gemini-2.5-pro-exp-03-25 ' : {
113+ 'gemini-2.5-pro' : {
102114 input : 0.15 ,
103115 cachedInput : 0.075 ,
104116 output : 0.6 ,
105- updatedAt : '2025-03-25 ' ,
117+ updatedAt : '2025-06-17 ' ,
106118 } ,
107- 'gemini-2.5-flash-preview-04-17 ' : {
119+ 'gemini-2.5-flash' : {
108120 input : 0.15 ,
109121 cachedInput : 0.075 ,
110122 output : 0.6 ,
111- updatedAt : '2025-04-19 ' ,
123+ updatedAt : '2025-06-17 ' ,
112124 } ,
113125
114126 // Deepseek Models
@@ -152,19 +164,19 @@ const modelPricing: ModelPricingMap = {
152164 input : 0.4 ,
153165 cachedInput : 0.2 ,
154166 output : 0.6 ,
155- updatedAt : '2025-04-06 ' ,
167+ updatedAt : '2025-06-17 ' ,
156168 } ,
157169 'groq/deepseek-r1-distill-llama-70b' : {
158170 input : 0.75 ,
159171 cachedInput : 0.38 ,
160172 output : 0.99 ,
161- updatedAt : '2025-03-21 ' ,
173+ updatedAt : '2025-06-17 ' ,
162174 } ,
163- 'groq/qwen-2.5 -32b' : {
164- input : 0.79 ,
165- cachedInput : 0.4 ,
166- output : 0.79 ,
167- updatedAt : '2025-03-21 ' ,
175+ 'groq/qwen-qwq -32b' : {
176+ input : 0.29 ,
177+ cachedInput : 0.29 ,
178+ output : 0.39 ,
179+ updatedAt : '2025-06-17 ' ,
168180 } ,
169181}
170182
0 commit comments