Get started
OpenAI
OpenAI

Openai/gpt Oss 20b

Openai/gpt Oss 20b is a reasoning model by OpenAI with function calling, web search, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It supports a 131K token context window with up to 33K tokens of output. Priced at $0.075 per million input tokens and $0.3 per million output tokens, it is one of the most cost-efficient options in its class. Access Openai/gpt Oss 20b through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingWeb SearchReasoningResponse SchemareasoningCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "groq/openai/gpt-oss-20b-a", "model_id": "groq/openai/gpt-oss-20b" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-3.5-turbo-b", "model_id": "openai/gpt-3.5-turbo" }, "weight": 33 }, { "variant": { "variant_id": "openai/gpt-4.1-c", "model_id": "openai/gpt-4.1" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Openai/gpt Oss 20b pricing and providers

Access Openai/gpt Oss 20b through Groq via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
GroqGroq131.1K32.8K$0.075$0.30+2

Other OpenAI models available through Inworld

Compare Openai/gpt Oss 20b with other OpenAI models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
OpenAIGPT 3.5 Turbo16.4K4.1K$0.50$1.50
OpenAIGPT 4.11M32.8K$2.00$8.00+2
OpenAIGPT 4.1 Mini1M32.8K$0.40$1.60+2
OpenAIGPT 4.1 Nano1M32.8K$0.10$0.40+1
OpenAIGPT 4.1 Nano 2025 04 141M32.8K$0.10$0.40+1
OpenAIGPT 4o128K16.4K$2.50$10.00+1
OpenAIGPT 4o 2024 08 06128K16.4K$2.50$10.00+1
OpenAIGPT 4o Mini128K16.4K$0.15$0.60+1
OpenAIGPT 4o Mini 2024 07 18128K16.4K$0.15$0.60+1
OpenAIGPT 4o Mini Audio Preview$0.15$0.60
OpenAIGPT 5 Mini272K128K$0.25$2.00+4
OpenAIGPT 5 Nano272K128K$0.05$0.40+4
OpenAIGPT 5.2272K128K$1.75$14.00+4
OpenAIGPT 5.41.1M128K$2.50$15.00+3
OpenAIGPT 5.4 Mini272K128K$0.75$4.50+4
OpenAIGPT 5.4 Nano272K128K$0.20$1.25+4
OpenAIGPT 5.51.1M128K$5.00$30.00+4
OpenAIGPT Audio Mini128K16.4K$0.60$2.40
OpenAIOpenai/gpt Oss 120b131.1K131.1K$0.039$0.19+2
OpenAIOpenai/gpt Oss 120b Turbo$0.15$0.60
OpenAIOpenai/gpt Oss Safeguard 20b131.1K65.5K$0.075$0.30+2

Start building with Openai/gpt Oss 20b

Access Openai/gpt Oss 20b and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Openai/gpt Oss 20b by OpenAI — Pricing, Specs & API Access | Inworld