OpenAi's API and javascript.
This was a small "how-to" from teamtreehouse.com.
Use it how ever you want.
-
go to https://platform.openai.com/ get your self a free api token. ( Only last 90 days, then ya gotta pay)
-
take your api secret key and add it to line one in the js file. ( Remember, ALWAYS secure your secret keys before publishing to the web.)
-
Open Ai is pretty tame, so dont expect it to work wonders with your requests.
Happy coding !!