OpenAI: gpt-oss-120b (free) — Free API

Created by OpenAI ⭐ Score: 67 Verified
openrouter/openai-gpt-oss-120b
chat coding

What is OpenAI: gpt-oss-120b (free)?

GPT-OSS 120B is OpenAI's open-weight 117B-parameter Mixture-of-Experts model with 5.1B active parameters per forward pass, available free on OpenRouter (also on Groq, Cerebras, and Cloudflare). Supports configurable reasoning depth, full chain-of-thought access, and native tool use — function calling, browsing, and structured outputs. Optimized to run on a single H100 GPU with native MXFP4 quantization. Built for reasoning-heavy and agentic tasks. 131K context window. Text-only. OpenAI-compatible. Free tier: 200 RPD on OpenRouter.

Model ID
openai/gpt-oss-120b:free
Base URL
https://openrouter.ai/api/v1

OpenAI: gpt-oss-120b (free) API Code Example

Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="openai/gpt-oss-120b:free",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://openrouter.ai/api/v1",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "openai/gpt-oss-120b:free",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "openai/gpt-oss-120b:free",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from OpenRouter

More About OpenRouter

How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up OpenRouter as a free LLM API backend.

View OpenRouter full guide →