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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix stability mode
Ishaan Jafferb86aae02121b
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex 4862bd4a738..4abbddb0d50 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -25456,7 +25456,7 @@},"stability/inpaint": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25464,7 +25464,7 @@},"stability/outpaint": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.004,"supported_endpoints": ["/v1/images/edits"@@ -25472,7 +25472,7 @@},"stability/erase": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25480,7 +25480,7 @@},"stability/search-and-replace": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25488,7 +25488,7 @@},"stability/search-and-recolor": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25496,7 +25496,7 @@},"stability/remove-background": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25504,7 +25504,7 @@},"stability/replace-background-and-relight": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.008,"supported_endpoints": ["/v1/images/edits"@@ -25512,7 +25512,7 @@},"stability/sketch": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25520,7 +25520,7 @@},"stability/structure": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25528,7 +25528,7 @@},"stability/style": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25536,7 +25536,7 @@},"stability/style-transfer": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.008,"supported_endpoints": ["/v1/images/edits"@@ -25544,7 +25544,7 @@},"stability/fast": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.002,"supported_endpoints": ["/v1/images/edits"@@ -25552,7 +25552,7 @@},"stability/conservative": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.04,"supported_endpoints": ["/v1/images/edits"@@ -25560,7 +25560,7 @@},"stability/creative": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.06,"supported_endpoints": ["/v1/images/edits"@@ -25598,79 +25598,79 @@"stability.stable-conservative-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.40},"stability.stable-creative-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.60},"stability.stable-fast-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.03},"stability.stable-outpaint-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.06},"stability.stable-image-control-sketch-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-control-structure-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-erase-object-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-inpaint-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-remove-background-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-search-recolor-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-search-replace-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-style-guide-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-style-transfer-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.08},"stability.stable-image-core-v1:1": {diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 4862bd4a738..4abbddb0d50 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -25456,7 +25456,7 @@},"stability/inpaint": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25464,7 +25464,7 @@},"stability/outpaint": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.004,"supported_endpoints": ["/v1/images/edits"@@ -25472,7 +25472,7 @@},"stability/erase": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25480,7 +25480,7 @@},"stability/search-and-replace": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25488,7 +25488,7 @@},"stability/search-and-recolor": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25496,7 +25496,7 @@},"stability/remove-background": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25504,7 +25504,7 @@},"stability/replace-background-and-relight": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.008,"supported_endpoints": ["/v1/images/edits"@@ -25512,7 +25512,7 @@},"stability/sketch": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25520,7 +25520,7 @@},"stability/structure": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25528,7 +25528,7 @@},"stability/style": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.005,"supported_endpoints": ["/v1/images/edits"@@ -25536,7 +25536,7 @@},"stability/style-transfer": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.008,"supported_endpoints": ["/v1/images/edits"@@ -25544,7 +25544,7 @@},"stability/fast": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.002,"supported_endpoints": ["/v1/images/edits"@@ -25552,7 +25552,7 @@},"stability/conservative": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.04,"supported_endpoints": ["/v1/images/edits"@@ -25560,7 +25560,7 @@},"stability/creative": {"litellm_provider": "stability",- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.06,"supported_endpoints": ["/v1/images/edits"@@ -25598,79 +25598,79 @@"stability.stable-conservative-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.40},"stability.stable-creative-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.60},"stability.stable-fast-upscale-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.03},"stability.stable-outpaint-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.06},"stability.stable-image-control-sketch-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-control-structure-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-erase-object-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-inpaint-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-remove-background-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-search-recolor-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-search-replace-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-image-style-guide-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.07},"stability.stable-style-transfer-v1:0": {"litellm_provider": "bedrock","max_input_tokens": 77,- "mode": "image_edits",+ "mode": "image_edit","output_cost_per_image": 0.08},"stability.stable-image-core-v1:1": {