From 01e6c06991944f746bb969c09c04c8cb68d95fab Mon Sep 17 00:00:00 2001 From: Prabhash Varma Buddharaju Date: Wed, 1 Jul 2026 11:45:31 +0530 Subject: [PATCH] Refactor pricing structure in Google and Vertex AI JSON files to replace "image" with "additional_units" for generated images pricing. Updated prices accordingly. --- pricing/google.json | 48 ++++++--------- pricing/vertex-ai.json | 134 ++++++++++++++++------------------------- 2 files changed, 71 insertions(+), 111 deletions(-) diff --git a/pricing/google.json b/pricing/google.json index 75c0604b4..aad341f86 100644 --- a/pricing/google.json +++ b/pricing/google.json @@ -2896,11 +2896,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } } @@ -2915,11 +2913,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } } @@ -2934,11 +2930,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 6 - } + "additional_units": { + "generated_images": { + "price": 6 } } } @@ -2953,11 +2947,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 6 - } + "additional_units": { + "generated_images": { + "price": 6 } } } @@ -2972,11 +2964,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 2 - } + "additional_units": { + "generated_images": { + "price": 2 } } } @@ -2991,11 +2981,9 @@ "response_token": { "price": 0 }, - "image": { - "default": { - "default": { - "price": 2 - } + "additional_units": { + "generated_images": { + "price": 2 } } } diff --git a/pricing/vertex-ai.json b/pricing/vertex-ai.json index 1f98140bc..fd292a96e 100644 --- a/pricing/vertex-ai.json +++ b/pricing/vertex-ai.json @@ -712,11 +712,9 @@ "imagen-3.0-generate-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } }, @@ -739,7 +737,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -749,11 +747,9 @@ "imagen-3.0-fast-generate-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 2 - } + "additional_units": { + "generated_images": { + "price": 2 } } }, @@ -776,7 +772,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4013,11 +4009,9 @@ "imagen-4.0-generate-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } }, @@ -4040,7 +4034,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4050,11 +4044,9 @@ "imagen-4.0-ultra-generate-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 6 - } + "additional_units": { + "generated_images": { + "price": 6 } } }, @@ -4077,7 +4069,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4087,11 +4079,9 @@ "imagen-4.0-fast-generate-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 2 - } + "additional_units": { + "generated_images": { + "price": 2 } } }, @@ -4114,7 +4104,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4124,11 +4114,9 @@ "imagen-4.0-generate-preview-06-06": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } }, @@ -4151,7 +4139,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4161,11 +4149,9 @@ "imagen-4.0-ultra-generate-preview-06-06": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 6 - } + "additional_units": { + "generated_images": { + "price": 6 } } }, @@ -4188,7 +4174,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4198,11 +4184,9 @@ "imagen-4.0-fast-generate-preview-06-06": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 2 - } + "additional_units": { + "generated_images": { + "price": 2 } } }, @@ -4225,7 +4209,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4235,11 +4219,9 @@ "imagen-4.0-generate-preview-05-20": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } }, @@ -4262,7 +4244,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -4272,11 +4254,9 @@ "imagen-4.0-ultra-generate-preview-05-20": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 6 - } + "additional_units": { + "generated_images": { + "price": 6 } } }, @@ -4299,7 +4279,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -12930,11 +12910,9 @@ "imagen-3.0-capability-001": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } }, @@ -12957,7 +12935,7 @@ "value": "1" }, { - "value": "rates.image" + "value": "rates.generated_images" } ] } @@ -13410,11 +13388,9 @@ "imagen-3.0-generate-002": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } } @@ -13423,11 +13399,9 @@ "imagen-3.0-capability-002": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 4 - } + "additional_units": { + "generated_images": { + "price": 4 } } } @@ -13436,11 +13410,9 @@ "imagen-product-recontext-preview-06-30": { "pricing_config": { "pay_as_you_go": { - "image": { - "default": { - "default": { - "price": 12 - } + "additional_units": { + "generated_images": { + "price": 12 } } }