OpenAI

GPT-OSS 20B

Base URL
Model ID
Input
€0.05
1M tokens
Output
€0.18
1M tokens
Context window
128K
tokens
Modalities
Input: Text. Output: Text.
See pricing

Overview

GPT-OSS 20B is a compact 21B parameter Mixture-of-Experts model with 3.6B active parameters, designed for lower latency and local deployment. Runs within 16GB memory with configurable reasoning effort, full chain-of-thought access, and native agentic capabilities including function calling and structured outputs. Released under Apache 2.0 license, ideal for specialized fine-tuning on consumer hardware. Companion model to GPT-OSS 120B optimized for speed while maintaining strong reasoning capabilities.

Code samples

curl -X POST "https://api.melious.ai/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $MELIOUS_API_KEY" \
  -d '{
    "model": "gpt-oss-20b",
    "messages": [
      {"role": "user", "content": "Explain what an API is in one sentence."}
    ]
  }'

Capabilities

Input
Text
Output
Text
Supported
Reasoning, Tool calling, Structured output, Streaming
Reasoning
Always reasons before answering

Where it runs

Hosted in Renewable power 100% Power efficiency Water efficiency
Hosted in Renewable power 100% Power efficiency Water efficiency
All models

Start with GPT-OSS 20B

Estimate monthly cost

GPT-OSS 20B

Input tokens per month50M
Estimated cost per month €4.30