gpt-oss-20b API pricing
$0.16 in, $0.72 out per million tokens.
Price · per million tokens, USD
Get a key| Tokens | OpenAI list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | — | $0.16 | — |
| Cached input | Billed at the input rate. | ||
| Output | — | $0.72 | — |
gpt-oss-20b: what it is · from OpenAI’s own model card, read 2026-10-20
OpenAI’s smaller open-weight model, for lower latency and local or specialized use. It is served as gpt-oss-20b at $0.16 input and $0.72 output per million tokens, on the same key as every other model in the catalog.
| gpt-oss-20b | |
|---|---|
| Developer | OpenAI |
| Parameters | 21B total, 3.6B active per token |
| Context | 131,072 tokens in its config |
| License | Apache-2.0 |
| Published | 2025-08-04 |
| Downloads, 30 days to 2026-10-20 | 5,933,604 |
| Source | openai/gpt-oss-20b |
From openai/gpt-oss-20b, read 2026-10-20.
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"gpt-oss-20b","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'gpt-oss-20b next to OpenAI’s other models · per million tokens, live
| Model | Here, in / out | 1,000 chat turns |
|---|---|---|
| GPT-6 Luna | $0.0625 / $0.20 | $0.23 |
| GPT OSS 120B Uncensored | $0.1095 / $0.728 | $0.58 |
| GPT-5.6 Luna | $0.12 / $0.72 | $0.60 |
| gpt-oss-20b | $0.16 / $0.72 | $0.68 |
| GPT-4o mini | $0.30 / $1.20 | $1.20 |
| gpt-oss-120b | $0.20 / $1.80 | $1.30 |
| GPT-6 Sol | $0.60 / $3.00 | $2.70 |
| GPT-6.1 Sol | $0.60 / $3.00 | $2.70 |
| GPT-5.6 Sol | $1.20 / $3.00 | $3.90 |
| GPT-5.6 Terra | $1.20 / $3.60 | $4.20 |
| GPT-5.4 Mini | $0.9375 / $5.625 | $4.69 |
| GPT-5.5 | $1.80 / $9.00 | $8.10 |
| GPT-6 Astra | $3.00 / $15.00 | $13.50 |
| GPT-5.4 | $3.125 / $18.75 | $15.63 |
| GPT-4o | $5.00 / $20.00 | $20.00 |
| GPT-5.3-Codex | $3.50 / $28.00 | $21.00 |
A chat turn is 2,000 input and 500 output tokens. Live from the catalog, ordered by the cost of 1,000 turns.
Worked for gpt-oss-20b: 1,000 turns are 2,000,000 input tokens and 500,000 output tokens. At $0.16 input and $0.72 output per million tokens, that is $0.32 + $0.36 = $0.68, paid from prepaid credit with no subscription.
gpt-oss-20b API · base URL and key
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="gpt-oss-20b",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'gpt-oss-20b',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"gpt-oss-20b","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.
Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.
More from OpenAI
gpt-oss-20b questions
- What is gpt-oss-20b?
- gpt-oss-20b is a model from OpenAI. Through UplinkSwitch it answers the OpenAI SDK on one key as gpt-oss-20b.
- How much does the gpt-oss-20b API cost?
- $0.16 per million input tokens and $0.72 per million output tokens.
- Is gpt-oss-20b free?
- It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0005.
- What is the gpt-oss-20b model id?
- gpt-oss-20b. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
- How do I get a gpt-oss-20b API key?
- Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls gpt-oss-20b and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.
- Is it the real gpt-oss-20b?
- Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. gpt-oss-20b's latest result: Same fingerprint since Oct 22.
- Is there a gpt-oss-20b API?
- Yes: gpt-oss-20b on the OpenAI format at https://api.uplinkswitch.com/v1, $0.16 input and $0.72 output per million tokens. No weights to download and no GPU of your own; the key also runs every other model in the catalog.
- How many parameters does gpt-oss-20b have?
- 21B total, 3.6B active per token, per openai/gpt-oss-20b.
- What is gpt-oss-20b's context window?
- 131,072 tokens in its config, per openai/gpt-oss-20b.
- Is gpt-oss-20b open source?
- Its weights are open on Hugging Face (openai/gpt-oss-20b); the license is Apache-2.0.
- What does gpt-oss-20b cost per 100 messages?
- $0.068 for 100 chat turns of 2,000 input and 500 output tokens each, at $0.16 input and $0.72 output per million tokens, from prepaid credit with no subscription.
- gpt-oss-20b or gpt-oss-120b?
- gpt-oss-20b is for speed and price; gpt-oss-120b is for harder reasoning. gpt-oss-20b is $0.16 / $0.72 per million tokens in / out, $0.68 for 1,000 chat turns; gpt-oss-120b is $0.20 / $1.80 per million tokens in / out, $1.30 for 1,000 chat turns. Both run on the same key, so send the same prompt to each.