API for the model openai/gpt-oss-120b:primeintellect at Hugging Face Inference, $0.105 / $0.225 per million tokens, context 131,072 tokens. curl, Python and JavaScript samples, live testing.
openai/gpt-oss-120b served by PrimeIntellect through the Hugging Face router (fp4 quantization).
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- PrimeIntellect
- Model ID
openai/gpt-oss-120b:primeintellect- Pricing
- Paid
- Input / output price
- $0.105 / $0.225 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 131,072 tokens
- Inputs
- Text
- Features
- Tool calling, JSON output
- Response time
- First token 385 ms · 175 tokens/s · uptime 99.9%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/openai/gpt-oss-120b
Code samples
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"openai/gpt-oss-120b:primeintellect","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="openai/gpt-oss-120b:primeintellect",
messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'openai/gpt-oss-120b:primeintellect',
messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the gpt-oss-120b · PrimeIntellect API free?
No: gpt-oss-120b · PrimeIntellect is a paid API ($0.105 / $0.225 per million tokens).
How do I call gpt-oss-120b · PrimeIntellect from my code?
gpt-oss-120b · PrimeIntellect exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: openai/gpt-oss-120b:primeintellect. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of gpt-oss-120b · PrimeIntellect?
gpt-oss-120b · PrimeIntellect accepts up to 131,072 tokens of context (prompt and history).
What are the alternatives to gpt-oss-120b · PrimeIntellect?
Similar APIs listed in the catalog: gpt-oss-20b · AkashML, gpt-oss-20b · Amazon Bedrock, gpt-oss-20b · CoreWeave, gpt-oss-20b · Groq, gpt-oss-20b · Parasail.
Alternatives
- gpt-oss-20b · AkashML — Paid
- gpt-oss-20b · Amazon Bedrock — Paid
- gpt-oss-20b · CoreWeave — Paid
- gpt-oss-20b · Groq — Paid
- gpt-oss-20b · Parasail — Paid
- gpt-oss-20b · PrimeIntellect — Paid
- gpt-oss-120b · AkashML — Paid
- gpt-oss-120b · BaseTen — Paid
- gpt-oss-120b · Cerebras — Paid
- gpt-oss-120b · CoreWeave — Paid
- gpt-oss-120b · Crusoe — Paid
- gpt-oss-120b · DigitalOcean — Paid