n4nAI
← Models
O

OpenAI: gpt-oss-20b

openai/gpt-oss-20b

About

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
131,072
Max output
32,768
Tokenizer
GPT
Knowledge cutoff
Input
text
Output
text

Pricing

per 1M tokens
Input
$0.05
Output
$0.20

Use this model

curl https://api.n4n.ai/v1/chat/completions \
  -H "Authorization: Bearer $N4N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-oss-20b",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Authenticate with an API key from your console; prices above are per 1M tokens.

Providers

max context 131,072
ProviderInput $/1MOutput $/1M
Wandb wandb$0.05$0.20
Yuwu yuwu$0.05$0.20

Supported parameters

frequency_penaltyinclude_reasoninglogprobsmax_tokensmin_ppresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_atop_ktop_logprobstop_p