Groq provides hosted inference for open models and its own tool-using Compound systems. Use this reference to choose the request interface, check operating costs and set up a controlled first integration.

What Groq offers through the API

Groq is an inference platform: the company serving your request can differ from the organization that released the model. Its catalog includes hosted model identifiers, audio models and Compound systems. Keep that distinction in your configuration: a Groq API key belongs with a Groq endpoint even when the model identifier contains another organization’s name. Official documentation.

Begin with the interaction your application needs. A short classification task, a multi-turn assistant and a document extraction job have different success criteria. Save representative inputs before choosing an identifier. Compare whether returned text is useful, whether required fields survive awkward input, and whether your application handles an incomplete answer. These are your acceptance criteria, not promises attached to a model family.

The OpenAI-compatible base URL is https://api.groq.com/openai/v1. Groq also maintains its own Python and TypeScript clients. Compatibility has documented exceptions, so a successful connection is not proof that every parameter from another provider is supported. Review those exceptions when migrating an existing request. Official documentation.

For a new project, use the native Groq client first. This keeps your code aligned with provider examples and makes a redacted reproduction easier to prepare. If your application already abstracts several providers, preserve a provider-specific capability map. Remove unsupported fields deliberately rather than silently stripping arbitrary request data after an error.

Groq organizes operational access through projects. Project selection scopes generated credentials and the views used for logs and usage. Organization controls still constrain what a project can do. Give development and production different project names so a test run can be traced without guessing which application sent it. Official documentation.

Choose the least complicated path that satisfies your task. A plain completion is a useful baseline before adding tool definitions, retrieval or a stateful conversation. Make one change at a time and compare both the answer and returned usage. Retain the exact identifier and prompt revision with each evaluation result; otherwise a later model migration becomes difficult to diagnose.

The documentation separates ordinary model calls from Compound, which can use hosted tools. It also describes Responses alongside Chat Completions. Treat each surface as a distinct integration contract: output items, tool behavior and billing categories can differ even when the user-facing experience looks like the same assistant. Official documentation.

This hub is a navigation point for that work. Pricing explains which usage categories enter an estimate. Models helps inspect identifiers and lifecycle status. The key guide covers the console path, and the Python tutorial provides a small diagnostic script. Once that baseline works, scale the workload while watching throughput, expenditure and answer quality separately.

Pricing at a glance

Pricing at a glance
SummaryVerified value
Lowest input price modelSafety GPT OSS 20B
Input price$0.075 per 1M tokens
Output price$0.3 per 1M tokens
Free accessThe official rate-limit reference publishes Free Plan limits. The available models and quotas are shown in that table; entitlement is checked in your account.

Last verified · Source ↗

Read the unit beside each amount. Token-based text and duration-based audio charges describe different products. A low-looking number is not enough to compare them. Official documentation.

Open Groq pricing for complete categories and workload examples.

Models available

Model catalog
ModelOfficial identifierModalitiesContext tokensInput USD / 1MOutput USD / 1MStatus
GPT OSS 120Bopenai/gpt-oss-120btext131,072$0.15$0.6Active
GPT OSS 20Bopenai/gpt-oss-20btext131,072$0.075$0.3Active
Qwen/Qwen3.6-27Bqwen/qwen3.6-27btext131,072$0.6$3Active
Qwen/Qwen3.8-27Bqwen/qwen3.8-27btext131,042$0.8$4Active
Safety GPT OSS 20Bopenai/gpt-oss-safeguard-20btext131,072$0.075$0.3Active

Last verified · Source ↗

The Groq model catalog connects family selection with exact identifiers. Check model permissions if a listed model is inaccessible.

Free tier and how to get a key

Free access terms
ConditionVerified details
Current termsThe official rate-limit reference publishes Free Plan limits. The available models and quotas are shown in that table; entitlement is checked in your account.

Last verified · Source ↗

Groq distinguishes Free and Developer plans. Check the organization’s current plan before expecting paid-plan features. Official documentation.

Follow the Groq API key steps and free-tier conditions before upgrading.

Rate limits and tiers

The organization is the outer capacity boundary. Project settings can impose tighter controls, while request and token limits remain distinct. Official documentation.

Use the Groq rate-limit reference to plan the busiest part of your workload, not only average traffic.

Service status

All Systems Operational

Checked 12 Sep 2026 17:15 UTC · Official status ↗

A public incident can explain a cluster of failures, but a green indicator does not validate a credential or payload. For one failing call, start with Groq error diagnosis.

Start in 5 minutes

Set the environment variable, install the Groq package and send a short request. This is a starter script, not a recorded inference transcript.

import os
from groq import Groq

client = Groq(api_key=os.environ["GROQ_API_KEY"], timeout=30.0)
response = client.chat.completions.create(
    model="openai/gpt-oss-20b",
    messages=[{"role": "user", "content": "Explain one useful application of model APIs."}],
    max_completion_tokens=256,
)
print(response.choices[0].message.content)

Continue with your first Groq request in Python for timeout handling and a deliberate failure.

Recent changes

  1. Groq · Whisper Large V3 Turbo — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  2. Groq · Whisper — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  3. Groq · Qwen/Qwen3.8-27B — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  4. Groq · Qwen/Qwen3.6-27B — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  5. Groq · Safety GPT OSS 20B — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  6. Groq · GPT OSS 20B — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  7. Groq · GPT OSS 120B — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  8. Groq · Prompt Guard 2 86M — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  9. Groq · Llama Prompt Guard 2 22M — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗
  10. Groq · groq/compound-mini — MetadataRecord updated; consult the linked source for details. → SDK languages: ["Python","JavaScript","TypeScript"]Source ↗

Subscribe to the changelog RSS feed

Review model and price changes before updating a deployment. A catalog addition is a reason to evaluate a candidate, not an instruction to replace a working model.

Use the AI API cost calculator to turn the model and workload you are considering into an estimate.

Last verified · Source ↗

Frequently asked questions

Is Groq the same provider as xAI’s Grok?
No. Groq is the inference service covered here. xAI provides Grok models through a separate API and account.
Can I use the OpenAI Python package with Groq?
Yes, with Groq’s base URL and credential, subject to its documented compatibility exceptions. Official documentation.
Why does a Groq model name begin with openai?
An identifier can retain the original model publisher’s namespace. The request is still served through Groq when you call its endpoint. Official documentation.
Do projects create additional organization capacity?
No. Project controls cannot increase the organization’s total allocation. Official documentation.
Where should I check a rejected request?
Start with its response body and Groq errors. Then inspect the selected project, model policy and plan controls.

Sources

Last verified · Source ↗