Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: default quality cost calculation of gpt-image 1 model

Sameer Kankuteaa578f78b951
diff --git a/litellm/cost_calculator.py b/litellm/cost_calculator.py
index fa01dd622f5..371e53283de 100644
--- a/litellm/cost_calculator.py
+++ b/litellm/cost_calculator.py
@@ -1555,7 +1555,7 @@ def default_image_cost_calculator(
# gpt-image-1 models use low, medium, high quality. If user did not specify quality, use medium fot gpt-image-1 model family
model_name_with_v2_quality = (
- f"{ImageGenerationRequestQuality.MEDIUM.value}/{base_model_name}"
+ f"{ImageGenerationRequestQuality.HIGH.value}/{base_model_name}"
)
verbose_logger.debug(