3. Getting started with Groq¶
In addition to the commercial chatbots that draw the most media attention, there are many other ways to access large-language models, including free variations that you can download and run directly on your computer.
For this demonstration, we will use an online service called Groq. Not to be confused with Elon Musk’s Grok, an entirely different AI, Groq provides fast, inexpensive API access to various open-source models. It is stable and speedy. Its code is similar to other services, so the skills you learn here should be transferable to other platforms.
To get access to its services, go to groq.com. Click on the “DEV CONSOLE” button on the top right. Create an account.
When you’re logged in, click “API keys” on the top right.
Click on “Create API key” on the next page.
Go ahead and create an API key, name it. We think first-llm-classifer
is a good choice. Hit “Submit.”
A popup will appear with your key. Copy it to your clipboard. I’ve redacted my key in this screenshot, but you should see a long string of characters. It’s important to keep this key secret. If someone else gets it, they can use your account to run up charges.
For now, paste that value into a text file on your computer. We’ll need it later.