Free Model logoFree Model
Back to all models

gpt-oss-20b

openai/gpt-oss-20b:free

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...

Stale or unknown

Access conditions

Review these requirements before copying the request.

Account
Account required
API key
Required
Payment method
Not required
Regions
Unknown
Free type
Free route

Use this model

Call the upstream API directly with the exact model ID shown on this page.

  1. 1Create or sign in to your OpenRouter account.Create an OpenRouter account
  2. 2Create an API key in provider settings.Create an API key
  3. 3Use the Quick test on the right to test your API key.
  4. 4Copy the example request on the right, replace the API key placeholder with your own key, and run it.
  5. 5Refer to the example request when using this route in your own project.
Base URL
https://openrouter.ai/api/v1
Model ID
openai/gpt-oss-20b:free

Quick test

Send a message to confirm that this route and your API key work.

Stored only in your browserYour key is saved in this browser and sent directly to OpenRouter. Free Model never receives, stores, or logs it on our servers. If you prefer not to save a key here, use the Example Request below on your own computer.

Example request

curl 'https://openrouter.ai/api/v1/chat/completions' \
  -H "Authorization: Bearer ${OPENROUTER_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-oss-20b:free","messages":[{"role":"user","content":"Reply with exactly: free-model-ok"}],"max_completion_tokens":16}'