Skip to content

gpt-oss-20b

openai/gpt-oss-20b

The smaller gpt-oss open-weight model (August 2025, Apache 2.0) on DeepInfra and Groq: 21B parameters with 3.6B active, adjustable reasoning effort and a 128K context, built for low-latency use.

API
curl "$AUDIOLAB_API_URL/v1/chat/completions" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-oss-20b",
  "messages": [
    {
      "role": "user",
      "content": "Help me plan my next project."
    }
  ],
  "max_tokens": 256
}'
Input Price
$0.0255 / 1M tokens
Output Price
$0.119 / 1M tokens
Context
131.1K tokens
Output Cap
131.1K tokens

Capabilities

Explore what gpt-oss-20b supports, then use the API section for a request tailored to this model.

Max tokensReasoningInclude reasoning

Model Information

Provider
DeepInfra
Product
Language Models
Release Date
Aug 5, 2025
Data Policy
Not specified
Region
US, Global
Input
Text
Output
Text
Provider Documentation

Playground

Try gpt-oss-20b by DeepInfra. Requests use the selected workspace’s credits and API pricing.

gpt-oss-20bCredits —
gpt-oss-20b
⌘ / Ctrl + Enter to send

Providers

Compare available endpoints, pricing, and context limits for gpt-oss-20b.

ProviderContextOutput CapInput PriceOutput PriceEndpoint
DeepInfra131.1K tokens131.1K tokens$0.0255 / 1M tokens$0.119 / 1M tokens
deepinfra/openai-gpt-oss-20b
Groq131.1K tokens65.5K tokens$0.0638 / 1M tokens$0.255 / 1M tokens
groq/gpt-oss-20b

Prices are catalog rates. Your workspace’s estimate and endpoint pricing determine the final charge.

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValueEndpoint
Max input tokens131072deepinfra/openai-gpt-oss-20b
Max output tokens131072deepinfra/openai-gpt-oss-20b
Max input tokens131072groq/gpt-oss-20b
Max output tokens65536groq/gpt-oss-20b

Provider Notes

Several hosts serve this model. A request to this ID can be answered by any of them; a host-pinned ID selects one.

Performance

Status

Current catalog availability. Your workspace’s access is checked separately before a request runs.

Getting Started

Use your workspace API key and the exact model identifier below. Set the API URL to the endpoint shown in your workspace and keep credentials on your server.

API
curl "$AUDIOLAB_API_URL/v1/chat/completions" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "openai/gpt-oss-20b",
  "messages": [
    {
      "role": "user",
      "content": "Help me plan my next project."
    }
  ],
  "max_tokens": 256
}'
Read the Endpoint Reference

Request Parameters

Available parameters depend on the provider and request format. The endpoint reference explains accepted values and required fields.

ParameterDetails
modelopenai/gpt-oss-20b — Required model identifier.
max_tokensView Accepted Values
reasoningView Accepted Values
include_reasoningView Accepted Values

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValueEndpoint
Max input tokens131072deepinfra/openai-gpt-oss-20b
Max output tokens131072deepinfra/openai-gpt-oss-20b
Max input tokens131072groq/gpt-oss-20b
Max output tokens65536groq/gpt-oss-20b

Similar Models

Explore more language models and compare their capabilities.

ModelContextInput PriceOutput Price
inclusionAI/Ling-3.0-flash-VLDeepInfra131.1K tokens$0.051 / 1M tokens$0.153 / 1M tokens
ibm-granite/granite-4.2-8bDeepInfra131.1K tokens$0.051 / 1M tokens$0.2125 / 1M tokens
DeepSeek V4 Pro 0813DeepInfra1M tokens$1.105 / 1M tokens$2.21 / 1M tokens
Muse Glimmer 30BDeepInfra131.1K tokens$0.255 / 1M tokens$1.02 / 1M tokens
inclusionAI/Ling-3.0-flashDeepInfra131.1K tokens$0.051 / 1M tokens$0.153 / 1M tokens
DeepSeek V4 Flash 0731DeepInfra1M tokens$0.051 / 1M tokens$0.153 / 1M tokens
View All Language Models