Skip to content

Commit fa2d8c4

Browse files
feat(cost): add Gemini 3.1 Pro Preview model support (#5590)
Add Google Gemini 3.1 Pro Preview (released Feb 19, 2026) with support for Google AI Studio, Vertex AI, OpenRouter, and Helicone providers. Pricing: $2/$12 per MTok (≤200K), $4/$18 per MTok (>200K) Context: 1M tokens, Max output: 64K tokens API model name: gemini-3.1-pro-preview Includes updated registry snapshots.
1 parent 3dc26c4 commit fa2d8c4

File tree

6 files changed

+398
-7
lines changed

6 files changed

+398
-7
lines changed

packages/__tests__/cost/__snapshots__/registrySnapshots.test.ts.snap

Lines changed: 176 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2752,6 +2752,101 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
27522752
],
27532753
},
27542754
},
2755+
"google/gemini-3.1-pro": {
2756+
"gemini-3.1-pro-preview:google-ai-studio": {
2757+
"context": 1048576,
2758+
"crossRegion": false,
2759+
"maxTokens": 65536,
2760+
"modelId": "gemini-3.1-pro-preview",
2761+
"parameters": [
2762+
"include_reasoning",
2763+
"max_tokens",
2764+
"reasoning",
2765+
"response_format",
2766+
"seed",
2767+
"stop",
2768+
"structured_outputs",
2769+
"temperature",
2770+
"tool_choice",
2771+
"tools",
2772+
"top_p",
2773+
],
2774+
"provider": "google-ai-studio",
2775+
"ptbEnabled": true,
2776+
"regions": [
2777+
"*",
2778+
],
2779+
},
2780+
"gemini-3.1-pro-preview:helicone": {
2781+
"context": 1048576,
2782+
"crossRegion": false,
2783+
"maxTokens": 65536,
2784+
"modelId": "pa/gemini-3.1-pro-preview",
2785+
"parameters": [
2786+
"include_reasoning",
2787+
"max_tokens",
2788+
"reasoning",
2789+
"response_format",
2790+
"seed",
2791+
"stop",
2792+
"structured_outputs",
2793+
"temperature",
2794+
"tool_choice",
2795+
"tools",
2796+
"top_p",
2797+
],
2798+
"provider": "helicone",
2799+
"ptbEnabled": true,
2800+
"regions": [
2801+
"*",
2802+
],
2803+
},
2804+
"gemini-3.1-pro-preview:openrouter": {
2805+
"context": 1048576,
2806+
"crossRegion": false,
2807+
"maxTokens": 65536,
2808+
"modelId": "google/gemini-3.1-pro-preview",
2809+
"parameters": [
2810+
"max_tokens",
2811+
"response_format",
2812+
"seed",
2813+
"stop",
2814+
"temperature",
2815+
"tool_choice",
2816+
"tools",
2817+
"top_p",
2818+
],
2819+
"provider": "openrouter",
2820+
"ptbEnabled": true,
2821+
"regions": [
2822+
"*",
2823+
],
2824+
},
2825+
"gemini-3.1-pro-preview:vertex": {
2826+
"context": 1048576,
2827+
"crossRegion": true,
2828+
"maxTokens": 65536,
2829+
"modelId": "gemini-3.1-pro-preview",
2830+
"parameters": [
2831+
"include_reasoning",
2832+
"max_tokens",
2833+
"reasoning",
2834+
"response_format",
2835+
"seed",
2836+
"stop",
2837+
"structured_outputs",
2838+
"temperature",
2839+
"tool_choice",
2840+
"tools",
2841+
"top_p",
2842+
],
2843+
"provider": "vertex",
2844+
"ptbEnabled": true,
2845+
"regions": [
2846+
"global",
2847+
],
2848+
},
2849+
},
27552850
"google/gemma": {
27562851
"gemma2-9b-it:chutes": {
27572852
"context": 8192,
@@ -7129,6 +7224,12 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
71297224
"openrouter",
71307225
"vertex",
71317226
],
7227+
"google/gemini-3.1-pro": [
7228+
"google-ai-studio",
7229+
"helicone",
7230+
"openrouter",
7231+
"vertex",
7232+
],
71327233
"google/gemma": [
71337234
"chutes",
71347235
"openrouter",
@@ -8798,6 +8899,64 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
87988899
},
87998900
],
88008901
},
8902+
"google/gemini-3.1-pro": {
8903+
"google-ai-studio": [
8904+
{
8905+
"cacheMultipliers": {
8906+
"cachedInput": 0.1,
8907+
},
8908+
"cacheStoragePerHour": 0.0000045,
8909+
"input": 0.000002,
8910+
"output": 0.000012,
8911+
"threshold": 0,
8912+
},
8913+
{
8914+
"input": 0.000004,
8915+
"output": 0.000018,
8916+
"threshold": 200000,
8917+
},
8918+
],
8919+
"helicone": [
8920+
{
8921+
"input": 0.000002,
8922+
"output": 0.000012,
8923+
"threshold": 0,
8924+
},
8925+
{
8926+
"input": 0.000004,
8927+
"output": 0.000018,
8928+
"threshold": 200000,
8929+
},
8930+
],
8931+
"openrouter": [
8932+
{
8933+
"input": 0.00000211,
8934+
"output": 0.00001266,
8935+
"threshold": 0,
8936+
},
8937+
{
8938+
"input": 0.00000422,
8939+
"output": 0.00001899,
8940+
"threshold": 200000,
8941+
},
8942+
],
8943+
"vertex": [
8944+
{
8945+
"cacheMultipliers": {
8946+
"cachedInput": 0.1,
8947+
},
8948+
"cacheStoragePerHour": 0.0000045,
8949+
"input": 0.000002,
8950+
"output": 0.000012,
8951+
"threshold": 0,
8952+
},
8953+
{
8954+
"input": 0.000004,
8955+
"output": 0.000018,
8956+
"threshold": 200000,
8957+
},
8958+
],
8959+
},
88018960
"google/gemma": {
88028961
"chutes": [
88038962
{
@@ -9715,6 +9874,15 @@ exports[`Registry Snapshots verify registry state 1`] = `
97159874
"vertex",
97169875
],
97179876
},
9877+
{
9878+
"model": "gemini-3.1-pro-preview",
9879+
"providers": [
9880+
"google-ai-studio",
9881+
"helicone",
9882+
"openrouter",
9883+
"vertex",
9884+
],
9885+
},
97189886
{
97199887
"model": "gemma-3-12b-it",
97209888
"providers": [
@@ -10336,15 +10504,15 @@ exports[`Registry Snapshots verify registry state 1`] = `
1033610504
"provider": "fireworks",
1033710505
},
1033810506
{
10339-
"modelCount": 7,
10507+
"modelCount": 8,
1034010508
"provider": "google-ai-studio",
1034110509
},
1034210510
{
1034310511
"modelCount": 12,
1034410512
"provider": "groq",
1034510513
},
1034610514
{
10347-
"modelCount": 50,
10515+
"modelCount": 51,
1034810516
"provider": "helicone",
1034910517
},
1035010518
{
@@ -10364,15 +10532,15 @@ exports[`Registry Snapshots verify registry state 1`] = `
1036410532
"provider": "openai",
1036510533
},
1036610534
{
10367-
"modelCount": 68,
10535+
"modelCount": 69,
1036810536
"provider": "openrouter",
1036910537
},
1037010538
{
1037110539
"modelCount": 5,
1037210540
"provider": "perplexity",
1037310541
},
1037410542
{
10375-
"modelCount": 21,
10543+
"modelCount": 22,
1037610544
"provider": "vertex",
1037710545
},
1037810546
{
@@ -10411,6 +10579,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
1041110579
"gemini-3-flash-preview",
1041210580
"gemini-3-pro-image-preview",
1041310581
"gemini-3-pro-preview",
10582+
"gemini-3.1-pro-preview",
1041410583
"gemma-3-12b-it",
1041510584
"gemma2-9b-it",
1041610585
"glm-4.6",
@@ -10495,9 +10664,9 @@ exports[`Registry Snapshots verify registry state 1`] = `
1049510664
"claude-3.5-haiku:anthropic:*",
1049610665
],
1049710666
"totalArchivedConfigs": 0,
10498-
"totalEndpoints": 314,
10499-
"totalModelProviderConfigs": 314,
10500-
"totalModelsWithPtb": 104,
10667+
"totalEndpoints": 318,
10668+
"totalModelProviderConfigs": 318,
10669+
"totalModelsWithPtb": 105,
1050110670
"totalProviders": 21,
1050210671
}
1050310672
`;

0 commit comments

Comments
 (0)