Skip to content

Commit 6d66567

Browse files
committed
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.
1 parent 618d907 commit 6d66567

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

litellm/model_prices_and_context_window_backup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17426,13 +17426,13 @@
1742617426
"fal_ai/openai/gpt-image-2/edit": {
1742717427
"litellm_provider": "fal_ai",
1742817428
"metadata": {
17429-
"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"
17429+
"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"
1743017430
},
1743117431
"mode": "image_generation",
1743217432
"output_cost_per_image": 0.145,
1743317433
"source": "https://fal.ai/models/openai/gpt-image-2/edit",
1743417434
"supported_endpoints": [
17435-
"/v1/images/edits"
17435+
"/v1/images/generations"
1743617436
],
1743717437
"supports_vision": true
1743817438
},

model_prices_and_context_window.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17426,13 +17426,13 @@
1742617426
"fal_ai/openai/gpt-image-2/edit": {
1742717427
"litellm_provider": "fal_ai",
1742817428
"metadata": {
17429-
"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"
17429+
"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"
1743017430
},
1743117431
"mode": "image_generation",
1743217432
"output_cost_per_image": 0.145,
1743317433
"source": "https://fal.ai/models/openai/gpt-image-2/edit",
1743417434
"supported_endpoints": [
17435-
"/v1/images/edits"
17435+
"/v1/images/generations"
1743617436
],
1743717437
"supports_vision": true
1743817438
},

0 commit comments

Comments
 (0)