首页/OpenAI: GPT OSS 20B
OpenAI

OpenAI: GPT OSS 20B

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 lower-latency inference and deployability on consumer or single-GPU hardware. The model is trained in OpenAI’s Harmony response format and supports reasoning level configuration, fine-tuning, and agentic capabilities including function calling, tool use, and structured outputs.
价格

企业客户联系客户经理享专属折扣

输入$0.05/百万 tokens
输出$0.2/百万 tokens

使用以下代码示例来集成我们的API:

1from openai import OpenAI
2
3client = OpenAI(
4    api_key="<Your API Key>",
5    base_url="https://api.jiekou.ai/openai"
6)
7
8response = client.chat.completions.create(
9    model="openai/gpt-oss-20b",
10    messages=[
11        {"role": "system", "content": "You are a helpful assistant."},
12        {"role": "user", "content": "Hello, how are you?"}
13    ],
14    max_tokens=32768,
15    temperature=0.7
16)
17
18print(response.choices[0].message.content)

信息

提供商
OpenAI
量化
bf16

支持的功能

上下文长度
131072
最大输出
32768
结构化输出
支持
推理
支持
Input Capabilities
text, image
Output Capabilities
text