Can't access gpt-4 using python/LangChain

Hello

I am using Python / LangChain to access the model. Python has been working well for me with the GPT-3.5 models. But, when I try gpt-4, I get the following error:

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

How can I get access to it and use it ?
Thanks!

Hi and welcome to the developer forum!

GPT-4 API access is being rolled out to developers as capacity becomes available, there is no longer a need to apply for a waitlist since the end of July so this will be automatic, but it depends on available compute and system load, so there is no set time scale, hopefully it is soon for all developers.