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.
This commit is contained in:
mateo-berri 2026-07-28 11:11:58 -07:00
parent 5349cea192
commit 88c2225e3d
3 changed files with 8 additions and 8 deletions

View file

@ -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"

View file

@ -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"

View file

@ -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",