OpenAI
OpenAI

OpenAI OSS 20B

openai/gpt-oss-20b

The gpt-oss-20b is a compact open-weight language model by OpenAI, comprising 21 billion parameters and designed for efficient deployment on consumer hardware with as little as 16 GB of memory.Despite its smaller size, it delivers performance comparable to OpenAI's o3-mini model, excelling in tasks such as coding, mathematics, and health-related queries.The model employs a Mixture-of-Experts architecture, activating 3.6 billion parameters per token, and supports chain-of-thought reasoning and tool usage.It is optimized for low-latency applications and can be fine-tuned for specific use cases.Trained on a text-only dataset with a focus on STEM and general knowledge, gpt-oss-20b is also available under the Apache 2.0 license, facilitating commercial use and customization.OpenAI has implemented rigorous safety evaluations to minimize risks associated with potential misuse, ensuring the model meets high safety

Tools

Function Calling

Community

Open Source

Context Window

128,000

Max Output Tokens

32,768

Using OpenAI OSS 20B with Python API

Using OpenAI OSS 20B with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="openai/gpt-oss-20b",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)