Hey everyone
TL;DR: If you use Postman to test the OpenAI API, check out this public workspace: Postman
Building up on @JacobLey’s thread about creating an OpenAPI schema for OpenAI, I looked into updating it, making it consumable, and opening it to contributions.
It all starts with a schema…
To start with, I’ve re-written the API schema based on the current state of the API today (12th of Aug), the schema can be found either on my GitHub or on Postman. If you’d like to contribute to it, you can fork the GitHub repository and create a Pull Request there, any changes to it will also be made to the one on Postman and vice-versa.
Consuming the API
There are a few ways to get started with the OpenAI API, including some known ones:
- Using the OpenAI Playground which is the best way to get started with OpenAI.
- Using Postman to build more complex workflows, or integrate with other APIs/services without having to build an entire app, fork/import the collection by using this button:
- Using code, if you dont’ want to re-invent the wheel, you can get client code generated for you in Python, Ruby, Javascript, Go, PHP etc on this page (switch the langage in the top dropdown.).
Friendly reminder that there are also community libraries available here.
Contributing
I’ll try to stay on top of the changes, but considering the schema doesn’t originate from OpenAI I might already be missing some things, so if you’d like to let me know what’s missing, or contribute back, check out openai-openapi/contributing.md at main · arlemi/openai-openapi · GitHub.
If you’ve read that far, I’m also interested in common worfklows you’ve been doing (or you’ve seen people do) with the API, I’d like to start building collections for typical workflows instead of for the whole API. Any suggestions appreciated!