LLMopenai

OpenAI: gpt-oss-20b

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...

Anyone in the Project can @-mention OpenAI: gpt-oss-20b with the team's shared context - pooled credits, one chat, one memory.

All models

Starter is free forever - 1 Project, 100 credits/month, 1 MCP. No card.

Verdict

GPT-OSS-20B offers OpenAI-grade text generation at roughly one-tenth the cost of GPT-4 models, making it the economic choice for high-volume workflows where GPT-3.5 Turbo feels too limited but GPT-4 pricing doesn't pencil out. The 131K context window handles moderately long documents without chunking. Trade-off: reasoning quality and instruction-following lag behind frontier models—expect more prompt iteration and occasional off-target responses. Reach for this when token economics matter more than peak accuracy.

Best for

  • High-volume content generation at scale
  • Draft creation for human review workflows
  • Cost-sensitive chatbot backends
  • Batch processing of moderate-length documents
  • Prototyping before committing to GPT-4

Strengths

At $0.02 input and $0.09 output per million tokens, this model undercuts GPT-4o by 90% while maintaining coherent long-form output. The 131K context window accommodates most business documents, support tickets, and multi-turn conversations without truncation. Text generation quality sits comfortably above earlier GPT-3 variants—suitable for drafts, summaries, and structured data extraction where a human will validate output.

Trade-offs

Reasoning depth falls short of GPT-4 class models: complex multi-step logic, nuanced instruction-following, and edge-case handling require more explicit prompting or fail outright. Lacks the multimodal capabilities (vision, audio) now standard in frontier offerings. Without published benchmarks, you're flying blind on specific task performance—plan to run your own evals before production deployment. Fine-tuning availability unknown.

Specifications

Provider
openai
Category
llm
Context length
131,072 tokens
Max output
32,768 tokens
Modalities
text
License
proprietary
Released
2025-08-05

Pricing

Input
$0.02/Mtok
Output
$0.09/Mtok
Model ID
openai/gpt-oss-20b

Per-token prices show what the model costs upstream. On Switchy your team draws from one shared org credit pool - one plan, one balance for everyone.

Team cost calculator

Estimated monthly spend
$0.70
17.6M tokens / month
5 seats · 80 msgs/day

Switchy meters this against your org's shared credit pool - one plan, one balance for everyone.

Providers

ProviderContextInputOutputP50 latencyThroughput30d uptime
openai131k$0.02/Mtok$0.09/Mtok———

Performance

Performance snapshots are collected daily. Check back after the next ingestion run.

Benchmarks

Public benchmark scores are not available yet for this model. Check back after the next ingestion run.

Works well with

Top MCPs

Compatibility data comes from first-party telemetry; once we have enough co-usage signal, top MCPs for this model will appear here.

How Switchy teams use it

Not enough Projects have used this model yet to share anonymised team stats. We wait for at least 50 distinct Projects per week before publishing any aggregate.

Starter prompts

Summarize Support Tickets

Read this support ticket thread and produce a three-sentence summary covering: the customer's core issue, steps already attempted, and the recommended next action.

Generate Product Descriptions

Write a 100-word product description for this item. Focus on benefits over features, use an enthusiastic but professional tone, and include one call-to-action sentence at the end.

Extract Structured Data

Extract the following fields from this document and return them as JSON: invoice_number, date, vendor_name, total_amount, line_items (array of item and price). Return only valid JSON.

Draft Email Responses

Draft a polite email response to this customer inquiry. Acknowledge their concern, provide a clear answer, and offer one follow-up resource or next step.

Rewrite for Clarity

Rewrite this paragraph at an 8th-grade reading level. Preserve all key facts but replace jargon with everyday terms and shorten sentences where possible.

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

Review this pull request for security issues: a new user registration endpoint that accepts email, password, and an optional 'role' field from the request body.

Output

Three concerns here. First, the 'role' field should never come from user input—that's a privilege escalation vector. Move role assignment to server-side logic with proper authorization checks. Second, I don't see rate limiting on this endpoint; credential stuffing attacks will succeed. Add per-IP throttling. Third, the password appears to be hashed after validation—swap that order so plaintext never hits logs. The email regex looks fine, but consider a verification flow to prevent disposable addresses if that matters for your use case.

Notes

This example shows the model's ability to spot multi-layered security flaws in a realistic code review scenario. The 131k token context window means it can handle full PR diffs with surrounding codebase context. However, without published benchmarks, we can't verify how its security-pattern recognition compares to specialist models.

Prompt

Explain how PostgreSQL's MVCC works to a backend engineer who's used MySQL's InnoDB but never touched Postgres.

Output

MVCC in Postgres means every row update creates a new version rather than overwriting in place—think append-only. When you UPDATE, the old tuple stays visible to transactions that started before your change, and a new tuple gets written with your data. InnoDB does MVCC too, but stores old versions in the undo log; Postgres keeps them right in the table heap. This is why Postgres needs VACUUM—to reclaim space from dead tuples. The upside: readers never block writers. The downside: bloat if you don't tune autovacuum. Your mental model from InnoDB mostly transfers, but watch for table size growth patterns you didn't see in MySQL.

Notes

Demonstrates technical explanation with audience awareness—bridging from known (InnoDB) to unknown (Postgres). The model's 131k context window is overkill for this task, but the low $0.02/Mtok input cost makes it economical for documentation generation workflows. The explanation is accurate but doesn't cite Postgres version differences, which a specialist model might.

