GPT4 api is not working for me

Hi, when I use my chatgpt in official site I can use gpt4 without any issue.

But when I created the api-key and make request then I am getting this:
“message”: “The model gpt-4 does not exist or you do not have access to it. Learn more: How can I access GPT-4? | OpenAI Help Center”,

Screenshots are attached! Please help.

Welcome to the forum.

Did you follow the link? ChatGPT and the API are separate services…

I have to create another account for api? or I can do something on existing account?

You need a separate API account… ChatGPT is a “retail” product and the API is for developers…

1 Like

I think I already have access for it

Sir, are you using a key from the same OpenAI account that you got the email?

Do other models work?

Yes, I am using the key. Other models like gpt-3.5 working fine

In that case, I’d reach out to

Good luck, sir.

That is inaccurate. The same account and login can be used for ChatGPT and for API access.

In fact, that’s a lot of the confusion, even though the web subdomains, services and billing are completely separate. @sarab has this confusion still in the first post, “ChatGPT for $20 gives me gpt-4, why not the API?”

I’d check the email address of the gpt-4 notice and see that it is the actual account being used. Also the selected organization if ever invited or using that system.

(I’m going to need to assemble some copypasta for this topic posted several times a day, such as:)

Your older API account with pay-as-you-go billing can also get gpt-4 access. It just seems from you not having gpt-4, you’ve likely never actually been billed for any usage after putting in a card, a criteria that OpenAI had used monthly since July to onboard new users to the general availability. The email might not have considered this.

ChatGPT Plus does not offer any API credits or entitlements. It is a separate end-user product. You may have already have upgraded to ChatGPT Plus with your $20 subscription, which besides upgrading to a gpt-4 powered chatbot, gives you plugins and more. It doesn’t unlock any API services or pay for any API bills.

This is the access portal to an API account and its payment systems.

API usage is charged by the amount of data used - the tokens sent and received by queries to the AI models.

You may have an API free trial credit if you created your OpenAI account recently, (three-month expiration after account creation). However, access to use gpt-4 services along with higher rate limits is only enabled after purchasing additional account credits or having been billed monthly.

If you are on an older monthly payment plan, that actually is desirable and convenient. In the billing overview, you see “pay-as-you-go” (post-paid billing) when a credit card has already been entered (before mid-July, when a new credit system was installed.)

A pay as you go plan can be made eligible for gpt-4 access by actually incurring billing to the card after the end of the month from use (OpenAI currently doesn’t bill for small balances, like under a dollar). After then being seen as a paid user, you will likely get access shortly after.

One can “cancel payment plan”, and then you’ll likely be only offered the ability to buy pre-paid credits, of $5-$50. A pre-pay instantly gets gpt-4. Once doing so, there is no going back. A second account for this is recommended if you must.

API allows programmers to develop applications for end users, and they are charged by the actual language data used by the service. OpenAI’s “playground” demonstration app automatically connects to your API account without an API key, and you can see whether your billing works to create any responses without errors, and see availability of chat → gpt-4 OpenAI Playground

Don’t put API keys into web sites, apps, extensions, or unknown software. You wouldn’t hand out your bank password?

1 Like

Ah, good catch. It’s been a few years since I signed up.

I was hinting at this maybe being the cause…

Thanks for the much better response!

In playground, I can select model gpt-4, but when I ask you are gpt-4, I am getting response gpt4 is not released i am gpt3. Screenshot attached please check

GPT-4 was created after the training data cut off of 2021, asking the model what version it is, is not reliable.

If the model you have selected on the right hand side says GPT-4 then you are making API calls to GPT-4.