gpt-oss-120b — Free API

Created by OpenAI ⭐ Score: 54
cerebras/gpt-oss-120b
🛠️ Function Calling JSON Mode chat coding

What is gpt-oss-120b?

Cerebras offers GPT-oss-120b, a powerful text-based LLM ideal for chat and coding, generating up to 8,000 tokens from 128,000-token contexts at 30 RPM, 14,400 RPD, and 1M TPD, without requiring a credit card and compatible with OpenAI.

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

gpt-oss-120b 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://api.cerebras.ai/v1",
    api_key="YOUR_API_KEY"
)

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

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

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

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

Other Free Models from Cerebras

More About Cerebras

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

View Cerebras full guide →