Speed
Output tokens / second
Custom pricing for production workloads
GPT OSS 120B is the most powerful Open AI open weight model.
GPT OSS 120B is a large-scale open-source language model with 120 billion parameters, designed for advanced reasoning, code generation, and extended context processing.
openai/gpt-oss-120bhttps://api.aimlapi.com/v1GPT OSS 120B is a large-scale open-source language model designed for high-capacity reasoning, coding, and general-purpose tasks. It balances state-of-the-art performance typical of 100+ billion parameter models with relative cost efficiency, enabling broad accessibility for researchers and developers. GPT OSS 120B excels across text generation, multi-step logical reasoning, and multilingual understanding, supporting both general and specialized applications.
vs GPT-4o Mini: GPT OSS 120B offers a much larger parameter count and excels in high-capacity reasoning and code generation, while GPT-4o Mini is smaller and more cost-efficient, with built-in multimodal support for both text and images.
vs GLM-4.5: Although GLM-4.5 has more total and active parameters and leads in advanced tool integration and agentic task performance, GPT OSS 120B remains competitive with strong reasoning benchmarks and greater efficiency on smaller hardware.
See how GPT OSS 120B compares in generation speed and latency. Data retrieved Nov 4, 2026.
Output tokens / second
Compare 9 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.15 | 1M tokens |
| Output | $0.6 | 1M tokens |
| Cached input | $0.3703 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.15 | $0.6 | |
| $1 | $5 | |
| $2 | $10 | |
| $2 | $10 | |
| $2.12 | $10.58 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "openai/gpt-oss-120b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "openai/gpt-oss-120b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "openai/gpt-oss-120b",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());GPT OSS 120B has a 131,000 tokens context window and can return up to 131,072 tokens.
GPT OSS 120B takes text as input and returns text.
Use openai/gpt-oss-120b as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
GPT OSS 120B became available on September 9, 2025.
GPT OSS 120B costs $0.15 input and $0.6 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, GPT OSS 120B can stream responses as they are generated.
GPT OSS 120B was built by OpenAI.
It is accessed via the endpoint https://api.aimlapi.com/v1/chat/completions, not directly through OpenAI's own API.