# GPT OSS 20B

GPT OSS 20B costs $0.07 per 1M input tokens and $0.3 per 1M output tokens on LLM API, with a 131K-token context window.

Model ID: `gpt-oss-20b` · OpenAI · Text generation · Released August 5, 2025
Updated: 2026-10-27
Canonical: https://llmapi.ai/models/openai-gpt-oss-20b/

- Input: $0.07 per 1M tokens
- Output: $0.3 per 1M tokens
- Cache read: $0.037 per 1M tokens
- Context: 131K tokens
- Max output: 4K tokens

## Pricing

Lowest price among 2 providers, after discounts.

| Price | Amount | Per |
| --- | --- | --- |
| Input | $0.07 | per 1M tokens |
| Output | $0.3 | per 1M tokens |
| Cache read | $0.037 | per 1M tokens |

**Volume pricing.** At higher monthly volume, GPT OSS 20B may cost less. Book a call and sales will quote a price for your usage. [Book a call with sales](https://meetings.hubspot.com/julia-andriienko/llmapi) or [Create an account first](https://app.llmapi.ai/signup).

## Providers

Prices after each provider’s discount; the lowest in bold.

| Provider | Input / 1M | Output / 1M | Cache read / 1M | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| [AWS Bedrock](https://llmapi.ai/providers/amazon-bedrock/) | **$0.07** | **$0.3** | — | 131K | 4K |
| [Groq](https://llmapi.ai/providers/groq/) | $0.1 | $0.5 | $0.037 | 131K | 4K |

## Features

“Some providers”: not every provider of this model supports it.

- Tools: Yes
- Parallel tool calls: No
- Image input: Yes
- Reasoning: Some providers (Levels: none, low, medium, high)
- Prompt caching: Yes
- Structured outputs: Yes
- JSON mode: Yes
- Streaming: Yes
- Web search: No

## Call GPT OSS 20B

### Chat Completions (`POST /v1/chat/completions`)

Set LLMAPI_KEY to your LLM API key.

```python
import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
```

Docs: [Chat Completions docs](https://docs.llmapi.ai/api/v1/chat/completions)

## More from OpenAI

- [GPT-6 Astra](https://llmapi.ai/models/openai-gpt-6-astra/): $10 / $50 per 1M input / output
- [GPT-6.1 Sol](https://llmapi.ai/models/gpt-6-1-sol/): $2 / $10 per 1M input / output
- [GPT-6.1 Terra](https://llmapi.ai/models/gpt-6-1-terra/): $1 / $5 per 1M input / output

Prices synced 2026-11-09.

Next step: [Get API key](https://app.llmapi.ai/signup)
