Hi as the title suggest my access was taken away or something is just wrong. So basically I was invited to GPT-4 and have invitation picture. I also tested it initially on online chatbot ui (a popular open source chatgpt ui). It worked however now I am trying again I get error.
openai.error.InvalidRequestError: The model: gpt-4 does not exist
Api key is also entered I haven’t shown if there was an issue with API it would have given API error. I tried using other models it worked but not with gpt-4
Actually API access to GPT-4 and ChatGPT are not related. You don’t get GPT-4 access for buying the plus plan. You need to apply to the waitlist and need to be accepted.
You can even be accepted to API GPT-4 without having plus (I had API access first).
I would check playground. If it’s there you should search for other things.
Did you include moderation endpoint?
import openai
import os
# Get the API key from the environment variable
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
openai.api_key = OPENAI_API_KEY
completion = openai.ChatCompletion.create(
model="gpt-4",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
]
)
print(completion.choices[0].message)
The difference is my API key is in an environment variable and I removed your:
If GPT-4 is not in your playground, it means your access is recycled.
The situation would be rare - but I’ve seem some similar cases before. Please self-check if you have resale your api, use api in forbidden areas like China Mainland, use VPN that shifts your IP, or any other cases that break the OpenAI policies ( Usage policies (openai.com)).
In all those cases, your gpt-4 api access may get revoke immediately without pre-warning or formal notification.
Your OpenAI organization (org-xxxxxxxxxxxxxxxxxxx) can now access GPT-4 models with 8K context via the existing OpenAI API. You can learn more about GPT-4 in our [API documentation]
but when I am trying on platform using chat option from drop down gpt-4 model is not showing… I do not have paid account on openAI … I am user of chat GPT plus … would you help?