---
title: OpenAI: Gpt Oss 20b (free) API | Text Generation | ModelsLab
description: Free Mixture-of-Experts LLM with 21B total params (3.6B active), 128K context, runs on 16GB VRAM for efficient local reasoning, agentic tasks, and.
url: https://modelslab.com/models/openai/openai-gpt-oss-20b-free.md
canonical: https://modelslab.com/models/openai/openai-gpt-oss-20b-free.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:08:20.229953Z
---

OpenAI: gpt-oss-20b (free)
---

 [LLMs.txt](https://modelslab.com/models/open_router/openai-gpt-oss-20b-free/llms.txt) [.md](https://modelslab.com/models/openai/openai-gpt-oss-20b-free.md)

openai-gpt-oss-20b-free openai Closed Source Model

OpenAI: gpt-oss-20b (free)
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### OpenAI: gpt-oss-20b (free)

openai openai-gpt-oss-20b-free

Copy model ID

PricingInput $0.00 / 1M tokens

Output $0.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[AA](https://modelslab.com/models/open_router/arcee-ai-trinity-large-preview-free)[Open Router](https://modelslab.com/models/open_router)

 [Arcee AI: Trinity Large Preview (free)

Closed Source Model](https://modelslab.com/models/open_router/arcee-ai-trinity-large-preview-free)

[![Gemini 2.5 Flash Image Preview ](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/97c6f065-57f9-45b0-a190-08e5f97f70a8.png)](https://modelslab.com/models/google/gemini-2.5-flash-image-preview)[Google](https://modelslab.com/models/google)

 [Gemini 2.5 Flash Image Preview

Closed Source Model](https://modelslab.com/models/google/gemini-2.5-flash-image-preview)

[N8](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x7b-instruct-v01)[Together AI](https://modelslab.com/models/together_ai)

 [nim/mistralai/mixtral-8x7b-instruct-v01

Closed Source Model](https://modelslab.com/models/together_ai/nim-mistralai-mixtral-8x7b-instruct-v01)

[DD](https://modelslab.com/models/open_router/deepseek-deepseek-chat)[Open Router](https://modelslab.com/models/open_router)

 [DeepSeek: DeepSeek V3

Closed Source Model](https://modelslab.com/models/open_router/deepseek-deepseek-chat)

[MM](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2)[Together AI](https://modelslab.com/models/together_ai)

 [MiniMax M2

Closed Source Model](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2)

[II](https://modelslab.com/models/open_router/inflection-inflection-3-pi)[Open Router](https://modelslab.com/models/open_router)

 [Inflection: Inflection 3 Pi

Closed Source Model](https://modelslab.com/models/open_router/inflection-inflection-3-pi)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-9b-v2-free)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 9B V2 (free)

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-9b-v2-free)

[QC](https://modelslab.com/models/open_router/qwen-qwen-2.5-coder-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Qwen2.5 Coder 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-2.5-coder-32b-instruct)

[OO](https://modelslab.com/models/open_router/openai-o3-pro)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: o3 Pro

Closed Source Model](https://modelslab.com/models/open_router/openai-o3-pro)

[PS](https://modelslab.com/models/open_router/perplexity-sonar-pro-search)[Open Router](https://modelslab.com/models/open_router)

 [Perplexity: Sonar Pro Search

Closed Source Model](https://modelslab.com/models/open_router/perplexity-sonar-pro-search)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-mini)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o-mini

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-mini)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-llama-8B)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Llama 8B

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-llama-8B)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Qwen 14B

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-qwen-14B)

[MM](https://modelslab.com/models/open_router/mistralai-mistral-medium-3.1)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mistral Medium 3.1

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mistral-medium-3.1)

[CV](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-llama-70B-Turbo)[Together AI](https://modelslab.com/models/together_ai)

 [Cogito V1 Preview Llama 70B Turbo

Closed Source Model](https://modelslab.com/models/together_ai/deepcogito-cogito-v1-preview-llama-70B-Turbo)

[DR](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)[ModelsLab](https://modelslab.com/models/deepseek)

 [DeepSeek R1 Distill Qwen 1.5B

Closed Source Model](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

[NN](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Super-120B-A12B-BF16)[Together AI](https://modelslab.com/models/together_ai)

 [Nvidia Nemotron 3 Super 120B A12b Bf16

Closed Source Model](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Super-120B-A12B-BF16)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-3.2-3b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 3.2 3B Instruct

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-3.2-3b-instruct)

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

### Technical Specifications

Model IDopenai-gpt-oss-20b-freeCategoryLLM ModelsTaskText GenerationAddedFebruary 20, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate OpenAI: Gpt-Oss-20b (Free) into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "openai-gpt-oss-20b-free",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/openai/openai-gpt-oss-20b-free/api) for SDKs, code examples in Python, JavaScript, and more.

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about OpenAI: Gpt-Oss-20b (Free)](https://modelslab.com/openai-gpt-oss-20b-free) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Openai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

OpenAI: Gpt-Oss-20b (Free) FAQ
---

### What is 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...

### How do I use the OpenAI: Gpt-Oss-20b (Free) API?

You can integrate OpenAI: Gpt-Oss-20b (Free) into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "openai-gpt-oss-20b-free" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### What is the OpenAI: Gpt-Oss-20b (Free) model ID?

The model ID for OpenAI: Gpt-Oss-20b (Free) is "openai-gpt-oss-20b-free". Use this ID in your API requests to specify this model.

### Does OpenAI: Gpt-Oss-20b (Free) have a free tier?

Yes, ModelsLab offers a free tier that lets you try OpenAI: Gpt-Oss-20b (Free) and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*