groq_chat_completion
Perform high-speed chat completions using Groq's inference with open models such as Llama 3, Mixtral, and Gemma.
Instructions
Run a fast LLM inference with Groq. Supports Llama 3, Mixtral, Gemma, and other open models at high speed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"api_key": "<api_key>"
},
"name": "groq_chat_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | Stop sequence(s) | |
| model | No | Model ID (e.g. llama-3.3-70b-versatile, mixtral-8x7b-32768, gemma2-9b-it). Default: llama-3.3-70b-versatile | |
| top_p | No | Top-p sampling (0-1) | |
| prompt | No | Single user message (alternative to messages) | |
| api_key | Yes | Groq API key from console.groq.com/keys | |
| messages | No | Array of {role, content} messages | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature (0-2) | |
| system_prompt | No | System prompt (used with prompt shorthand) |