gpt-oss-20b

gpt-oss-20b

by OpenAI Open weightsapache-2.0

Specifications

Input
Text
Output
Text
Context
128k tokens
Quantization
MXFP4

Performance on Blade

Throughput
180 tok/s
First token
372 ms
Parameters
21B · 3.6B active
Architecture
MoE
Indicative measurements per stream.

Pricing

From€0.0306Input / 1M tokens

From€0.116Output / 1M tokens

Estimate a workload ↓

About this model

gpt-oss-20b is an open-weight reasoning model from OpenAI. Use Blade’s hosted endpoint to evaluate planning, analysis and coding assistance with your own product context.

Technical specifications

Capabilities
ReasoningChatTool callingWeb search
Input modalities
Text
Output modalities
Text
Model family
GPT-OSS
API model ID
gpt-oss-20b

Model timeline

Knowledge cutoff
Jun 2024
Released
Aug 2025

Use cases

Compare approaches

Provide requirements and constraints, then ask for a recommendation with explicit trade-offs and assumptions.

Assist code review

Send a focused diff and relevant context. Ask for actionable issues, then check each finding against the actual code.

Build task-oriented assistants

Turn a user’s request into a proposed plan. Keep tool execution and permissions in your application rather than in the generated text.

Explore the workflow ↗

Use the gpt-oss-20b API

  1. Create an API key in the Blade console and set BLADE_API_KEY in your server environment.
  2. Send a small test request using the example below.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.models.blade.sh/v1",
    api_key=os.environ["BLADE_API_KEY"],
    timeout=120.0,
)

reply = client.chat.completions.create(
    model="gpt-oss-20b",
    messages=[{
        "role": "user",
        "content": "Review a retry strategy for a payment API. Explain when retries are unsafe and how idempotency helps.",
    }],
    max_tokens=4096,
)
print(reply.choices[0].message.content)

Set BLADE_API_KEY before running the example. This sends a billed request. Check supported parameters and handle timeouts, rate limits and incomplete responses.

Open the console example ↗

gpt-oss-20b
API pricing.

These starting rates are the lowest catalogue prices. The active rate may vary with GPU availability.

Input / 1M tokens
€0.0306
Output / 1M tokens
€0.116

Catalogue updated 2026-12-06.

View the rate card ↗

10,000 input tokens + 2,000 output tokens = €0.000538 at the displayed rate.

Use gpt-oss-20b
with Claude Code or Codex.

Connect a skill or API runner that sends a focused task to gpt-oss-20b. Your main assistant keeps the project context, reviews the proposal and runs the checks.

01 / BriefClaude Code or Codex

Define the task and select the files.

02 / Generategpt-oss-20b

Propose code through Blade’s API.

03 / CheckYour project

Review the diff. Run the tests.

A configured integration is required. Your assistant retains its main model; delegated Blade requests are billed separately. Evaluate the result on your task before expanding the workflow.

Set up coding delegation ↗

FAQ

What can I use gpt-oss-20b for?

gpt-oss-20b is an open-weight reasoning model from OpenAI. Use Blade’s hosted endpoint to evaluate planning, analysis and coding assistance with your own product context.

How is usage billed?

Input / 1M tokens: from €0.0306. Output / 1M tokens: from €0.116.

What should I check before integrating?

OpenAI’s model card describes the upstream model. Blade’s alias, serving configuration and supported reasoning parameters determine what your API request can use.

Can I use this with Claude Code or Codex?

Connect a configured API runner to your assistant. Follow the delegation guide ↗

Blade catalogue reference ↗

Licence
apache-2.0

Deploy gpt-oss-20b on AI Fabric ↗

Contact the team

Loading the form…