From 6d665679156ac475f1ef6d8a47473a7bbfa36bf6 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 20 Aug 2026 17:01:48 -0700 Subject: [PATCH] fix(fal_ai): stop advertising /v1/images/edits for gpt-image-2 edit The edit model is reached through the image generation path with fal's image_urls param; /v1/images/edits is not wired for fal_ai and errors. Point supported_endpoints at /v1/images/generations and say so in the entry notes. --- litellm/model_prices_and_context_window_backup.json | 4 ++-- model_prices_and_context_window.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 429e859e242..53902e640d6 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -17426,13 +17426,13 @@ "fal_ai/openai/gpt-image-2/edit": { "litellm_provider": "fal_ai", "metadata": { - "notes": "Editing endpoint of gpt-image-2 on fal.ai. Same rate as fal_ai/openai/gpt-image-2, see that entry for the size and quality caveat" + "notes": "Editing endpoint of gpt-image-2 on fal.ai, reached through the image generation path with fal's image_urls param since /v1/images/edits is not wired for fal_ai. Same rate as fal_ai/openai/gpt-image-2, see that entry for the size and quality caveat" }, "mode": "image_generation", "output_cost_per_image": 0.145, "source": "https://fal.ai/models/openai/gpt-image-2/edit", "supported_endpoints": [ - "/v1/images/edits" + "/v1/images/generations" ], "supports_vision": true }, diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 429e859e242..53902e640d6 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -17426,13 +17426,13 @@ "fal_ai/openai/gpt-image-2/edit": { "litellm_provider": "fal_ai", "metadata": { - "notes": "Editing endpoint of gpt-image-2 on fal.ai. Same rate as fal_ai/openai/gpt-image-2, see that entry for the size and quality caveat" + "notes": "Editing endpoint of gpt-image-2 on fal.ai, reached through the image generation path with fal's image_urls param since /v1/images/edits is not wired for fal_ai. Same rate as fal_ai/openai/gpt-image-2, see that entry for the size and quality caveat" }, "mode": "image_generation", "output_cost_per_image": 0.145, "source": "https://fal.ai/models/openai/gpt-image-2/edit", "supported_endpoints": [ - "/v1/images/edits" + "/v1/images/generations" ], "supports_vision": true },