From 88c2225e3d5b3f7da7f635c15683878a12983daf Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Tue, 28 Jul 2026 11:11:58 -0700 Subject: [PATCH] fix(azure_ai): correct MAI-Image-2.5-Pro pricing to published Pro rates MAI-Image-2.5-Pro image output is $106 per 1M tokens per Microsoft's Pro announcement, not the $47 per 1M inherited from the base MAI-Image-2.5 tier. Update output_cost_per_image_token to 0.000106, derive the per-image fallback (1024 output tokens per 1024x1024 image) as 0.1085, and point source at the Pro announcement blog. --- litellm/model_prices_and_context_window_backup.json | 6 +++--- model_prices_and_context_window.json | 6 +++--- .../azure_ai/image_generation/test_mai_image_generation.py | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 073e0737f57..65a8a1903a4 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -8647,9 +8647,9 @@ "input_cost_per_token": 5e-06, "litellm_provider": "azure_ai", "mode": "image_generation", - "output_cost_per_image": 0.05, - "output_cost_per_image_token": 4.7e-05, - "source": "https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/new-mai-models-in-microsoft-foundry-across-text-image-voice-and-speech/4524632", + "output_cost_per_image": 0.1085, + "output_cost_per_image_token": 0.000106, + "source": "https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-mai-image-2-5-pro-and-mai-voice-2-flash-in-microsoft-foundry/4539446", "supported_endpoints": [ "/v1/images/generations", "/v1/images/edits" diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 99bd299284a..bc343920ef6 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -8647,9 +8647,9 @@ "input_cost_per_token": 5e-06, "litellm_provider": "azure_ai", "mode": "image_generation", - "output_cost_per_image": 0.05, - "output_cost_per_image_token": 4.7e-05, - "source": "https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/new-mai-models-in-microsoft-foundry-across-text-image-voice-and-speech/4524632", + "output_cost_per_image": 0.1085, + "output_cost_per_image_token": 0.000106, + "source": "https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-mai-image-2-5-pro-and-mai-voice-2-flash-in-microsoft-foundry/4539446", "supported_endpoints": [ "/v1/images/generations", "/v1/images/edits" diff --git a/tests/test_litellm/llms/azure_ai/image_generation/test_mai_image_generation.py b/tests/test_litellm/llms/azure_ai/image_generation/test_mai_image_generation.py index 34e797c157a..a454e70b623 100644 --- a/tests/test_litellm/llms/azure_ai/image_generation/test_mai_image_generation.py +++ b/tests/test_litellm/llms/azure_ai/image_generation/test_mai_image_generation.py @@ -62,8 +62,8 @@ class TestAzureMAIImageGeneration: ) assert pro_info["input_cost_per_token"] == 5e-06 assert pro_info["input_cost_per_image_token"] == 8e-06 - assert pro_info["output_cost_per_image_token"] == 4.7e-05 - assert pro_info["output_cost_per_image"] == 0.05 + assert pro_info["output_cost_per_image_token"] == 0.000106 + assert pro_info["output_cost_per_image"] == 0.1085 image_2e_info = litellm.get_model_info( model="azure_ai/MAI-Image-2e",