404 Error with fine tune endpoint

I’m trying fine tuning for the first time. I uploaded a file. here’s the information when I get a list of files:

“object”: “list”,
“data”: [
“object”: “file”,
“id”: “file-GAxIthEDWRHvQbHlYdLTRsAU”,
“purpose”: “fine-tune”,
“filename”: “6c909824-34df-436a-b228-0bffd5707d41”,
“bytes”: 3117,
“created_at”: 1683147838,
“status”: “processed”,
“status_details”: null

Here’s the body of my http request:


And here’s the endpoint:


According to the documentation, the 404 error is due to not belonging to an organization. This however is not the case for me. My API key is attached to my organization, and my organization has an Organization ID in my profile. I use the same API key for everything and on a daily basis. So that would not seem to be the issue.

I’m at a loss where to look next.

1 Like

What code/command are you using? Docs have a different URL

curl https://api.openai.com/v1/fine-tunes \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "training_file": "file-…."


Aha, the problem was with the URL. Thanks for posting your example!

1 Like