Groq
Introduction
In this guide we'll walk through the process of linking Cerb to Groq. You'll be able to use Groq's full API in Cerb automations for AI inference.
Get a Groq API Key.
Log in to your Groq Account or sign up if you don't already have one.
Choose API Keys in the menu and then click the "Create API Key" button in the top right.
Name the key (eg. cerb
) and click Submit.
Copy the API key for use later.
Create the Groq service in Cerb
-
Navigate to Search » Connected Services.
-
Click the (+) icon in the top right of the list.
-
Select Groq.
-
Paste the key you copied earlier in the API Key field.
-
Click the Create button.
Examples
Create Chat Completion
https://console.groq.com/docs/api-reference#chat-create
start:
http.request/hwu7xs:
output: http_response
inputs:
method: POST
url: https://api.groq.com/openai/v1/chat/completions
authentication: cerb:connected_account:groq
headers:
Content-Type: application/json
body:
model: llama-3.3-70b-versatile
messages:
0:
role: user
content: Tell me who is Beethoven
on_success:
set:
response@json: {{http_response.body}}
http_response@json: null
List Models
https://console.groq.com/docs/api-reference#models
start:
http.request/hwu7xs:
output: http_response
inputs:
method: GET
url: https://api.groq.com/openai/v1/models
authentication: cerb:connected_account:groq
on_success:
set:
response@json: {{http_response.body}}
http_response@json: null