Skip to content

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

feat(cost-tracking): add gemini-3-flash-preview (#11255)

Hassieb Pakzad8df81dfdb55e
diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.ts
index 1400c62e93..cafe777783 100644
--- a/packages/shared/src/server/llm/types.ts
+++ b/packages/shared/src/server/llm/types.ts
@@ -433,6 +433,7 @@ export const vertexAIModels = [
"gemini-2.5-flash",
"gemini-2.5-pro",
"gemini-3-pro-preview",
+ "gemini-3-flash-preview",
"gemini-2.5-flash-preview-09-2025",
"gemini-2.5-flash-lite",
"gemini-2.5-flash-lite-preview-09-2025",
@@ -450,6 +451,7 @@ export const googleAIStudioModels = [
"gemini-2.5-flash",
"gemini-2.5-pro",
"gemini-3-pro-preview",
+ "gemini-3-flash-preview",
"gemini-2.5-flash-lite",
"gemini-2.5-flash-lite-preview-09-2025",
"gemini-2.0-flash",
diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.json
index 05dda7fee6..3b150a16d9 100644
--- a/worker/src/constants/default-model-prices.json
+++ b/worker/src/constants/default-model-prices.json
@@ -3473,5 +3473,36 @@
}
}
]
+ },
+ {
+ "id": "cmjfoeykl000004l8ffzra8c7",
+ "modelName": "gemini-3-flash-preview",
+ "matchPattern": "(?i)^(google\/)?(gemini-3-flash-preview)$",
+ "createdAt": "2025-12-21T12:01:42.282Z",
+ "updatedAt": "2025-12-21T12:01:42.282Z",
+ "pricingTiers": [
+ {
+ "id": "cmjfoeykl000004l8ffzra8c7_tier_default",
+ "name": "Standard",
+ "isDefault": true,
+ "priority": 0,
+ "conditions": [],
+ "prices": {
+ "input": 0.5e-6,
+ "input_modality_1": 0.5e-6,
+ "prompt_token_count": 0.5e-6,
+ "promptTokenCount": 0.5e-6,
+ "input_cached_tokens": 0.05e-6,
+ "cached_content_token_count": 0.05e-6,
+ "output": 3e-6,
+ "output_modality_1": 3e-6,
+ "candidates_token_count": 3e-6,
+ "candidatesTokenCount": 3e-6,
+ "thoughtsTokenCount": 3e-6,
+ "thoughts_token_count": 3e-6,
+ "output_reasoning": 3e-6
+ }
+ }
+ ]
}
]