---
title: GPT OSS 120b API | Text Generation | ModelsLab
description: Advancing LLM capabilities with 117B parameters, 128K context length, and MoE architecture, ideal for high-reasoning tasks and agentic applications.
url: https://modelslab.com/models/openai/gpt-oss-120b/api.md
canonical: https://modelslab.com/models/openai/gpt-oss-120b/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-24T23:17:26.651277Z
---

GPT OSS 120b
---

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

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

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

### GPT OSS 120b

openai gpt-oss-120b

Copy model ID

PricingInput $0.039 / 1M tokens

Output $0.19 / 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)

[TD](https://modelslab.com/models/open_router/alibaba-tongyi-deepresearch-30b-a3b)[Open Router](https://modelslab.com/models/open_router)

 [Tongyi DeepResearch 30B A3B

Closed Source Model](https://modelslab.com/models/open_router/alibaba-tongyi-deepresearch-30b-a3b)

[RE](https://modelslab.com/models/open_router/rekaai-reka-edge)[Open Router](https://modelslab.com/models/open_router)

 [Reka Edge

Closed Source Model](https://modelslab.com/models/open_router/rekaai-reka-edge)

[QN](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Instruct-FP8)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 Next 80B A3b Instruct Fp8

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-Next-80B-A3B-Instruct-FP8)

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

 [NVIDIA: Nemotron 3 Nano 30B A3B (free)

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

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

 [OpenAI: GPT Audio

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

[QQ](https://modelslab.com/models/open_router/qwen-qwen3.5-122b-a10b)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3.5-122B-A10B

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3.5-122b-a10b)

[ML](https://modelslab.com/models/open_router/meta-llama-Llama-3-8b-chat-hf)[Open Router](https://modelslab.com/models/open_router)

 [Meta Llama 3 8B Instruct Reference

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-Llama-3-8b-chat-hf)

[G5](https://modelslab.com/models/together_ai/zai-org-GLM-5)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 5 Fp4

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-5)

[AN](https://modelslab.com/models/open_router/amazon-nova-premier-v1)[Open Router](https://modelslab.com/models/open_router)

 [Amazon: Nova Premier 1.0

Closed Source Model](https://modelslab.com/models/open_router/amazon-nova-premier-v1)

[G4](https://modelslab.com/models/together_ai/google-gemma-4-31B-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma 4 31B-it FP8

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-4-31B-it)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-coder-flash)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Coder Flash

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-coder-flash)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen3-235B-A22B-fp8)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 235B A22B FP8

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-235B-A22B-fp8)

[DC](https://modelslab.com/models/open_router/deepcogito-cogito-v2.1-671b)[Open Router](https://modelslab.com/models/open_router)

 [Deep Cogito: Cogito v2.1 671B

Closed Source Model](https://modelslab.com/models/open_router/deepcogito-cogito-v2.1-671b)

[M8](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-v0.1)[Together AI](https://modelslab.com/models/together_ai)

 [Mixtral 8X7b V0.1

Closed Source Model](https://modelslab.com/models/together_ai/mistralai-Mixtral-8x7B-v0.1)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 1.5B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-1.5B)

[OG](https://modelslab.com/models/open_router/openai-gpt-5-nano)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-5 Nano

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-5-nano)

[OG](https://modelslab.com/models/open_router/openai-gpt-3.5-turbo)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-3.5 Turbo

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-3.5-turbo)

[N3](https://modelslab.com/models/together_ai/nim-meta-llama-3.3-70b-instruct)[Together AI](https://modelslab.com/models/together_ai)

 [nim/meta/llama-3.3-70b-instruct

Closed Source Model](https://modelslab.com/models/together_ai/nim-meta-llama-3.3-70b-instruct)

About GPT OSS 120b
---

Advancing LLM capabilities with 117B parameters, 128K context length, and MoE architecture, ideal for high-reasoning tasks and agentic applications.

### Technical Specifications

Model IDgpt-oss-120bCategoryLLM ModelsTaskText GenerationPrice$0.114500 per million tokensAddedAugust 5, 2025

### 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 GPT OSS 120b 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": "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.com/models/openai/gpt-oss-120b/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

GPT OSS 120b API costs $0.114500 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

[Learn more about GPT OSS 120b](https://modelslab.com/gpt-oss-120b) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Openai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

GPT OSS 120b FAQ
---

### What is GPT OSS 120b?

Advancing LLM capabilities with 117B parameters, 128K context length, and MoE architecture, ideal for high-reasoning tasks and agentic applications.

### How do I use the GPT OSS 120b API?

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

### How much does GPT OSS 120b cost?

GPT OSS 120b costs $0.114500 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the GPT OSS 120b model ID?

The model ID for GPT OSS 120b is "gpt-oss-120b". Use this ID in your API requests to specify this model.

### Does GPT OSS 120b have a free tier?

Yes, ModelsLab offers a free tier that lets you try 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-04-25*