natto-maki / ComfyUI-NegiTools

Apache License 2.0
30 stars 4 forks source link

Where does the API Key go? #12

Closed southbayjay closed 4 days ago

southbayjay commented 3 months ago

Hello! Forgive my ignorance but where do I put the Open AI api key?? I'm very new to comfyUI and running it on Ubuntu Linux. Thank you! Jason

natto-maki commented 3 months ago

You can pass the API key as an environment variable if you are running on Linux. For example, in the case that you are running ComfyUI from main.py, you can specify the API key as follows.

OPENAI_API_KEY=sk-..... python main.py