Skip to content

Commit 96ff9fc

Browse files
authored
Fix pricing for Gemini 2.5 Flash (Thinking) (#2773)
* Fix pricing for Gemini 2.5 Flash (Thinking) * Looks like it's actually $3.50 * We aren't honoring custom thinking token budgets on Vertex yet
1 parent f6e4e35 commit 96ff9fc

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

src/shared/api.ts

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -477,32 +477,13 @@ export const openRouterDefaultModelInfo: ModelInfo = {
477477
export type VertexModelId = keyof typeof vertexModels
478478
export const vertexDefaultModelId: VertexModelId = "claude-3-7-sonnet@20250219"
479479
export const vertexModels = {
480-
"gemini-2.0-flash-001": {
481-
maxTokens: 8192,
482-
contextWindow: 1_048_576,
483-
supportsImages: true,
484-
supportsPromptCache: false,
485-
inputPrice: 0.15,
486-
outputPrice: 0.6,
487-
},
488-
"gemini-2.5-flash-preview-04-17:thinking": {
489-
maxTokens: 65_535,
490-
contextWindow: 1_048_576,
491-
supportsImages: true,
492-
supportsPromptCache: false,
493-
inputPrice: 0.15,
494-
outputPrice: 0.6,
495-
thinking: true,
496-
maxThinkingTokens: 24_576,
497-
},
498480
"gemini-2.5-flash-preview-04-17": {
499481
maxTokens: 65_535,
500482
contextWindow: 1_048_576,
501483
supportsImages: true,
502484
supportsPromptCache: false,
503485
inputPrice: 0.15,
504486
outputPrice: 0.6,
505-
thinking: false,
506487
},
507488
"gemini-2.5-pro-preview-03-25": {
508489
maxTokens: 65_535,
@@ -528,6 +509,14 @@ export const vertexModels = {
528509
inputPrice: 0,
529510
outputPrice: 0,
530511
},
512+
"gemini-2.0-flash-001": {
513+
maxTokens: 8192,
514+
contextWindow: 1_048_576,
515+
supportsImages: true,
516+
supportsPromptCache: false,
517+
inputPrice: 0.15,
518+
outputPrice: 0.6,
519+
},
531520
"gemini-2.0-flash-lite-001": {
532521
maxTokens: 8192,
533522
contextWindow: 1_048_576,
@@ -657,7 +646,7 @@ export const geminiModels = {
657646
supportsImages: true,
658647
supportsPromptCache: false,
659648
inputPrice: 0.15,
660-
outputPrice: 0.6,
649+
outputPrice: 3.5,
661650
thinking: true,
662651
maxThinkingTokens: 24_576,
663652
},

0 commit comments

Comments
 (0)