← All providers

Groq API Pricing, Models & Rate Limits (2026)

Groq doesn't train models — it serves open-weight models (OpenAI's gpt-oss and Alibaba's Qwen among them) on its own LPU inference hardware. The pitch is raw throughput: Groq is consistently among the fastest tokens-per-second on this site's speed benchmarks for the weights it hosts.

Current models
3
Legacy models
4
Price range /M
$0.13–$1.20
Max context
131K
Median tok/s
780
Next retirement
2026-08-16

Models and prices

ModelInput /MOutput /MBlended /M
GPT-OSS 20B$0.07$0.30$0.13
GPT-OSS 120B$0.15$0.60$0.26
Qwen 3.8 30B$0.60$3.00$1.20
4 legacy Groq models
Llama 3.1 8B$0.06/M blended
Llama 4 Maverick$0.30/M blended
Llama 3.3 70B$0.64/M blended
Qwen 3.6 27B$1.20/M blended

Speed

Fastest measured Groq model is GPT-OSS 20B at 1120 tokens/sec (140ms TTFT), median across measured Groq models is 780 tokens/sec. See the full speed benchmark methodology.

Operational facts

Verified 2026-08-08 against source.

OpenAI-compatibleYes
API base URLhttps://api.groq.com/openai/v1
Auth modelBearer API key
Prompt cachingNot documented
Batch discount50%
Free tierFree tier with per-minute and per-day token caps
Rate-limit modelPer-model requests/minute and tokens/minute caps by tier
Data residencyUS
Trains on API dataNot documented
SLA publishedNo
DocsOfficial pricingStatus page

Lifecycle

Groq has 4 legacy models still routable and 2 retired models. Next scheduled retirement: Llama 3.3 70B on 2026-08-16. Full dates and successors on the model deprecation tracker.

Switching to and from Groq

The closest-priced current model to Qwen 3.8 30B ($1.20/M) outside Groq is Qwen 3.7 Plus ($1.10/M, -8.3%). Same request shape through All AI Ask — swap the model id, keep the rest of your code.
The closest-priced current model to GPT-OSS 120B ($0.26/M) outside Groq is Mistral Small 3.1 ($0.26/M, 0%). Same request shape through All AI Ask — swap the model id, keep the rest of your code.

Calling Groq through All AI Ask

curl https://allaiask.com/api/v1/chat \
  -H "Authorization: Bearer $ALLAIASK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-oss-20b", "messages": [{"role": "user", "content": "Hello"}]}'

FAQ

Is Groq OpenAI-compatible?

Yes — Groq's API base (https://api.groq.com/openai/v1) accepts the OpenAI SDK request/response shape, so existing OpenAI client code works with a base-URL and key swap.

Does Groq support prompt caching?

Not documented as of 2026-08-08 — we did not find a published prompt-caching feature for Groq. If that changes, this page updates.

Does Groq have a free tier?

Yes — Free tier with per-minute and per-day token caps.

How much does the Groq API cost?

Current Groq models range from $0.13 to $1.20 per million blended tokens (3:1 input:output). Full per-model pricing is in the table below.

Where is Groq API data hosted?

US

Try Groq for free

Run real prompts against every current Groq model, and every other provider on this site, in one workspace.

Try It Free