---
title: OpenAI: Gpt Oss 120b API | Text Generation | ModelsLab
description: Open-weight reasoning model with 117B parameters (5.1B active), Mixture-of-Experts architecture, 128k context window, optimized for single H100 GPU.
url: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/openai-gpt-oss-120b.md
canonical: https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/openai-gpt-oss-120b.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-13T09:44:41.223100Z
---

OpenAI: gpt-oss-120b
---

 [LLMs.txt](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-oss-120b/llms.txt) [.md](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-oss-120b.md)

openai-gpt-oss-120b openai Closed Source Model $0.109500 / call

OpenAI: gpt-oss-120b
---

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-120b

openai openai-gpt-oss-120b

Copy model ID

PricingInput $0.039 / 1M tokens

Output $0.18 / 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-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster)

[L3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3.1-70B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Llama 3.1 70B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3.1-70B)

[OO](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: o1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-o1)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-nano)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5 Nano

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-nano)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-4o-mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-4o-mini)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen-plus)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen-Plus

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen-plus)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3-8B-Instruct)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Meta Llama 3 8B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/meta-llama-Meta-Llama-3-8B-Instruct)

[AC](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-latest)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Anthropic Claude Sonnet Latest

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-sonnet-latest)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 235B A22B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-235b-a22b)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-image)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5 Image

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5-image)

[QQ](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-max-thinking)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Qwen: Qwen3 Max Thinking

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/qwen-qwen3-max-thinking)

[NH](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nousresearch-hermes-4-70b)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Nous: Hermes 4 70B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/nousresearch-hermes-4-70b)

[N3](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-nvidia-llama-3.3-nemotron-super-49b-v1)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [nim/nvidia/llama-3.3-nemotron-super-49b-v1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/nim-nvidia-llama-3.3-nemotron-super-49b-v1)

[OG](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-mini)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [OpenAI: GPT-5.4 Mini

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/openai-gpt-5.4-mini)

[CV](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v1-preview-llama-70B)[Together AI](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai)

 [Cogito V1 Preview Llama 70B

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/together_ai/deepcogito-cogito-v1-preview-llama-70B)

[ML](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Llama-3.2-90B-Vision-Instruct-Turbo)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta)

 [Meta Llama 3.2 90B Vision Instruct Turbo

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/meta/meta-llama-Llama-3.2-90B-Vision-Instruct-Turbo)

[MM](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m1)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [MiniMax: MiniMax M1

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/minimax-minimax-m1)

[![Anthropic: Claude Haiku 4.5](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/b89d0017-305c-42f8-8327-14107b3de1a0.png)](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-haiku-4.5)[Open Router](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router)

 [Anthropic: Claude Haiku 4.5

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router/anthropic-claude-haiku-4.5)

[T2](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/scb10x/scb10x-scb10x-llama3-1-typhoon2-70b-instruct)[ModelsLab](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/scb10x)

 [Typhoon 2 70B Instruct

Closed Source Model](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/scb10x/scb10x-scb10x-llama3-1-typhoon2-70b-instruct)

About OpenAI: Gpt-Oss-120b
---

gpt-oss-120b is an open-weight, 117B-parameter Mixture-of-Experts (MoE) language model from OpenAI designed for high-reasoning, agentic, and general-purpose production use cases. It activates 5.1B parameters per forward pass and is optimized...

### Technical Specifications

Model IDopenai-gpt-oss-120bCategoryLLM ModelsTaskText GenerationPrice$0.109500 per million tokensAddedFebruary 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-120b into your application with a single API call. Get your API key from the [pricing page](https://modelslab-frontend-v2-927501783998.us-east4.run.app/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-120b",
        "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-frontend-v2-927501783998.us-east4.run.app/models/openai/openai-gpt-oss-120b/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

OpenAI: Gpt-Oss-120b API costs $0.109500 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

### 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-120b](https://modelslab-frontend-v2-927501783998.us-east4.run.app/openai-gpt-oss-120b) [Browse LLM Models](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models?feature=llmaster) [More from Openai](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/open_router) [View Pricing](https://modelslab-frontend-v2-927501783998.us-east4.run.app/pricing)

OpenAI: Gpt-Oss-120b FAQ
---

### What is OpenAI: Gpt-Oss-120b?

gpt-oss-120b is an open-weight, 117B-parameter Mixture-of-Experts (MoE) language model from OpenAI designed for high-reasoning, agentic, and general-purpose production use cases. It activates 5.1B parameters per forward pass and is optimized...

### How do I use the OpenAI: Gpt-Oss-120b API?

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

### How much does OpenAI: Gpt-Oss-120b cost?

OpenAI: Gpt-Oss-120b costs $0.109500 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the OpenAI: Gpt-Oss-120b model ID?

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

### Does OpenAI: Gpt-Oss-120b have a free tier?

Yes, ModelsLab offers a free tier that lets you try OpenAI: Gpt-Oss-120b 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-05-13*