Skip to content

Commit 6675722

Browse files
committed
Fixes #4836: Update Gemini 2.5 Flash pricing to correct values
- Updated input price from /bin/sh.15/M to /bin/sh.30/M - Updated output price from /bin/sh.60/M to .50/M - Applied fixes to both Gemini and Vertex providers - Affects gemini-2.5-flash-preview-04-17 and gemini-2.5-flash-preview-05-20 models
1 parent 2e2f83b commit 6675722

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

packages/types/src/providers/gemini.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const geminiModels = {
1111
contextWindow: 1_048_576,
1212
supportsImages: true,
1313
supportsPromptCache: false,
14-
inputPrice: 0.15,
14+
inputPrice: 0.3,
1515
outputPrice: 3.5,
1616
maxThinkingTokens: 24_576,
1717
supportsReasoningBudget: true,
@@ -22,15 +22,15 @@ export const geminiModels = {
2222
contextWindow: 1_048_576,
2323
supportsImages: true,
2424
supportsPromptCache: false,
25-
inputPrice: 0.15,
26-
outputPrice: 0.6,
25+
inputPrice: 0.3,
26+
outputPrice: 2.5,
2727
},
2828
"gemini-2.5-flash-preview-05-20:thinking": {
2929
maxTokens: 65_535,
3030
contextWindow: 1_048_576,
3131
supportsImages: true,
3232
supportsPromptCache: true,
33-
inputPrice: 0.15,
33+
inputPrice: 0.3,
3434
outputPrice: 3.5,
3535
cacheReadsPrice: 0.0375,
3636
cacheWritesPrice: 1.0,
@@ -43,8 +43,8 @@ export const geminiModels = {
4343
contextWindow: 1_048_576,
4444
supportsImages: true,
4545
supportsPromptCache: true,
46-
inputPrice: 0.15,
47-
outputPrice: 0.6,
46+
inputPrice: 0.3,
47+
outputPrice: 2.5,
4848
cacheReadsPrice: 0.0375,
4949
cacheWritesPrice: 1.0,
5050
},

packages/types/src/providers/vertex.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const vertexModels = {
1111
contextWindow: 1_048_576,
1212
supportsImages: true,
1313
supportsPromptCache: true,
14-
inputPrice: 0.15,
14+
inputPrice: 0.3,
1515
outputPrice: 3.5,
1616
maxThinkingTokens: 24_576,
1717
supportsReasoningBudget: true,
@@ -22,15 +22,15 @@ export const vertexModels = {
2222
contextWindow: 1_048_576,
2323
supportsImages: true,
2424
supportsPromptCache: true,
25-
inputPrice: 0.15,
26-
outputPrice: 0.6,
25+
inputPrice: 0.3,
26+
outputPrice: 2.5,
2727
},
2828
"gemini-2.5-flash-preview-04-17:thinking": {
2929
maxTokens: 65_535,
3030
contextWindow: 1_048_576,
3131
supportsImages: true,
3232
supportsPromptCache: false,
33-
inputPrice: 0.15,
33+
inputPrice: 0.3,
3434
outputPrice: 3.5,
3535
maxThinkingTokens: 24_576,
3636
supportsReasoningBudget: true,
@@ -41,8 +41,8 @@ export const vertexModels = {
4141
contextWindow: 1_048_576,
4242
supportsImages: true,
4343
supportsPromptCache: false,
44-
inputPrice: 0.15,
45-
outputPrice: 0.6,
44+
inputPrice: 0.3,
45+
outputPrice: 2.5,
4646
},
4747
"gemini-2.5-pro-preview-03-25": {
4848
maxTokens: 65_535,

0 commit comments

Comments
 (0)