Prompt

Generate a SQL query to find customers who made purchases in Q1 2024 but not Q2 2024, assuming tables 'customers' (id, name) and 'orders' (id, customer_id, order_date).

Output

```sql SELECT DISTINCT c.id, c.name FROM customers c INNER JOIN orders o1 ON c.id = o1.customer_id LEFT JOIN orders o2 ON c.id = o2.customer_id AND o2.order_date BETWEEN '2024-04-01' AND '2024-06-30' WHERE o1.order_date BETWEEN '2024-01-01' AND '2024-03-31' AND o2.id IS NULL; ``` This uses a LEFT JOIN to find Q1 customers with no matching Q2 orders. The NULL check in WHERE filters out anyone who ordered in Q2. More readable than a NOT EXISTS subquery for this case.

Notes

Shows competence at translating business logic into SQL with a practical join pattern. The model provides working code and explains the approach, suitable for mid-level engineering tasks. At $0.09/Mtok output, longer code generation runs cost more than some competitors, though the 131k context window handles large schema definitions without truncation.

Use-case deep-dives

High-volume customer support triage

When gpt-oss-20b makes sense for 24/7 ticket classification

A 12-person SaaS company routing 800+ support tickets daily needs fast, cheap classification before human handoff. gpt-oss-20b hits the price floor at $0.02/$0.09 per Mtok—roughly 40% cheaper than GPT-4o-mini on input, 10% cheaper on output. The 131k context window handles full ticket histories plus knowledge base snippets in a single call, so you're not chaining requests or losing thread. No public benchmarks means you'll want a 2-week A/B test against your current classifier, but if accuracy lands above 92% on your labels, the cost savings fund an extra support hire by Q3. Buy this if your ticket volume makes every tenth of a cent matter and you can afford the validation sprint upfront.

Bulk document summarization pipeline

Why gpt-oss-20b works for overnight research digest jobs

A 4-person investment research team summarizes 200+ earnings transcripts and analyst reports each quarter into a single digest. They run the job overnight, so latency doesn't matter—cost and context do. gpt-oss-20b's 131k window fits most transcripts whole, eliminating the chunking logic that breaks narrative flow in longer models with smaller windows. At $0.02 input per Mtok, processing 50M tokens of source material costs $1 versus $2.50 on GPT-4o-mini. The lack of public benchmarks is less risky here because the team reviews every summary before publication anyway. If your use case is batch, human-reviewed, and input-heavy, this model pays for itself in the first run.

Internal knowledge base Q&A

When gpt-oss-20b is the right call for employee self-service search

A 30-person logistics startup wants employees to query their Notion wiki, Slack archives, and SOPs through a single chat interface. Average query volume is 150/day, mostly straightforward lookups—tracking a shipment status, finding a vendor contact, pulling a policy doc. gpt-oss-20b's 131k context lets you stuff the top 20 search results into the prompt without retrieval re-ranking, and at $0.02/$0.09 per Mtok, monthly costs stay under $15 even with generous output. The trade-off: no benchmarks means you can't predict accuracy on edge-case questions, so plan to surface a 'not confident' flag and route 10-15% of queries to Slack for human backup. If your team tolerates occasional misses and you're optimizing for cost over perfection, this is the model.

Frequently asked

Is gpt-oss-20b good for general text generation tasks?

Yes, with a 131K token context window, gpt-oss-20b handles most document processing, summarization, and content generation work comfortably. At $0.02/$0.09 per Mtok, it's positioned as a budget option for high-volume workflows where you need decent quality without bleeding cash. Expect solid performance on standard tasks, though no public benchmarks exist to verify claims against GPT-4 or Claude.

Is gpt-oss-20b cheaper than GPT-4o or Claude Sonnet?

Significantly cheaper. GPT-4o runs around $2.50/$10 per Mtok, and Claude Sonnet 3.5 sits at $3/$15 per Mtok — both are 100x+ more expensive than gpt-oss-20b's $0.02/$0.09 pricing. If you're processing millions of tokens daily and can tolerate lower reasoning capability, the cost savings are substantial. For complex reasoning or coding, pay up for the flagship models.

Can it handle 131K tokens without quality degradation?

The 131K context window matches GPT-4 Turbo's capacity, so technical ceiling exists for long documents. However, without published benchmarks on needle-in-haystack tests or multi-document reasoning, you're trusting OpenAI's implementation. Test with your actual use case — some 20B parameter models struggle with coherence past 64K tokens despite advertised limits.

How does gpt-oss-20b compare to GPT-3.5 Turbo?

GPT-3.5 Turbo costs $0.50/$1.50 per Mtok with a 16K context window, making gpt-oss-20b 25x cheaper on input and 8x larger context. The trade-off is likely weaker reasoning and instruction-following — 20B parameters typically underperform GPT-3.5's architecture on complex prompts. Use gpt-oss-20b for bulk extraction and classification; stick with 3.5 Turbo when accuracy matters more than cost.

Should I use this for production chatbots or customer support?

Only if cost is the primary constraint and queries are straightforward. The lack of public benchmarks means you can't verify response quality, hallucination rates, or safety filtering against known standards. For customer-facing applications, test extensively before deploying — a bad response costs more than the API savings. Consider GPT-3.5 Turbo or Claude Haiku for production chat where reputation matters.

Compare with

More language models

See all language models →

Data last verified 13 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.