Groq in open-source AI tools: fast, low-cost inference for open models in 2026
What Groq offers
Groq builds the LPU, a chip designed for running language models rather than training them, and runs it in its own data centers. Developers do not buy the chips; they call GroqCloud, an API that serves a curated list of open-weight models. The draw is speed: Groq regularly tops independent benchmarks for output tokens per second on the models it hosts, often several times faster than GPU-based providers serving the same model.
In December 2025, Nvidia signed a licensing agreement for Groq's inference technology and hired several of its leaders, including founder Jonathan Ross. Groq stated that GroqCloud would continue to operate as an independent business. For developers the API, pricing and models have continued as before, but it is worth watching how the arrangement shapes GroqCloud's roadmap.
Which directory projects use it
| Project | How it connects |
|---|---|
| LiteLLM | Native groq/ provider prefix with cost tracking |
| LibreChat | Custom endpoint in librechat.yaml; Groq is one of the documented examples |
| Open WebUI | OpenAI API connection with Groq's base URL |
| LobeChat | Built-in Groq provider |
Models and prices
Groq's catalog changes often; models are added in preview, promoted to production, and deprecated with notice. As of October 2026, its production list includes OpenAI's open-weight gpt-oss models:
| Model | Input per million | Output per million |
|---|---|---|
| openai/gpt-oss-120b | $0.15 | $0.60 |
| openai/gpt-oss-20b | $0.075 | $0.30 |
Groq also hosts Llama, Qwen and other open families, Whisper models for speech-to-text, and text-to-speech models, each with its own rate. A model called Muse Spark Open entered limited preview on October 15, 2026. Check the models page before building on a preview model, since previews can be withdrawn.
For comparison, OpenAI's flagship GPT-6.1 Sol costs $2 input and $10 output per million tokens, so gpt-oss-120b on Groq is about 13 to 17 times cheaper per token. Whether it is good enough depends on the task: open models handle drafting, summarizing, extraction and routine coding well, and trail the top closed models on hard reasoning.
What a month costs
| Use | Monthly tokens | gpt-oss-120b cost |
|---|---|---|
| One heavy user | 3M in, 0.5M out | About $0.75 |
| Team of 20 | 40M in, 10M out | About $12 |
| Support classifier, 1M tickets | 500M in, 20M out | About $87 |
At these prices, the cost of running a self-hosted chat app for a small team is dominated by the server the app runs on, not the model.
Setting it up
- Sign up at console.groq.com and create an API key.
- In LibreChat, add a custom endpoint:
endpoints:
custom:
- name: "Groq"
apiKey: "${GROQ_API_KEY}"
baseURL: "https://api.groq.com/openai/v1"
models:
default: ["openai/gpt-oss-120b"]
fetch: true
- In LiteLLM, use
model: groq/openai/gpt-oss-120bwithGROQ_API_KEYset. - In Open WebUI, add a connection under Admin Settings, Connections.
Rate limits
The free tier allows a limited number of requests and tokens per minute and per day for each model, which is enough to test and to run a personal assistant. Paid developer accounts get higher limits, and enterprise customers negotiate their own. A team app that hits the free limits will see 429 errors; route overflow to another provider through LiteLLM, or upgrade.
Where speed matters
- Voice agents. A voice assistant feels natural when the reply starts within a few hundred milliseconds. Groq's fast output, combined with its Whisper transcription, is common in LiveKit voice agent demos.
- Agents with many steps. An agent that makes 20 model calls to finish a task benefits from each call returning in a second rather than ten.
- Autocomplete and inline tools. Code completion and writing suggestions need low latency to be useful.
- Long outputs. Generating a long report at hundreds of tokens per second finishes before the user loses interest.
For slow, high-quality reasoning where a user is happy to wait, raw speed matters less.
Limitations
- Open models only. Groq does not serve GPT, Claude or Gemini.
- Catalog churn. Models are deprecated as newer ones arrive; pin and monitor.
- Context windows. Some hosted models have shorter limits on Groq than the model supports elsewhere, to keep speed high. Check the model page.
- Data location. Groq's data centers are mostly in North America and the Middle East. Teams with EU residency rules may prefer Mistral.
Choosing between gpt-oss-120b and gpt-oss-20b
OpenAI released the gpt-oss models in August 2025 under the Apache 2.0 license, its first open-weight language models since GPT-2. The 120b model is a mixture-of-experts design that activates about 5 billion parameters per token, so it runs fast for its size; the 20b model activates about 3.6 billion and fits on a single consumer GPU when self-hosted. On Groq, the price difference is only a factor of two, so most teams default to 120b for chat and keep 20b for high-volume tasks such as tagging, routing and extracting fields from text. Both support tool calling and adjustable reasoning effort, which lets an agent ask for a quick answer on easy steps and a slower, more careful one on hard steps.
A useful pattern is to test the same prompts on both models and a closed flagship. If the open model's answers are acceptable for 80% of requests, route those to Groq and send the rest to a stronger model through LiteLLM. The cost saving on the bulk of traffic usually pays for the occasional expensive call.
Speech on Groq
Groq also hosts Whisper speech-to-text models, billed per hour of audio, and text-to-speech voices. Self-hosted meeting tools and voice assistants use Groq's Whisper endpoint because it transcribes much faster than real time, which keeps the gap between a person speaking and the assistant replying short. Open WebUI can use an OpenAI-compatible speech-to-text endpoint, so pointing its audio settings at Groq gives voice input without running Whisper on your own GPU.
Data handling
Groq states that it does not train on customer data sent to its API, and enterprise customers can arrange zero data retention. As with any hosted provider, read the current terms before sending regulated data, and use a local model through Ollama when nothing may leave your network.
Groq compared with other fast hosts
| Host | Hardware | Strength |
|---|---|---|
| Groq | LPU | Very high tokens per second, low prices on open models |
| Cerebras | Wafer-scale chip | Similar speed focus, competing catalog |
| Together AI, Fireworks | GPUs | Broad open-model catalogs, fine-tuning |
| Local Ollama | Your hardware | No per-token cost, full privacy, slower |
Many self-hosted setups list two or three of these behind a gateway and let users pick, falling back automatically when one is busy.
Related: OpenAI API stack, LiteLLM stack, Mistral AI stack, Ollama stack, Stack index.
Frequently asked questions
What is Groq used for in open-source AI apps?
As a fast, cheap model provider. Apps that already speak the OpenAI API add Groq as another endpoint, so users can pick an open model that answers almost instantly. It is common in voice assistants, coding helpers and agents that make many short model calls.
Is Groq the same as Grok?
No. Groq, with a q, is a chip and inference company founded in 2016. Grok, with a k, is the chatbot from Elon Musk's xAI. They are unrelated.
How much does Groq cost?
It is billed per token and depends on the model. gpt-oss-120b costs $0.15 per million input tokens and $0.60 per million output tokens; gpt-oss-20b costs half that. The free tier has request and token limits per minute and per day, and batch jobs cost less.
Why is Groq so fast?
Groq designed its own chip, the LPU, which keeps model weights in fast on-chip memory spread across many chips, avoiding the memory bandwidth limits that slow GPUs during token generation. The result is high tokens-per-second for a single request.
Can I use Groq with Open WebUI?
Yes. In Open WebUI's admin settings, add an OpenAI API connection with the URL https://api.groq.com/openai/v1 and your Groq key. The available models then appear in the model picker alongside local Ollama models.