gpt-oss-20b

proprietary20B

gpt-oss-20b is an open-weight 21B parameter model released by OpenAI under the Apache 2.0 license. It uses a Mixture-of-Experts (MoE) architecture with 3.6B active parameters per forward pass, optimized for lower-latency inference. The model is trained in OpenAI’s Harmony response format and supports reasoning level configuration, fine-tuning, and agentic capabilities including function calling, tool use, and structured outputs.

Intelligence
Reasoning
Speed
Context
131K
Max output
131K
Input price
$0.03/1M tokens
Output price
$0.14/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming
Batch Processing

Details

Provider DeepInfra
Creator OpenAI
Familygpt-oss
Licenseproprietary
Statusactive
Typechat
Input modalitiestext
Output modalitiestext
Open weightYes
Parameters20B
Architecture—
Context window131K tokens
Max input—
Max output131K tokens
Reasoning tokensYes
Knowledge cutoff
Release date—
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Endpoints

Chat CompletionsPOST
Generate chat responses with messageshttps://api.deepinfra.com/v1/openai/v1/chat/completions

Pricing

Input
$0.03
Output
$0.14
Cache write
—
Cache read
—
Batch in
—
Batch out
—

Family Comparison: gpt-oss

ModelContextMax outPricing
gpt-oss-20b131K131K$0.03$0.14
gpt-oss-120b131K131K$0.04$0.17
gpt-oss-120b-Turbo131K—$0.15$0.6
gpt-oss-120b-Ultra131K—$0.2$0.95

API

GET/v1/models/deepinfra/openai/gpt-oss-20b