Griptape Prompt Driver: Groq
Groq — the speed king, for when your agent should think at ludicrous speed
- DRIVER
Groq is the ridiculous-speed LLM API: they run open models on custom hardware that makes Llama and Mixtral respond fast - thousands of tokens a second, to the point that it feels broken at first. For a Griptape agent, that speed matters more than you'd think, because agent workflows make many round-trips: the model thinks, calls a tool, waits, thinks again. Each step at Groq speed is nearly instant, so a multi-step agent feels interactive instead of glacial. There's also a generous free tier, which makes this the default answer to "I want a hosted brain and I'm cheap."
The catch: you're limited to what Groq serves, and it's open models only - no GPT or Claude here. If you want Llama 3, Gemma 2, or Mixtral at absurd speed, this is your driver.
The inputs that matter
model- the biggest dropdown in the pack, 12 options. Defaultgemma2-9b-it; the interesting ones for agents arellama-3.3-70b-versatile(the smartest all-rounder) andllama3-70b-8192(older but dependable). There are vision-preview Llama 3.2 models if you need image input, andllama-guard-3-8bif you're building moderation.api_key_env_var- env-var name, defaultGROQ_API_KEY. Free key at console.groq.com.min_p(default 0.1) - Groq serves models with strong tokenizers, somin_pis the sampling knob that matters most here; lower it for more creative output.response_format-defaultorjson_object, for machine-parseable agent output.max_tokens--1default.
Standard temperature, seed, use_native_tools, max_attempts_on_fail included. Output: DRIVER.
Why this over a local model?
People who try Groq often bounce between it and Ollama. Groq wins on quality-of-life: no VRAM, no model downloads, no GPU contention with your image generation. Ollama wins on privacy and zero ongoing cost. If ComfyUI is already eating your VRAM for diffusion, Groq is the saner choice - the model runs on their hardware, not yours.
Installing it
Pack install, standard: ComfyUI Manager → Griptape → ComfyUI-Griptape, restart, or
cd ComfyUI/custom_nodes
git clone https://github.com/griptape-ai/ComfyUI-Griptape
Set GROQ_API_KEY in Settings → Griptape or your environment.
Common issues
Groq models come and go, and their dropdown options can go stale - a deprecated model ID returns an error even with a valid key; pick a current one. Rate limits on the free tier are real and will surface as 429 errors on a chatty agent; Groq is fast, but the free tier throttles fast too. And the pack-wide torch/griptape-version issues apply as usual: reinstall torch with cu121 wheels if ComfyUI breaks, and python -m pip install griptape -U if you see import errors.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| modelopt | COMBO | gemma2-9b-it | The model to use for the chat prompt. |
| max_attempts_on_failopt | INT | 21–100 | Maximum attempts on failure |
| temperatureopt | FLOAT | 0.100–1 | Temperature for sampling |
| seedopt | INT | 10342349342 | Seed for random number generation |
| use_native_toolsopt | BOOLEAN | true | Whether to use native tools. |
| max_tokensopt | INT | -1 | Maximum tokens to generate. If <=0, it will use the default based on the tokenizer. |
| min_popt | FLOAT | 0.100–1 | Minimum probability for sampling. Lower values will be more random. |
| response_formatopt | COMBO | default | Format of the response |
| api_key_env_varopt | STRING | GROQ_API_KEY | API key variable for authentication. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DRIVER | PROMPT_DRIVER | — |