Groq

GPT-OSS 20b

gpt-oss-20b

Open GPT reasoning model for self-hosted agents and controllable deployments

ReasoningWebJSON

Quick facts

Released
August 2025
Model type
Open-weight
Model family
GPT-OSS
Input modalities
Supports: Text
Output modalities
Supports: Text
Available regions
Global
Zero data retention
Yes
Available on nexos.ai
Yes

Pricing and specifications of GPT-OSS 20b

Explore GPT-OSS 20b pricing per million input, output, and cached tokens, along with its context window and maximum output limits.

Input / 1MOutput / 1MCached input / 1MContextMax output
$0.07$0.30$0.04131K131K

Available providers

Provider Region Input / 1M Output / 1M Cache / 1M ZDR
Groq Global $0.07 $0.30 $0.04

Specifications

Context window

131K tokens

Max output

131K tokens

Input

Output

Benchmarks of GPT-OSS 20b

How GPT-OSS 20b scores on independent benchmarks tracked by Epoch AI.

Quality

Epoch Capabilities Index

134.9

ECI rank

#144 of 258

GPQA Diamond

Graduate-level scientific reasoning

49.7%

OTIS Mock AIME

Competition mathematics

65.2%

Terminal-Bench

Agentic coding & terminal use

3.4%

WeirdML

Novel machine-learning tasks

40.9%

Benchmark data: Epoch AI, ‘Capabilities & benchmarking’, licensed under CC BY 4.0.

Quickstart

Start using GPT-OSS 20b

Model ID

gpt-oss-20b

Base URL

https://api.nexos.ai/v1

Code

from openai import OpenAI

# Get your API key from the nexos.ai dashboard
client = OpenAI(
    base_url="https://api.nexos.ai/v1",
    api_key="YOUR_NEXOS_API_KEY",
)

response = client.chat.completions.create(
    model="gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)
import OpenAI from 'openai';

// Get your API key from the nexos.ai dashboard
const client = new OpenAI({
  baseURL: 'https://api.nexos.ai/v1',
  apiKey: 'YOUR_NEXOS_API_KEY',
});

const response = await client.chat.completions.create({
  model: 'gpt-oss-20b',
  messages: [{ role: 'user', content: 'Hello!' }],
});

console.log(response.choices[0].message.content);
curl https://api.nexos.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_NEXOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-oss-20b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other OpenAI models

Models from OpenAI with comparable capabilities and pricing.

ModelInputOutputContextCapabilitiesRegion
GPT 5$1.38$11.00272K
VisionToolsCacheThinkWebJSON
EUGlobal
GPT 5 mini$0.28$2.20272K
VisionToolsCacheThinkWebJSON
USEUGlobal
GPT 5 nano$0.06$0.44272K
VisionToolsCacheThinkWebJSON
USEUGlobal

Start building with GPT-OSS 20b

Access GPT-OSS 20b and 200+ other AI models through nexos.ai.

FAQ

Common questions about GPT-OSS 20b, its availability and usage.