# Unveiling My OpenAI API Experience

**URL:** <https://community.openai.com/t/unveiling-my-openai-api-experience/5194>\
**Category:** API\
**Created:** [June 29, 2021, 5:13pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194 "2021-06-29T17:13:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JacobLey](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/jacobley/32/324_2.png) [@JacobLey](https://community.openai.com/u/JacobLey)\
**Post date:** [June 29, 2021, 5:13pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/1 "2021-06-29T17:13:05Z")

</div>

Getting introduced to OpenAI’s API, I was not able to find any publicly advertised [OpenAPI](https://swagger.io/specification/) format, something that can be used to generated client code in any language, and plug in well with things like Postman or Swagger.

I wrote a version to share publically if you are having the same problem! [https://open-api.getshowcase.io/open-ai.html](https://open-api.getshowcase.io/open-ai.html)

Feel free to use this webpage/document if it helps with your development and debugging! As I am not an actual member of OpenAI, it is possible some of the documentation is incorrect. If you notice anything wrong, feel free to open a [PR to fix](https://github.com/showcasejobs/open-api)!

---

<div class="post-metadata">

**Author:** ![bagauser](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/bagauser/32/34913_2.png) [@bagauser](https://community.openai.com/u/bagauser)\
**Post date:** [May 5, 2023, 5:55pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/3 "2023-05-05T17:55:03Z")

</div>

This is actually an amazing effort you did! It looks like this is already a few years old, and the website is not live anymore.  
@OpenAiSupport why there isn’t an official swagger spec that is available for developers? I am sure internally your backend developers use “a spec”. Could we get access it to as well, please? This would streamline development, because most for many back-end systems you can generate Rest API calls from the spec, mistake free.

UPDATE: I found the spec [here](https://github.com/openai/openai-openapi/blob/master/openapi.yaml) after some research. May I suggest putting this somewhere in [OpenAI API](http://openai.com/docs) so that it has more visibility ?

---

<div class="post-metadata">

**Author:** ![mustmolenberg](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/mustmolenberg/32/117460_2.png) [@mustmolenberg](https://community.openai.com/u/mustmolenberg)\
**Post date:** [May 5, 2023, 11:11pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/4 "2023-05-05T23:11:35Z")

</div>

Like this? [https://platform.openai.com/docs/api-reference](https://platform.openai.com/docs/api-reference)

> [@JacobLey](#):
>
> Getting introduced to OpenAI’s API, I was not able to find any publicly advertised [OpenAPI](https://swagger.io/specification/) format, something that can be used to generated client code in any language, and plug in well with things

This from that page

```shell
curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

```

That helped me write Rust code.

---

<div class="post-metadata">

**Author:** ![bagauser](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/bagauser/32/34913_2.png) [@bagauser](https://community.openai.com/u/bagauser)\
**Post date:** [May 14, 2023, 4:29pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/5 "2023-05-14T16:29:48Z")

</div>

This is useful, but having an actual openAPI spec is more useful because you can generate models for any major programming language.

---

<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 19, 2023, 6:28pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/6 "2023-12-19T18:28:50Z")

</div>

Used AI to make a more specific title as the original was just to general.

---

<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 19, 2023, 6:28pm UTC](https://community.openai.com/t/unveiling-my-openai-api-experience/5194/7 "2023-12-19T18:28:54Z")

</div>

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


