# Groq

Groq serves 1 model on LLM API: GPT OSS 20B from OpenAI.

Model ID prefix: `groq/` · 1 model · [Groq privacy policy](https://groq.com/privacy-policy)
Updated: 2026-10-27
Canonical: https://llmapi.ai/providers/groq/

## Models and prices

Prices when Groq serves the request.

### Text (1)

Prices per 1M tokens.

| Model | Model ID | Input | Output | Cache read | Context |
| --- | --- | --- | --- | --- | --- |
| [GPT OSS 20B](https://llmapi.ai/models/openai-gpt-oss-20b/) | `groq/gpt-oss-20b` | $0.1 | $0.5 | $0.037 | 131K |

**Volume pricing.** At higher monthly volume, models on Groq may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Send requests to Groq

Put `groq/` before a model ID and the request goes to Groq. If Groq’s uptime over the last 5 minutes is below 90%, it goes to another provider of the model, unless it sends `X-No-Fallback: true`. [Routing docs](https://docs.llmapi.ai/features/routing)

Example: GPT OSS 20B, Chat Completions (`POST /v1/chat/completions`). Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="groq/gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
```

Prices synced 2026-11-13.

Next step: [Get API key](https://app.llmapi.ai/signup)
