Skip to content

Groq

Groq 使用自訂的 LPU 硬體,在開放權重模型(Llama、Gemma、Kimi、Qwen、GPT OSS 等)上提供超快速的推理。OpenClaw 包含一個內建的 Groq 外掛程式,該外掛程式註冊了 OpenAI 相容的聊天提供者以及音訊媒體理解提供者。

屬性
提供者 IDgroq
外掛內建,enabledByDefault: true
驗證環境變數GROQ_API_KEY
上架旗標--auth-choice groq-api-key
API相容於 OpenAI (openai-completions)
基礎網址https://api.groq.com/openai/v1
音訊轉錄whisper-large-v3-turbo (預設)
建議的聊天預設值groq/llama-3.3-70b-versatile
  1. 取得 API 金鑰

    console.groq.com/keys 建立一個 API 金鑰。

  2. 設定 API 金鑰

    Terminal window
    openclaw onboard --auth-choice groq-api-key
    Terminal window
    export GROQ_API_KEY=gsk_...
  3. Set a default model

    {
    agents: {
    defaults: {
    model: { primary: "groq/llama-3.3-70b-versatile" },
    },
    },
    }
  4. Verify the catalog is reachable

    Terminal window
    openclaw models list --provider groq
{
env: { GROQ_API_KEY: "gsk_..." },
agents: {
defaults: {
model: { primary: "groq/llama-3.3-70b-versatile" },
},
},
}

OpenClaw 隨附了一個基於清單的 Groq 目錄,其中包含推理與非推理項目。執行 openclaw models list --provider groq 以查看您所安裝版本的配套項目,或查看 console.groq.com/docs/models 以取得 Groq 的官方清單。

模型參照名稱推理輸入內容
groq/llama-3.3-70b-versatileLlama 3.3 70B Versatile文字131,072
groq/llama-3.1-8b-instantLlama 3.1 8B Instant文字131,072
groq/meta-llama/llama-4-maverick-17b-128e-instructLlama 4 Maverick 17B文字 + 圖片131,072
groq/meta-llama/llama-4-scout-17b-16e-instructLlama 4 Scout 17B文字 + 圖片131,072
groq/llama3-70b-8192Llama 3 70B文字8,192
groq/llama3-8b-8192Llama 3 8B文字8,192
groq/gemma2-9b-itGemma 2 9B文字8,192
groq/mistral-saba-24bMistral Saba 24B文字32,768
groq/moonshotai/kimi-k2-instructKimi K2 Instruct文字131,072
groq/moonshotai/kimi-k2-instruct-0905Kimi K2 Instruct 0905notext262,144
groq/openai/gpt-oss-120bGPT OSS 120Byestext131,072
groq/openai/gpt-oss-20bGPT OSS 20Byestext131,072
groq/openai/gpt-oss-safeguard-20bSafety GPT OSS 20Byestext131,072
groq/qwen-qwq-32bQwen QwQ 32Byestext131,072
groq/qwen/qwen3-32bQwen3 32Byestext131,072
groq/deepseek-r1-distill-llama-70bDeepSeek R1 Distill Llama 70Byestext131,072
groq/groq/compoundCompoundyestext131,072
groq/groq/compound-miniCompound Miniyestext131,072

OpenClaw maps its shared /think levels to Groq’s model-specific reasoning_effort values:

  • For qwen/qwen3-32b, disabled thinking sends none and enabled thinking sends default.
  • For Groq GPT OSS reasoning models (openai/gpt-oss-*), OpenClaw sends low, medium, or high based on /think level. Disabled thinking omits reasoning_effort because those models do not support a disabled value.
  • DeepSeek R1 Distill, Qwen QwQ, and Compound use Groq’s native reasoning surface; /think controls visibility but the model always reasons.

請參閱 思考模式 以了解共用的 /think 層級,以及 OpenClaw 如何根據不同的提供者進行轉譯。

Groq’s bundled plugin also registers an audio media-understanding provider so voice messages can be transcribed through the shared tools.media.audio surface.

PropertyValue
Shared config pathtools.media.audio
Default base URLhttps://api.groq.com/openai/v1
Default modelwhisper-large-v3-turbo
Auto priority20
API 端點OpenAI 相容的 /audio/transcriptions

若要將 Groq 設為預設的音訊後端:

{
tools: {
media: {
audio: {
models: [{ provider: "groq" }],
},
},
},
}
Daemon 的環境可用性

如果 Gateway 作為受管理服務(launchd、systemd、Docker)執行,GROQ_API_KEY 必須對該程序可見 — 而不僅是對您的互動式 shell 可見。

自訂 Groq 模型 ID

OpenClaw 在執行時接受任何 Groq 模型 ID。請使用 Groq 顯示的確切 ID 並加上 groq/ 前綴。內建的目錄涵蓋了常見情況;未列入目錄的 ID 將會套用預設的 OpenAI 相容範本。

{
agents: {
defaults: {
model: { primary: "groq/

” }, }, }, } ```

模型提供者

選擇提供者、模型參照和故障轉移行為。

思考模式

推理努力程度與提供者策略的互動。

組態參考

完整的組態架構,包括提供者和音訊設定。

Groq Console

Groq 儀表板、API 文件和價格。