---
title: OpenAI: Gpt Oss 20b (batch) | Text Generation | ModelsLab
description: Build with OpenAI: Gpt Oss 20b (batch) API by OpenAI. Text generation, chat, code, and reasoning. Plans from $21/month.
url: https://modelslab.com/models/openai/openai-gpt-oss-20b-batch.md
canonical: https://modelslab.com/models/openai/openai-gpt-oss-20b-batch
type: product
component: Playground/LLM/Index
generated_at: 2026-09-03T09:43:08.722428Z
---

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

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

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

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

text files

Send

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

openai openai-gpt-oss-20b-batch

Copy model ID

PricingInput $0.05 / 1M tokens

Output $0.20 / 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 Tokens4000

Top P0.9

Frequency Penalty0

Presence Penalty0

Thinkinglow

lowmediumhigh

Deeper thinking spends more of the Max Tokens budget before the answer starts.

Model Info

Support

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

[![GPT 5.2](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2bdd00f4-1692-49d8-a562-72cb1753d0ff.png)](https://modelslab.com/models/openai/gpt-5.2)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.2](https://modelslab.com/models/openai/gpt-5.2)

[![GPT 5.1](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)](https://modelslab.com/models/openai/gpt5.1)[OpenAI](https://modelslab.com/models/openai)

 [GPT 5.1](https://modelslab.com/models/openai/gpt5.1)

[![Gemini 3 Pro Preview](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/1846e76f-9d5c-4a35-a43a-82db45b7bb8b.png)](https://modelslab.com/models/google/gemini-3-pro-preview)[Google](https://modelslab.com/models/google)

 [Gemini 3 Pro Preview](https://modelslab.com/models/google/gemini-3-pro-preview)

[![GPT-5.1-Codex-Max](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)](https://modelslab.com/models/openai/gpt-5.1-codex-max)[OpenAI](https://modelslab.com/models/openai)

 [GPT-5.1-Codex-Max](https://modelslab.com/models/openai/gpt-5.1-codex-max)

### Lower cost per run

Open-source models we host, unlimited on the $149/month plan.

[Modelslab: Custom LLM

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Custom LLM

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

[![gpt-oss-20b](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/8b2f0440-52cc-4f41-93eb-d31006ad71e2.webp)](https://modelslab.com/models/openai/gpt-oss-20b)[OpenAI](https://modelslab.com/models/openai)

 [gpt-oss-20b

Closed Source Model](https://modelslab.com/models/openai/gpt-oss-20b)

[![Gemma 3N E4B Instruct](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b5ad4a07-e4eb-4d39-85d1-58ec000a8a4f.png)](https://modelslab.com/models/google/google-gemma-3n-E4B-it)[Google](https://modelslab.com/models/google_deepmind)

 [Gemma 3N E4B Instruct

Closed Source Model](https://modelslab.com/models/google/google-gemma-3n-E4B-it)

[Qwen3.5 35B A3b](https://modelslab.com/models/Qwen/Qwen-Qwen3.5-35B-A3B)[Qwen](https://modelslab.com/models/open_router)

 [Qwen3.5 35B A3b

Closed Source Model](https://modelslab.com/models/Qwen/Qwen-Qwen3.5-35B-A3B)

[![GPT OSS 120b](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/32ccebf4-aaac-46b2-af6a-b19d11fcf8fa.webp)](https://modelslab.com/models/openai/gpt-oss-120b)[OpenAI](https://modelslab.com/models/openai)

 [GPT OSS 120b

Closed Source Model](https://modelslab.com/models/openai/gpt-oss-120b)

[![Gemma 3 4b it](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/c419acdb-893e-4bda-ac4d-cec941648345.png)](https://modelslab.com/models/google/google-gemma-3-4b-it)[Google](https://modelslab.com/models/open_router)

 [Gemma 3 4b it

Closed Source Model](https://modelslab.com/models/google/google-gemma-3-4b-it)

Related Models
---

Discover similar models you might be interested in

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

[#### Meta/Meta Llama 3 70B Instruct Turbo

meta-llama-Meta-Llama-3-70B-Instruct-Turbo

From $0.88/M tokens](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3-70B-Instruct-Turbo)

[#### Meta/Meta Llama 3.2 11B Vision Instruct Turbo

meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo

From $0.05/M tokens](https://modelslab.com/models/meta/meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo)

[#### Qwen/Qwen: Qwen3 Coder 480B A35B

qwen-qwen3-coder

From $0.65/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-coder)

[#### Anthropic/Anthropic: Claude Fable 5.1 (batch)

anthropic-claude-fable-5.1-batch

From $15.00/M tokens](https://modelslab.com/models/anthropic/anthropic-claude-fable-5.1-batch)

[#### OpenAI/OpenAI: GPT-3.5 Turbo (older v0613)

openai-gpt-3.5-turbo-0613

From $1.50/M tokens](https://modelslab.com/models/openai/openai-gpt-3.5-turbo-0613)

[#### OpenAI/OpenAI: gpt-oss-20b

openai-gpt-oss-20b

From $0.08/M tokens](https://modelslab.com/models/openai/openai-gpt-oss-20b)

[#### Qwen/Qwen: Qwen3 VL 30B A3B Thinking

qwen-qwen3-vl-30b-a3b-thinking

From $1.30/M tokens](https://modelslab.com/models/qwen/qwen-qwen3-vl-30b-a3b-thinking)

[#### Google/Google: Gemini 3.7 Flash (batch)

google-gemini-3.7-flash-batch

From $1.13/M tokens](https://modelslab.com/models/google/google-gemini-3.7-flash-batch)

[#### Qwen/Qwen: Qwen3.7 Max

qwen-qwen3.7-max

From $2.95/M tokens](https://modelslab.com/models/qwen/qwen-qwen3.7-max)

[#### Moonshot AI/Kimi K2.6 Fp4

moonshotai-Kimi-K2.6

From $2.85/M tokens](https://modelslab.com/models/moonshotai/moonshotai-Kimi-K2.6)

[#### Google/Gemini 2.5 Flash Image Preview 

gemini-2.5-flash-image-preview

From $1.40/M tokens](https://modelslab.com/models/google/gemini-2.5-flash-image-preview)

[#### MiniMax/MiniMax: MiniMax M2

minimax-minimax-m2

From $0.64/M tokens](https://modelslab.com/models/minimax/minimax-minimax-m2)

[#### Z.ai/Z.ai: GLM 5.3

z-ai-glm-5.3

From $2.90/M tokens](https://modelslab.com/models/z-ai/z-ai-glm-5.3)

[#### Meta/Meta: Llama 3.1 70B Instruct

meta-llama-llama-3.1-70b-instruct

From $0.40/M tokens](https://modelslab.com/models/meta/meta-llama-llama-3.1-70b-instruct)

[#### ByteDance Seed/ByteDance Seed: Seed-2.0-Lite

bytedance-seed-seed-2.0-lite

From $1.13/M tokens](https://modelslab.com/models/bytedance-seed/bytedance-seed-seed-2.0-lite)

[#### Google/Google: Gemini 2.5 Pro

google-gemini-2.5-pro

From $5.63/M tokens](https://modelslab.com/models/google/google-gemini-2.5-pro)

[#### DeepSeek/DeepSeek: DeepSeek V3.2

deepseek-deepseek-v3.2

From $0.33/M tokens](https://modelslab.com/models/deepseek/deepseek-deepseek-v3.2)

[#### Meta/Meta: Llama 3.3 70B Instruct

meta-llama-llama-3.3-70b-instruct

From $0.21/M tokens](https://modelslab.com/models/meta/meta-llama-llama-3.3-70b-instruct)

About OpenAI: Gpt-Oss-20b (Batch)
---

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

CategoryLLM Models

TaskText Generation

Price$0.125 per million tokens

AddedAugust 28, 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 (Batch) 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-batch",
        "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>
```

### Pricing

OpenAI: Gpt-Oss-20b (Batch) API costs $0.125 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

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

[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 (Batch) FAQ
---

### What is OpenAI: Gpt-Oss-20b (Batch)?

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 (Batch) API?

You can integrate OpenAI: Gpt-Oss-20b (Batch) 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-batch" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does OpenAI: Gpt-Oss-20b (Batch) cost?

OpenAI: Gpt-Oss-20b (Batch) costs $0.125 per million tokens. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

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

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

### Do I need a paid plan to use OpenAI: Gpt-Oss-20b (Batch)?

Yes. ModelsLab is subscription-based with no free tier — plans start at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*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-09-03*