OpenAI api examples Several examples using curl to send and request data to the openai api. Setup You will need an OpenAI API key from your own account. Before running the scripts you will need to export an environment variable with the key. export OPENAI_API_KEY=YOUR_KEY Reference API documentation