From aea2bd4a1328cb841f8e86105852c4fc8ece7ba0 Mon Sep 17 00:00:00 2001 From: Niklas Volcz Date: Wed, 4 Mar 2026 17:13:55 +0100 Subject: [PATCH] Add Gemini 3.1 Pro customtools model to Vertex AI provider Inspired by #11608. --- packages/types/src/providers/vertex.ts | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/packages/types/src/providers/vertex.ts b/packages/types/src/providers/vertex.ts index f82341ace1d..033c6b2e0da 100644 --- a/packages/types/src/providers/vertex.ts +++ b/packages/types/src/providers/vertex.ts @@ -35,6 +35,35 @@ export const vertexModels = { }, ], }, + "gemini-3.1-pro-preview-customtools": { + maxTokens: 65_536, + contextWindow: 1_048_576, + supportsImages: true, + supportsPromptCache: true, + supportsReasoningEffort: ["low", "medium", "high"], + reasoningEffort: "low", + + supportsTemperature: true, + defaultTemperature: 1, + inputPrice: 4.0, + outputPrice: 18.0, + cacheReadsPrice: 0.4, + cacheWritesPrice: 4.5, + tiers: [ + { + contextWindow: 200_000, + inputPrice: 2.0, + outputPrice: 12.0, + cacheReadsPrice: 0.2, + }, + { + contextWindow: Infinity, + inputPrice: 4.0, + outputPrice: 18.0, + cacheReadsPrice: 0.4, + }, + ], + }, "gemini-3-pro-preview": { maxTokens: 65_536, contextWindow: 1_048_576,