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
- Provider
- OpenAI
- Modality
- Language
- Context length
- 128K tokens
- Max output
- 16.4K tokens
- Pricing
- $0.05 in · $0.20 out / 1M
Modalities: text → text
API
Call it in code
Use the OpenAI-compatible endpoint below with your EcoHash API key and this model ID.
Python
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,
)curl
curl https://api.ecohash.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d {
"model": "gpt-oss-20b",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": true
}Compare
gpt-oss-20b vs other language models
Same API, same billing. Rates come live from the EcoHash billing system.
| Model | Context | Price | Modalities |
|---|---|---|---|
| gpt-oss-20b (this page) | 128K tokens | $0.05 per 1M input tokens and $0.20 per 1M output tokens | text → text |
| Llama-3.1-8B-Instruct | 128K tokens | $0.10 per 1M input tokens and $0.10 per 1M output tokens | text → text |
| DeepSeek-V4-Flash | — | $0.49 per 1M input tokens and $1.42 per 1M output tokens | text → text |
| DeepSeek-V4-Pro | — | $0.91 per 1M input tokens and $2.72 per 1M output tokens | text → text |
FAQ
Common questions
- How much does the gpt-oss-20b API cost?
- gpt-oss-20b is $0.05 per 1M input tokens and $0.20 per 1M output tokens on EcoHash. That figure comes live from the EcoHash billing system, so the price shown on this page is the price you are billed — there is no separate list price to reconcile.
- gpt-oss-20b vs Llama-3.1-8B-Instruct: which should I use?
- Both are language models on the same OpenAI-compatible EcoHash API, so moving between them is a change of model id and nothing else. gpt-oss-20b has a 128K-token context window at $0.05 per 1M input tokens and $0.20 per 1M output tokens. Llama-3.1-8B-Instruct has a 128K-token context window at $0.10 per 1M input tokens and $0.10 per 1M output tokens. Both prices come live from the EcoHash billing system; the comparison table on this page carries the current figures.
- Can I use gpt-oss-20b commercially through EcoHash?
- EcoHash hosts gpt-oss-20b under the model publisher's own licence and does not change its terms, so whether your use is permitted is decided by that licence — read it on the model card at https://huggingface.co/openai/gpt-oss-20b. The EcoHash Terms of Service additionally require you to comply with each model's licence and acceptable-use policy. Your EcoHash bill for API usage is separate from, and does not grant, any right under the model's licence.
More models