From dc12d0068d87d6165237d1f31c8d25d0643d5cdf Mon Sep 17 00:00:00 2001 From: prabhash-varma Date: Fri, 13 Nov 2026 11:08:46 +0530 Subject: [PATCH] chore: add gemini-4-hydrogen model config and pricing for Google and Vertex AI --- general/google.json | 51 +++++++++ general/vertex-ai.json | 51 +++++++++ pricing/google.json | 68 ++++++++++++ pricing/vertex-ai.json | 244 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 414 insertions(+) diff --git a/general/google.json b/general/google.json index 9f2b28055..147bdc2b9 100644 --- a/general/google.json +++ b/general/google.json @@ -2145,6 +2145,57 @@ "type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }, "removeParams": ["temperature", "top_p", "top_k"] }, + "gemini-4-hydrogen": { + "params": [ + { "key": "max_tokens", "maxValue": 65536 }, + { + "key": "response_format", + "defaultValue": null, + "options": [ + { + "value": null, + "name": "Text" + }, + { + "value": "json_object", + "name": "JSON Object", + "schema": { + "type": "object", + "properties": { + "type": { "type": "string", "value": "json_object" } + } + } + }, + { + "value": "json_schema", + "name": "JSON Schema", + "schema": { + "type": "object", + "properties": { + "type": { "type": "string", "value": "json_schema" }, + "json_schema": { "type": "object" } + } + }, + "params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] } + } + ], + "skipValues": [null], + "type": "string" + }, + { + "key": "reasoning_effort", + "defaultValue": "medium", + "options": [ + { "value": "low", "name": "Low" }, + { "value": "medium", "name": "Medium" }, + { "value": "high", "name": "High" } + ], + "type": "string" + } + ], + "type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }, + "removeParams": ["temperature", "top_p", "top_k"] + }, "gemini-3.1-flash-image-preview": { "type": { "primary": "image" diff --git a/general/vertex-ai.json b/general/vertex-ai.json index 4e9d651b2..2a91b3c08 100644 --- a/general/vertex-ai.json +++ b/general/vertex-ai.json @@ -2624,6 +2624,57 @@ "type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }, "removeParams": ["temperature", "top_p"] }, + "gemini-4-hydrogen": { + "params": [ + { "key": "max_tokens", "maxValue": 65536 }, + { + "key": "response_format", + "defaultValue": null, + "options": [ + { + "value": null, + "name": "Text" + }, + { + "value": "json_object", + "name": "JSON Object", + "schema": { + "type": "object", + "properties": { + "type": { "type": "string", "value": "json_object" } + } + } + }, + { + "value": "json_schema", + "name": "JSON Schema", + "schema": { + "type": "object", + "properties": { + "type": { "type": "string", "value": "json_schema" }, + "json_schema": { "type": "object" } + } + }, + "params": { "key": "json_schema", "defaultValue": null, "type": "json", "skipValues": [null] } + } + ], + "skipValues": [null], + "type": "string" + }, + { + "key": "reasoning_effort", + "defaultValue": "medium", + "options": [ + { "value": "low", "name": "Low" }, + { "value": "medium", "name": "Medium" }, + { "value": "high", "name": "High" } + ], + "type": "string" + } + ], + "type": { "primary": "chat", "supported": ["image", "pdf", "doc", "tools", "audio"] }, + "removeParams": ["temperature", "top_p"] + }, "gemini-3.1-pro-preview-customtools": { "params": [ { "key": "max_tokens", "maxValue": 65536 }, diff --git a/pricing/google.json b/pricing/google.json index 04e1cfae4..706119695 100644 --- a/pricing/google.json +++ b/pricing/google.json @@ -4174,5 +4174,73 @@ } } } + }, + "gemini-4-hydrogen-lte-128k": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.00015 + }, + "response_token": { + "price": 0.00075 + }, + "cache_read_input_token": { + "price": 0.0000075 + }, + "cache_write_input_token": { + "price": 0.0001875 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + } + } + }, + "batch_config": { + "request_token": { + "price": 0.000075 + }, + "response_token": { + "price": 0.000375 + } + } + } + }, + "gemini-4-hydrogen-gt-128k": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.00015 + }, + "response_token": { + "price": 0.00075 + }, + "cache_read_input_token": { + "price": 0.0000075 + }, + "cache_write_input_token": { + "price": 0.0001875 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + } + } + }, + "batch_config": { + "request_token": { + "price": 0.000075 + }, + "response_token": { + "price": 0.000375 + } + } + } } } diff --git a/pricing/vertex-ai.json b/pricing/vertex-ai.json index 41fbc2b0a..4cbb15ae6 100644 --- a/pricing/vertex-ai.json +++ b/pricing/vertex-ai.json @@ -18702,6 +18702,250 @@ } } }, + "gemini-4-hydrogen": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.00015 + }, + "response_token": { + "price": 0.00075 + }, + "cache_read_input_token": { + "price": 0.0000075 + }, + "cache_write_input_token": { + "price": 0.0001875 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + }, + "batch_config": { + "request_token": { + "price": 0.000075 + }, + "response_token": { + "price": 0.000375 + } + } + }, + "custom_pricing": { + "regions": { + "global": { + "execution_modes": { + "standard": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.00015 + }, + "cache_read_input_token": { + "price": 0.0000075 + }, + "cache_write_input_token": { + "price": 0.0001875 + }, + "response_token": { + "price": 0.00075 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + }, + "batch": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.000075 + }, + "cache_read_input_token": { + "price": 0.00000375 + }, + "cache_write_input_token": { + "price": 0.00009375 + }, + "response_token": { + "price": 0.000375 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + }, + "priority": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.00027 + }, + "cache_read_input_token": { + "price": 0.0000135 + }, + "cache_write_input_token": { + "price": 0.0003375 + }, + "response_token": { + "price": 0.00135 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + } + } + }, + "default": { + "execution_modes": { + "standard": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.000165 + }, + "cache_read_input_token": { + "price": 0.00000825 + }, + "cache_write_input_token": { + "price": 0.00020625 + }, + "response_token": { + "price": 0.000825 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + }, + "batch": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.0000825 + }, + "cache_read_input_token": { + "price": 0.000004125 + }, + "cache_write_input_token": { + "price": 0.000103125 + }, + "response_token": { + "price": 0.0004125 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + }, + "priority": { + "pricing_config": { + "pay_as_you_go": { + "request_token": { + "price": 0.000297 + }, + "cache_read_input_token": { + "price": 0.00001485 + }, + "cache_write_input_token": { + "price": 0.00037125 + }, + "response_token": { + "price": 0.001485 + }, + "additional_units": { + "web_search": { + "price": 1.4 + }, + "search": { + "price": 1.4 + }, + "enterprise_web_search": { + "price": 1.4 + }, + "maps": { + "price": 1.4 + } + } + } + } + } + } + } + } + } + }, "gemini-4": { "pricing_config": { "pay_as_you_go": {