GPT Oss 20B (free)
OpenAI logo

GPT Oss 20B (free)

gpt-oss-20b-free
OpenAI
Developed by OpenAI, gpt-oss-20b-free is an open-weight 21B parameter model released under the Apache 2.0 license. This model utilizes a Mixture-of-Experts (MoE) architecture with 3.6B active parameters per forward pass. It supports an expansive context window of up to 131,072 tokens, making it well-suited for long-context tasks.

Pricing

  • Input Tokens: $0.000 /M tokens
  • Output Tokens: $0.000 /M tokens
  • Cache Read: $0.000 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Context length

  • 131K tokens

Max output

  • 131K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="gpt-oss-20b-free",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is GPT Oss 20B (free)?

Developed by OpenAI, gpt-oss-20b-free is an open-weight 21B parameter model released under the Apache 2.0 license. This model utilizes a Mixture-of-Experts (MoE) architecture with 3.6B active parameters per forward pass. It supports an expansive context window of up to 131,072 tokens, making it well-suited for long-context tasks.