Unable to access using python api, curl works

I’m not able to access openai using python api (please see attachment). It says InvalidRequestError: Resource not found. Running an equivalent curl command from terminal works.

I’m using openai version 0.24.0

I have verified that the openai key in jupyter notebook is correct, so that’s definitely not the issue.

Thanks for help!