Skip to content

Commit 763734a

Browse files
fix: correct Gemini 3 pricing for Flash and Pro models (#10487)
Co-authored-by: Roo Code <roomote@roocode.com>
1 parent 6e00997 commit 763734a

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

packages/types/src/providers/gemini.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ export const geminiModels = {
1818
defaultTemperature: 1,
1919
inputPrice: 4.0,
2020
outputPrice: 18.0,
21+
cacheReadsPrice: 0.4,
2122
tiers: [
2223
{
2324
contextWindow: 200_000,
2425
inputPrice: 2.0,
2526
outputPrice: 12.0,
27+
cacheReadsPrice: 0.2,
2628
},
2729
{
2830
contextWindow: Infinity,
2931
inputPrice: 4.0,
3032
outputPrice: 18.0,
33+
cacheReadsPrice: 0.4,
3134
},
3235
],
3336
},
@@ -41,10 +44,9 @@ export const geminiModels = {
4144

4245
supportsTemperature: true,
4346
defaultTemperature: 1,
44-
inputPrice: 0.3,
45-
outputPrice: 2.5,
46-
cacheReadsPrice: 0.075,
47-
cacheWritesPrice: 1.0,
47+
inputPrice: 0.5,
48+
outputPrice: 3.0,
49+
cacheReadsPrice: 0.05,
4850
},
4951
// 2.5 Pro models
5052
"gemini-2.5-pro": {

packages/types/src/providers/vertex.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@ export const vertexModels = {
1818
defaultTemperature: 1,
1919
inputPrice: 4.0,
2020
outputPrice: 18.0,
21+
cacheReadsPrice: 0.4,
2122
tiers: [
2223
{
2324
contextWindow: 200_000,
2425
inputPrice: 2.0,
2526
outputPrice: 12.0,
27+
cacheReadsPrice: 0.2,
2628
},
2729
{
2830
contextWindow: Infinity,
2931
inputPrice: 4.0,
3032
outputPrice: 18.0,
33+
cacheReadsPrice: 0.4,
3134
},
3235
],
3336
},
@@ -41,10 +44,9 @@ export const vertexModels = {
4144

4245
supportsTemperature: true,
4346
defaultTemperature: 1,
44-
inputPrice: 0.3,
45-
outputPrice: 2.5,
46-
cacheReadsPrice: 0.075,
47-
cacheWritesPrice: 1.0,
47+
inputPrice: 0.5,
48+
outputPrice: 3.0,
49+
cacheReadsPrice: 0.05,
4850
},
4951
"gemini-2.5-flash-preview-05-20:thinking": {
5052
maxTokens: 65_535,

0 commit comments

Comments
 (0)