openai.error.InvalidRequestError: The model `gpt-4` does not exist or you do not have access to it

I’m a complete newbie to openai so please bear with me, and I’m also hoping this is the right place to ask. I’m trying to follow this youtube video to get open interpreter working:
[Open Interpreter :desktop_computer: ChatGPT Code Interpreter You Can Run LOCALLY! - YouTube]
I’m running into a brick wall when it comes to the api key. I can generate a key but the terminal throws this error:

’ openai.error.InvalidRequestError: The model gpt-4 does not exist or you do not have access to it.’

I’ve been searching on google but can’t find a solution to this. I also tried to upgrade my openai account but that came back asking for £20/month which doesn’t sound right, especially after reading on google users need to pay just £1.
thanks for any pointers

1 Like

It is here that you need to add a payment plan and purchase credits to use the pay-per-use API: Billing Overview

After making a successful payment (minimum $5) the gpt-4 model and higher rate limits should be enabled.

Also don’t do what that sponsored video says. He talks about the AI running code: “here we can see it shows what is on my desktop” - sure, and now get it to do some hallucinated regedit. AI needs to run python in a sandbox for safety.

2 Likes

Hey Champ,
And welcome to the developer community forum, you’re definitely in the right place if you want to learn! (The forum has a great search function btw, you’ll find many solutions to common problems here)

The error message indicates that the model gpt-4 does not exist or you do not have access to it. Please ensure that you have the correct access permissions and that the model name is spelled correctly.

I’ll suggest you follow the advice by, @_j, that’s usually the quickest way of solving this, we’re not able to help you gain access.

You can see which models you have access to over in the playground, under the “model” selection tab in the settings:
https://platform.openai.com/playground

I hope that helps!

2 Likes

thankyou @regular that has solved it for me. I purchased a small credit at the link you gave and now open interpreter is working and no longer spitting back the api key.

2 Likes

Hello, how can I convert the natural language processing model from bin to gguf

I added $5 to my account but I am still getting

The model gpt-4 does not exist or you do not have access to it.

What am I missing?

1 Like

For me it took 5 minutes before the credit was noticed by the playground, even though the dashboard showed it right away.

1 Like

Hello I’m encountering the same problem, and i can not solve it, i google on the internet i have tried everything, and i can not get what i’m missing.
I Have 5$ on my account, but still getting: “error”: “404 The model gpt-4o does not exist or you do not have access to it.”
How can I fix this? any other solutions?

Have you actually added a credit card and purchased a credit? Waited up to a few hours for your payment to go through for unlocking gpt-4 models? After that, you may need to generate an API key especially if not making one before - and perform phone verification if it pops up.

I did everything as written according to the documentation, I generated an api key, I put the $5 bill, I waited almost a whole day, in the part where the playground is, the prompt returns a response without any problem, but locally it doesn’t want to return any response at all, also I have verified successfully my mobile number

Appreciate you a lot THANK YOU!, i have not put the organization id and the project id, but this helps me a lot, Now everything is ok.

1 Like

I struggled witht his too.
Would be nice if OpenAI would give us detailed information about what they change, before they change it :laughing:

1 Like

That’s another sumbling stone. Don’t have one, never will have one. So, I won’t be able to use ai with sketchwow, right?

I am not sure if this is the right solution for your issue, but I was facing the same issue with text-embedding-ada-002 and what worked for me, is I went to my project settings and in the Limit section I did not have the required model in Model Usage->“Allowed Model” setting. Once I added the required model, it started working.

1 Like

An error occurred: Error code: 404 - {‘error’: {‘message’: ‘The model gpt-4o does not exist or you do not have access to it.’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}} please anyone help