# Unable to access using python api, curl works

**URL:** <https://community.openai.com/t/unable-to-access-using-python-api-curl-works/22416>\
**Category:** API\
**Created:** [October 30, 2022, 9:42pm UTC](https://community.openai.com/t/unable-to-access-using-python-api-curl-works/22416 "2022-10-30T21:42:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vt2353](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/vt2353/32/10301_2.png) [@vt2353](https://community.openai.com/u/vt2353)\
**Post date:** [October 30, 2022, 9:42pm UTC](https://community.openai.com/t/unable-to-access-using-python-api-curl-works/22416/1 "2022-10-30T21:42:17Z")

</div>

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.

 ![Screen Shot 2022-10-30 at 5.36.55 PM](https://us1.discourse-cdn.com/openai1/original/2X/d/dda5be366817a463a2c1cf9e539d52d230f43e4e.png)

Thanks for help!

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [December 28, 2023, 6:21pm UTC](https://community.openai.com/t/unable-to-access-using-python-api-curl-works/22416/2 "2023-12-28T18:21:52Z")

</div>

Closed on December 28, 2023, 6:21pm UTC


