openai
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...
Context
131k tokens
Input / 1M tokens
$0.03
Output / 1M tokens
$0.14
Benchmark
—
Pricing
Input tokens$0.03 per 1M tokens
Output tokens$0.14 per 1M tokens
Technical details
Model IDopenai/gpt-oss-20b
Context window131k tokens
Input modalitiestext
Output modalitiestext
TokenizerGPT
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'openai/gpt-oss-20b',
messages: [{ role: 'user', content: 'Hello!' }],
})