GPT-OSS 20B (Groq) API

Groq · serves gpt-oss-20b

Pricing

Input / 1M$0.07
Output / 1M$0.30
Blended / 1M$0.375
Cached input / 1M$0.04
Context window128,000 tokens
Max output32,768 tokens
LicenseOpen weights · Apache 2.0 permissive
Knowledge cutoffJune 2024 · source
Intelligence index15.2 Artificial Analysis Intelligence Index · source

textfunction-calling

Price verified 2026-09-05 (0 days ago) · sourcecorroborated

Sources

SourceInput / 1MOutput / 1MVerified
OpenRouter$0.07$0.302026-09-05
LiteLLM$0.07$0.302026-09-03
models.dev$0.07$0.302026-09-04

Two independent sources agree within 20%.

Latency measured

RegionTTFT p50TTFT p95Total p50Total p95ThroughputSamples
eu-frankfurt390.3 ms475.7 ms532 ms607 ms1,869.7 tok/s5
eu-paris345.3 ms419.2 ms490.8 ms529.8 ms1,987 tok/s5

Time-to-first-token, measured server-side. Measured 2026-09-04 (0 days ago).

Cheaper providers for gpt-oss-20b

ProviderBlended / 1MEndpoint
AkashML$0.12view →
CoreWeave$0.16view →
DeepInfra$0.17view →

Compare all 12 providers serving gpt-oss-20b →

Call it

OpenAI-compatible endpoint — set GROQ_API_KEY.

curl https://api.groq.com/openai/v1/chat/completions \
  -H "Authorization: Bearer $GROQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-oss-20b",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
from openai import OpenAI  # pip install openai

client = OpenAI(
    base_url="https://api.groq.com/openai/v1",
    api_key="...",  # GROQ_API_KEY
)
resp = client.chat.completions.create(
    model="openai/gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Price history

DateInput / 1MOutput / 1M
2026-09-01$0.07$0.30
2026-08-05$0.07$0.30

2 price points on record · a new point is added only when the price actually changes.

Use this data

Raw JSON for this page: gpt-oss-20b.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.