.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
FLASK_APP
FLASK_ENV
OPENAI_API_KEY
secret
Once you add your API key below, make sure to not share it with anyone! The API key should remain private.
brew install flyctl && fly launch --from https://github.com/openai/openai-quickstart-python
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/openai/openai-quickstart-python
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/openai/openai-quickstart-python