OpenAI: gpt-oss-20bAPI pricing
The smaller of OpenAI's two gpt-oss open-weight models, a mixture-of-experts with 21B total and 3.6B active parameters. Apache 2.0 licensed and text-only, it offers low to high reasoning effort.
- 每100万枚代币的价格
- $0.0003 / $0.0015input / output−99%
- 缓存的输入
- $0.00016per 1M tokens
- 上下文
- 13.1万枚代币最大产出量为11.7万枚
- 服务提供商
- 15
- 最快
- 530 tok/sGroq
服务提供商
15 providers ·
128K 上下文 · 16K 最大输出
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
128K 上下文 · 16K 最大输出
支持的参数9
- 抽样
温度top_plogit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
32K context · 117K max output
支持的参数9
- 抽样
温度top_ptop_kmin_p种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止- 未确认
工具
13.1万上下文 · 11.7万最大输出量
支持的参数16
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
131K 上下文
支持的参数12
- 抽样
温度top_ptop_k种子logit_bias- 处罚
频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
131K context · 16K max output
支持的参数11
- 抽样
温度top_p种子logit_bias- 处罚
存在惩罚- 输出
停止response_format- 工具
工具工具选择- 推理
推理include_reasoning
13.1万上下文 · 11.7万最大输出量
支持的参数16
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
- Route 1 · bf16131K context · 117K max outputCache $0.013 · 1.11 s · 114 tok/s · 92.6 %1.11 s · 114 tok/sInput $0.025Cache read $0.013Output $0.12Latency 1.11 sSpeed 114 tok/sUptime 92.6 %$0.025 in$0.12 out
- Route 2 · bf16131K context · 117K max outputCache $0.016 · 0.22 s · 96 tok/s · 99.5 %0.22 s · 96 tok/sInput $0.032Cache read $0.016Output $0.15Latency 0.22 sSpeed 96 tok/sUptime 99.5 %$0.032 in$0.15 out
支持的参数16
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
13.1万上下文 · 11.7万最大输出量
支持的参数16
- 抽样
温度top_ptop_k种子- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
13.1万上下文 · 11.7万最大输出量
支持的参数17
- 抽样
温度top_ptop_k种子logit_bias- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出logprobstop_logprobs- 工具
工具工具选择- 推理
推理include_reasoning
13.1K 上下文 · 8.1K 最大输出
支持的参数8
- 抽样
温度top_ptop_k- 处罚
频率惩罚- 输出
response_format结构化输出- 推理
推理include_reasoning- 未确认
停止工具
- Route 1131K context · 117K max outputCache $0.073* · 0.55 s · 171 tok/s · 100 %0.55 s · 171 tok/sInput $0.073Cache read $0.073 (no cache discount: the input price)Output $0.16Latency 0.55 sSpeed 171 tok/sUptime 100 %$0.073 in$0.16 out
- Route 2131K context · 117K max outputCache $0.073* · 0.41 s · 494 tok/s · 100 %0.41 s · 494 tok/sInput $0.073Cache read $0.073 (no cache discount: the input price)Output $0.16Latency 0.41 sSpeed 494 tok/sUptime 100 %$0.073 in$0.16 out
支持的参数8
- 抽样
温度top_ptop_k- 输出
停止- 工具
工具工具选择- 推理
推理include_reasoning
128K 上下文 · 32K 最大输出
支持的参数11
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
13.1K 上下文 · 6.5K 最大输出
支持的参数10
- 抽样
温度top_p种子- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
131K 上下文 · 32K 最大输出
支持的参数16
- 抽样
温度top_ptop_kmin_p种子logit_bias- 处罚
重复惩罚频率惩罚存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择- 推理
推理include_reasoning
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/gpt-oss-20b", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/gpt-oss-20b",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/gpt-oss-20b",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 gpt-oss-20b 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gpt-oss-20b;其余代码保持不变。
About gpt-oss-20b
- 标价
- $0.17 / $0.36in / out per 1M
- 保存与列表
- 99 %on the output price
- 请求示例
- $0.000004510,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
gpt-oss-20b costs from $0.0003 per 1M input tokens and $0.0015 per 1M output tokens on OpenCheap, with cached input at $0.00016 per 1M tokens. Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 100 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0000045, and 1,000 such requests about $0.0045. It can also be called free as gpt-oss-20b:free (10 requests a minute and 200 a day per key).
15 providers serve gpt-oss-20b on OpenCheap. Its context window is 131K tokens (131,072), room for roughly 98,000 words of English in one request.
gpt-oss-20b is one of 113 OpenAI models on OpenCheap.
The public list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens. OpenCheap is from $0.0003 and $0.0015, as of 2026-12-04 09:18 UTC.
Prices as of 2026-12-04 09:18 UTC.
关于定价的问题
How much does the gpt-oss-20b API cost per 1M tokens?
gpt-oss-20b costs from $0.0003 per 1M input tokens and $0.0015 per 1M output tokens on OpenCheap, with cached input at $0.00016 per 1M tokens. Prices as of 2026-12-04 09:18 UTC.
What does one gpt-oss-20b request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0000045, and 1,000 such requests about $0.0045. Every answer reports its own cost in usage.cost.
Is gpt-oss-20b cheaper on OpenCheap than its list price?
Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 100 % less here.
Is there a free version of gpt-oss-20b?
Yes. It can be called free as gpt-oss-20b:free (10 requests a minute and 200 a day per key).
Which providers serve gpt-oss-20b?
15 providers serve gpt-oss-20b on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of gpt-oss-20b?
其上下文窗口为131K个令牌(131,072),单次请求中可容纳约98,000个英语单词。
How do I call the gpt-oss-20b API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gpt-oss-20b. One OpenCheap key works for every model; the rest of your code stays the same.
OpenAI 的更多内容
- gpt-oss-20b (free)gpt-oss-20b:freeFree · 131K context
- gpt-oss-120bgpt-oss-120b$0.019 / $0.074 per 1M · 131K context
- GPT 5.5gpt-5.5每1M · 1M上下文 $2.00 / $12.00
- chat-latestchat-latest$5.25 / $31.53 per 1M · 272K context
- Codex Minicodex-mini-latest每1M 1.50美元 / 6.00美元
- gpt-3.5-turbogpt-3.5-turbo$0.53 / $1.58 per 1M · 4K context
- GPT-3.5 Turbo(旧版 v0613)gpt-3.5-turbo-0613每1M·4K内容 $1.05 / $2.10
- GPT-3.5 Turbo 16kgpt-3.5-turbo-16k每1M·16K上下文 $3.15 / $4.20
类似型号
- google/gemma-3-4b-itGoogle · 131K context$0.0008 / $0.0015 per 1M
- google/gemma-3-12b-itGoogle · 131K context$0.00063 / $0.0019 per 1M
- ministral-3-3bMistral · 128K context$0.0015 / $0.0015 per 1M
- Ministral 14B 3.0Mistral · 128K context$0.003 / $0.003 per 1M
- NVIDIA Nemotron Nano 12B v2 VL BF16NVIDIA · 128K context$0.002 / $0.006 per 1M
- Qwen3 235B A22B Instruct 2507Qwen · 26.2万语境$0.0014 / $0.0075 per 1M