OpenAI's gpt-oss-120b Is Out: When You Should Self-Host vs. Stay on the API
OpenAI released gpt-oss-120b and gpt-oss-20b as open weights on Aug 5, 2025, under Apache 2.0. The honest break-even math on self-hosting vs. the API, the data-residency case, and the 3 questions that decide it.
Hrishikesh Baidya
August 8, 202513 min read
0%
On August 5, 2025, OpenAI released gpt-oss-120b and gpt-oss-20b as open-weight models under the Apache 2.0 license — the first time you can legally download an OpenAI reasoning model, run it on your own GPU, and never send a token to their API. The obvious question every Indian SMB CTO asked us that week: "should we self-host this and stop paying OpenAI?" The honest answer is usually no — but the cases where it's yes are specific and worth knowing. Here's the break-even math and the three questions that actually decide it.
117B
gpt-oss-120b Total Params
5.1B
Active Params per Token (MoE)
80 GB
Single GPU It Fits On
Apache 2.0
License (Commercial OK)
## The 60-Word Answer
Self-host gpt-oss-120b only if one of three things is true: you have hard data-residency rules that forbid sending data to a US API, your token volume is high and steady enough to beat GPU rental on cost, or you need full control over latency and uptime. For everyone else — spiky traffic, small volume, no residency constraint — the API is cheaper and far less work. Most SMBs should stay on the API.
## Why This Matters Now
OpenAI's gpt-oss release changed the choice set. gpt-oss-120b uses a mixture-of-experts design: 117B total parameters but only 5.1B active per token, which is why it runs on a single 80GB GPU. The smaller gpt-oss-20b (21B total, 3.6B active) runs in 16GB — laptop-and-edge territory. Both ship natively quantized in MXFP4, support a 128K context, and carry the Apache 2.0 license, meaning you can use them commercially without asking anyone (per the model card on Hugging Face). For the first time, "run an OpenAI-quality model entirely inside our own network" is a real, legal option for Indian businesses with data-residency worries.
API = pay per token, ₹0 when idle. Self-host = a fixed monthly GPU bill whether you run 1 request or 1 million. Self-hosting wins only at high, steady volume.
🔧
Operational load
API = none, OpenAI runs it. Self-host = you own GPU drivers, the inference server (vLLM/TGI), scaling, uptime, and the 3am page when it OOMs. Real engineering time.
🔒
Data residency
API = data leaves your network to a US endpoint. Self-host = nothing leaves your VPC. For regulated data or strict client contracts, this is the whole reason to self-host.
⚡
Latency control
API = subject to provider load and your distance to the region. Self-host = you control it, can co-locate with your app, and never get rate-limited by someone else.
## The Break-Even Math (Real Numbers)
Here's the calculation we run for clients. An 80GB GPU instance (an H100 or A100-80GB) rents for roughly ₹1.6L–₹2.6L per month on cloud GPU providers, or you can buy/colocate. Call it ₹2L/month all-in with ops. The API cost depends on your token volume. The chart shows where the lines cross for a workflow averaging a moderate token mix.
Read the chart this way: below the break-even, the API is cheaper AND zero-ops — an easy win. Above it, self-hosting saves money if you can keep the GPU busy. The trap is buying a GPU for spiky traffic: you pay ₹2L/month to have it sit idle most of the day. Exact numbers depend on your token mix and GPU pricing — run your own.
## The 3 Questions That Decide It
1
Do you have a hard data-residency rule?
If a contract or regulation says customer data cannot leave India or cannot touch a US API, self-hosting is the answer regardless of cost. This is the single most common legitimate reason we see.
2
Is your volume high AND steady?
A GPU you keep busy 18 hours a day beats the API. A GPU idle 20 hours a day burns money. Self-hosting rewards predictable, batch-heavy, or high-throughput workloads — not spiky chat traffic.
3
Do you have the ops muscle?
Running vLLM on a GPU box in production is real work: driver versions, OOM tuning, autoscaling, monitoring, on-call. If you don't have someone who'll own that, the API's "they run it" is worth a lot.
## The Self-Host Readiness Checklist
Before you commit to running gpt-oss yourself, you should be able to tick every box below. If you can't, the API is still your answer.
A written data-residency rule, regulation, or client contract that forbids the API — not a vague preference
A realistic monthly token volume estimate, and the break-even math run against current GPU pricing
Confirmation your traffic is steady, not spiky — a GPU you can keep busy most of the day
An owner for GPU ops: drivers, the inference server, scaling, monitoring, and on-call
The right-sized model chosen — gpt-oss-20b in 16GB may clear your bar far cheaper than 120b
A fallback plan to the API (one base-URL change) if self-hosting underperforms
## If You Do Self-Host: The Minimal Setup
For the cases where self-hosting wins, the fastest path to a working endpoint is vLLM, which serves gpt-oss with an OpenAI-compatible API — so your existing code barely changes.
# On an 80GB-GPU box (H100 / A100-80GB)
pip install vllm
# Serve gpt-oss-120b with an OpenAI-compatible endpoint
vllm serve openai/gpt-oss-120b \
--tensor-parallel-size 1 \
--max-model-len 128000
# Your app points at the local server instead of api.openai.com:
# base_url = "http://localhost:8000/v1"
# The Chat Completions calls are otherwise identical.
The OpenAI-compatible endpoint is the quiet superpower here: code written against the OpenAI SDK works against your self-hosted model with a one-line base_url change. That makes "try self-hosting, fall back to API" a low-risk experiment rather than a rewrite.
## Common Mistakes
📉
Buying a GPU for spiky traffic
Symptom: ₹2L/month bill, GPU idle most of the day. Fix: if traffic is bursty, stay on the API — you only pay when you run.
🧮
Forgetting ops cost in the math
Symptom: "the GPU is cheaper than the API." Fix: add the engineer-hours for setup, monitoring, and on-call. That labour is often bigger than the GPU rental.
🎯
Over-sizing the model
Symptom: self-hosting 120b for a classification task. Fix: gpt-oss-20b in 16GB may clear your bar at a fraction of the GPU cost. Right-size to the task.
🔐
Self-hosting "for security" without a real rule
Symptom: a vague "we want control." Fix: write down the actual contract or regulation. If there isn't one, you're paying for a feeling, not a requirement.
## When NOT to Self-Host (the Default for Most SMBs)
Stay on the API if your traffic is spiky, your monthly token volume is modest, you have no hard data-residency rule, and you don't have a dedicated infra owner. That covers the large majority of Indian SMBs we work with. Self-hosting an open-weight model is a genuinely useful option in 2025 — but it's a high-volume, high-control, regulated-data tool, not a default cost-saver. The cheapest setup for most teams is still "call the API, pay only for what you use."
## Real Example: When We Said Yes, and When We Said No
Two clients, same week, opposite answers — because the three questions came out differently.
A fintech lender in Mumbai had a contractual rule that borrower data could not leave their VPC. For them, self-hosting gpt-oss-120b on a colocated GPU was the only compliant path, and the steady document-processing volume kept the GPU busy. We said yes and built the vLLM endpoint. A 30-person D2C brand asked the same question the same week — but their traffic was spiky support chat at modest volume, no residency rule, no infra owner. For them self-hosting would have meant a ₹2L/month idle GPU to replace a ₹4,000/month API bill. We said no, firmly. The discipline is the same as our GPT-5 launch-day analysis: measure your actual situation, don't follow the headline.
Our AI automation team runs this exact three-question screen before any self-hosting build, and we've reused the model-as-config pattern from our 2025 n8n workflows so clients can switch between self-hosted and API endpoints with a config change.
## Frequently Asked Questions
### What hardware do I need to run gpt-oss-120b?
A single GPU with about 80GB of memory — an H100 or A100-80GB — thanks to its mixture-of-experts design and native MXFP4 quantization. The smaller gpt-oss-20b runs in roughly 16GB, which fits a high-end consumer or edge GPU. Both natively support a 128K context window.
### Is gpt-oss free to use commercially?
Yes. Both gpt-oss-120b and gpt-oss-20b are released under the Apache 2.0 license, which permits commercial use, modification, and redistribution without a separate agreement. You still pay for the hardware to run them, but there are no licensing fees to OpenAI.
### Is self-hosting gpt-oss cheaper than the OpenAI API?
Only at high, steady volume. A self-hosted GPU is a flat monthly cost whether idle or busy, while the API charges per token. Below your break-even (often several million tasks a month), the API is both cheaper and zero-ops. Run your own numbers with your real token mix.
### When does self-hosting actually make sense?
Three cases: a hard data-residency rule that forbids sending data to a US API; high and steady volume that keeps a GPU busy; or a strict need to control latency and uptime yourself. If none of these apply, the API is the better default for an SMB.
### Can I switch between self-hosted gpt-oss and the OpenAI API easily?
Yes, if you serve the model with an OpenAI-compatible server like vLLM. Your code only changes the base URL — the Chat Completions calls stay identical. That makes self-hosting a low-risk experiment you can roll back to the API in one config change.
### Should a small business self-host gpt-oss in 2025?
Usually no. Most SMBs have spiky traffic, modest volume, no residency requirement, and no dedicated infra owner — exactly the profile where the API wins on both cost and effort. Self-hosting is a powerful option for regulated or high-throughput workloads, not a general cost-saver.
Want an honest self-host vs. API decision for your AI workload?
We run a fixed-scope assessment: your data-residency rules, real token volume, and ops capacity — then a clear recommendation with the break-even math, and the build either way. Typical assessment: ₹40k, credited toward the build. Suitable if you're weighing gpt-oss self-hosting against the API. First call is technical.
As Hrishikesh, our CTO, puts it: open weights are a gift, but a GPU you forgot to keep busy is the most expensive idle hardware you'll ever own. Answer the three questions first.