Overview
About this model
gpt-oss-20b, OpenAI’s open-weight models designed for powerful reasoning, agentic tasks, and versatile developer use cases. for lower latency, and local or specialized use cases (21B parameters with 3.6B active parameters)
View model card on HuggingFaceSpecifications
Model details
- Modality
- Language
- Context length
- 128K tokens
- Pricing
- $0.05 in · $0.18 out / 1M
Modalities: text → text
API
Call it in code
One OpenAI-compatible API. Swap the model id and you're done.
from openai import OpenAI
client = OpenAI(
base_url="https://api.ecohash.com/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="gpt-oss-20b",
messages=[{"role": "user", "content": "Hello!"}],
stream=True,
)