While I was playing with API to figure out how to use it, I realized that only some models are allowed to use with “Edit API”. Neither documentation nor error response doesn’t include information about this limitation. “Invalid URL (POST /v1/edits)” error disappeared after I started to use “text-davinci-edit-001” model. The error message was misleading. I think it should be more clear which models are good to use (or I couldn’t read the documentation properly, please help me find where it is ).
I don’t use edit endpoint a lot at this time. With that said, the documentation does lag behind sometimes because OpenAI is moving as such a quick speed (even with all the safeguards they have in place). I know we just had someone using the wrong answers endpoint…
Thanks for sharing, though. It’s how we all improve!
I just hit the same error. The endpoint reports 404 Not Found with “Invalid URL (POST /v1/edits)” whenever it does not like the input. For example if TopP and Temperature are both set even to their default values of 1 this error comes up.
I had to add a bit of code to skip inputs when using the default values.
Hey folks, thanks for calling this out and being patient, we have updated the model parameter to make it clear that the edits API only works with text-davinci-edit-001 or the code-davinci-edit-001 model.
Hi everyone, rookie here - ChatGPT has been helping me learn to code!
I’ve specified the model as text-davinci-edit-001 but i’m still getting the { “error”: { “message”: “Invalid URL (POST /v1/edits)”, “type”: “invalid_request_error”, “param”: null, “code”: null }
so if you look in the new playground:OpenAI API, you can do a call to say: “Mode” = “Complete” in the dropdown and use the model = “text-davinci-003”. then when you switch over to the example for “mode” = “edit” you cant use Model = “text-davinci-003” you need to change the Model to equal “text-davinci-edit-001” and it kinda works…but if you dont change the model, even in playground you see the error everyone is seeing here.
it is clear via the logic, you need more than one call to understand how this is working, and you must change the model to text-davinci-edit-001. im still seeing an issue, as I only get some kind of code back, not text when I try this in python. but im past the 404 error:)
it also works in the playground. API explorers are a most to learn this stuff:)