Set up your development environment to use the OpenAI API with an SDK in your preferred language.
.zshrc
file or another text file on your computer. Once you’ve generated an API key, export it as an environment variable in your terminal.
example.mjs
and copy the example code into it:node example.mjs
(or the equivalent command for Deno or Bun). In a few moments, you should see the output of your API request.