Gpt-oss-20b
gpt-oss-20b Open Reasoning

Deploy gpt oss 20b model
MoE Efficiency
21B Total 3.6B Active
Activates 3.6B parameters per token from 21B total via top-4 routing from 32 experts.
Agentic Workflows
Native Tool Calling
Supports function calling and external tools for multi-step reasoning tasks.
Configurable Depth
Low Mid High Reasoning
Adjust reasoning effort in prompts for speed-accuracy tradeoffs.
Examples
See what Gpt-oss-20b can create
Copy any prompt below and try it yourself in the playground.
Code Analysis
“Analyze this Python function for bugs and suggest optimizations: def fibonacci(n): if n <= 1: return n else: return fibonacci(n-1) + fibonacci(n-2). Reasoning: high.”
Scientific Summary
“Summarize quantum entanglement basics and implications for computing. Use structured output with key facts, equations, and applications. Reasoning: medium.”
Tool Chain
“Plan steps to fetch weather data via API, analyze trends, and plot results. Call tools as needed. Reasoning: high.”
Math Proof
“Prove Pythagorean theorem using similar triangles. Output chain-of-thought steps and diagram description. Reasoning: high.”
For Developers
A few lines of code.
gpt-oss-20b. One API call.
ModelsLab handles the infrastructure: fast inference, auto-scaling, and a developer-friendly API. No GPU management needed.
- Serverless: scales to zero, scales to millions
- Pay per token, no minimums
- Python and JavaScript SDKs, plus REST API
import requestsresponse = requests.post("https://modelslab.com/api/v7/llm/chat/completions",json={"key": "YOUR_API_KEY","prompt": "","model_id": ""})print(response.json())