I don't have access to GPT-4 through API call

Hi,

When I call the API using model=“GPT-4” I get the following error. I have paying account and already paid 5$ last month. I have API account and API key.

NotFoundError: Error code: 404 - {‘error’: {‘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’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: ‘model_not_found’}}

Do u know how I can fix this issue?

Go to settings (gear icon) → Projects → limits → Model usage → Allowed Models

Edit/Add your desired model there.

You can also see you model access through " client.models.list()"
with client being a chat completions object

1 Like