gpt-oss-20b (Amazon Bedrock) API
Amazon Bedrock · serves gpt-oss-20b
Pricing
| Input / 1M | $0.07 |
|---|---|
| Output / 1M | $0.15 |
| Blended / 1M | $0.22 |
| Context window | 131,072 tokens |
| Max output | 117,964 tokens |
| License | Open weights · Apache 2.0 permissive |
| Knowledge cutoff | June 2024 · source |
| Intelligence index | 15.2 Artificial Analysis Intelligence Index · source |
textfunction-calling
Price verified 2026-09-05 (0 days ago) · sourcecorroborated
Sources
| Source | Input / 1M | Output / 1M | Verified |
|---|---|---|---|
| OpenRouter | $0.07 | $0.15 | 2026-09-05 |
| LiteLLM | $0.04 | $0.15 | 2026-09-03 |
| models.dev | $0.04 | $0.18 | 2026-09-04 |
Two independent sources agree within 20%.
Cheaper providers for gpt-oss-20b
| Provider | Blended / 1M | Endpoint |
|---|---|---|
| AkashML | $0.12 | view → |
| CoreWeave | $0.16 | view → |
| DeepInfra | $0.17 | view → |
Compare all 12 providers serving gpt-oss-20b →
Call it
Served via OpenRouter, pinned to Amazon Bedrock — the provider these prices are resolved from. Set OPENROUTER_API_KEY. Provider page.
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-oss-20b",
"messages": [{"role": "user", "content": "Hello"}],
"provider": {"only": ["Amazon Bedrock"], "allow_fallbacks": false}
}'from openai import OpenAI # pip install openai
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="...", # OPENROUTER_API_KEY
)
resp = client.chat.completions.create(
model="openai/gpt-oss-20b",
messages=[{"role": "user", "content": "Hello"}],
extra_body={"provider": {"only": ["Amazon Bedrock"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)Price unchanged since 2026-09-03 — 1 point on record.
Use this data
Raw JSON for this page: gpt-oss-20b.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.