OpenAI: gpt-oss-20b (free)API 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.
- Price
- Free10 requests a minute and 200 a day per key
- 上下文
- 131K tokens
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:free", "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:free",
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:free",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 gpt-oss-20b (free) 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/gpt-oss-20b:free;其余代码保持不变。
About gpt-oss-20b (free)
- 标价
- $0.17 / $0.36in / out per 1M
- 端点
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 (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens.
其上下文窗口为131K个令牌(131,072),单次请求中可容纳约98,000个英语单词。
gpt-oss-20b (free) is one of 113 OpenAI models on OpenCheap.
关于定价的问题
How much does the gpt-oss-20b (free) API cost?
gpt-oss-20b (free) is free to call on OpenCheap (10 requests a minute and 200 a day per key). Its list price is $0.17 per 1M input tokens and $0.36 per 1M output tokens.
What is the context window of gpt-oss-20b (free)?
其上下文窗口为131K个令牌(131,072),单次请求中可容纳约98,000个英语单词。
How do I call the gpt-oss-20b (free) API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/gpt-oss-20b:free. One OpenCheap key works for every model; the rest of your code stays the same.
OpenAI 的更多内容
- gpt-oss-20bgpt-oss-20b每100万·13.1万上下文为 $0.0003 / $0.0015
- gpt-oss-120bgpt-oss-120b0.0049 美元 / 0.021 美元 每 100 万 · 13.1 万 上下文
- GPT 5.5gpt-5.5每1M · 1M上下文 $2.00 / $12.00
- chat-latestchat-latest$5.25 / $31.48 per 1M · 272K context
- Codex Minicodex-mini-latest每1M 1.50美元 / 6.00美元
- gpt-3.5-turbogpt-3.5-turbo每1M·4K内容 $0.52 / $1.57
- 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