Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(models): add new Gemini models (#13750)

Hassieb Pakzad07d0fe0bff46
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.ts
index a6935a24d1..33f0fdb317 100644
--- a/packages/shared/src/server/llm/types.ts
+++ b/packages/shared/src/server/llm/types.ts
@@ -456,7 +456,9 @@ export const anthropicModels = [
export const vertexAIModels = [
"gemini-2.5-flash",
"gemini-2.5-pro",
+ "gemini-3.5-flash",
"gemini-3.1-pro-preview",
+ "gemini-3.1-flash-lite",
"gemini-3.1-flash-lite-preview",
"gemini-3-pro-preview",
"gemini-3-flash-preview",
@@ -477,7 +479,9 @@ export const vertexAIModels = [
export const googleAIStudioModels = [
"gemini-2.5-flash",
"gemini-2.5-pro",
+ "gemini-3.5-flash",
"gemini-3.1-pro-preview",
+ "gemini-3.1-flash-lite",
"gemini-3.1-flash-lite-preview",
"gemini-3-pro-preview",
"gemini-3-flash-preview",
diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.json
index fe93c04fa7..594d01388e 100644
--- a/worker/src/constants/default-model-prices.json
+++ b/worker/src/constants/default-model-prices.json
@@ -4004,6 +4004,39 @@
}
]
},
+ {
+ "id": "6ed696e7-5f3a-4113-a233-019155fb3ff0",
+ "modelName": "gemini-3.5-flash",
+ "matchPattern": "(?i)^(google(ai)?\/)?(gemini-3.5-flash)$",
+ "createdAt": "2026-05-20T00:00:00.000Z",
+ "updatedAt": "2026-05-20T00:00:00.000Z",
+ "pricingTiers": [
+ {
+ "id": "6ed696e7-5f3a-4113-a233-019155fb3ff0_tier_default",
+ "name": "Standard",
+ "isDefault": true,
+ "priority": 0,
+ "conditions": [],
+ "prices": {
+ "input": 1.5e-6,
+ "input_modality_1": 1.5e-6,
+ "input_text": 1.5e-6,
+ "prompt_token_count": 1.5e-6,
+ "promptTokenCount": 1.5e-6,
+ "input_cached_tokens": 0.15e-6,
+ "cached_content_token_count": 0.15e-6,
+ "output": 9e-6,
+ "output_text": 9e-6,
+ "output_modality_1": 9e-6,
+ "candidates_token_count": 9e-6,
+ "candidatesTokenCount": 9e-6,
+ "thoughtsTokenCount": 9e-6,
+ "thoughts_token_count": 9e-6,
+ "output_reasoning": 9e-6
+ }
+ }
+ ]
+ },
{
"id": "cmjfoeykl000004l8ffzra8c7",
"modelName": "gemini-3-flash-preview",
@@ -4037,6 +4070,40 @@
}
]
},
+ {
+ "id": "79f4d62c-22fb-4ec3-82e1-6e56cdd5e23c",
+ "modelName": "gemini-3.1-flash-lite",
+ "matchPattern": "(?i)^(google(ai)?\/)?(gemini-3.1-flash-lite)$",
+ "createdAt": "2026-05-20T00:00:00.000Z",
+ "updatedAt": "2026-05-20T00:00:00.000Z",
+ "pricingTiers": [
+ {
+ "id": "79f4d62c-22fb-4ec3-82e1-6e56cdd5e23c_tier_default",
+ "name": "Standard",
+ "isDefault": true,
+ "priority": 0,
+ "conditions": [],
+ "prices": {
+ "input": 0.25e-6,
+ "input_modality_1": 0.25e-6,
+ "input_text": 0.25e-6,
+ "prompt_token_count": 0.25e-6,
+ "promptTokenCount": 0.25e-6,
+ "input_cached_tokens": 0.025e-6,
+ "cached_content_token_count": 0.025e-6,
+ "output": 1.5e-6,
+ "output_text": 1.5e-6,
+ "output_modality_1": 1.5e-6,
+ "candidates_token_count": 1.5e-6,
+ "candidatesTokenCount": 1.5e-6,
+ "thoughtsTokenCount": 1.5e-6,
+ "thoughts_token_count": 1.5e-6,
+ "output_reasoning": 1.5e-6,
+ "input_audio_tokens": 0.5e-6
+ }
+ }
+ ]
+ },
{
"id": "0707bef8-10c8-46e2-a871-0436f05f0b92",
"modelName": "gemini-3.1-flash-lite-preview",