# GPT OSS 20B API Pricing

As of October 10, 2026, GPT OSS 20B costs $0.0145 per 1M input tokens and $0.07 per 1M output tokens from Darkbloom, the lowest of 14 providers. It has a 131,072-token context window and returns up to 32,768 tokens per response.

- Page: https://models.litellm.ai/models/gpt-oss-20b
- Lab: OpenAI
- LiteLLM model name: `darkbloom/gpt-oss-20b`
- Context window: 131,072 tokens
- Max output: 32,768 tokens
- Added to LiteLLM: August 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Darkbloom | `darkbloom/gpt-oss-20b` | $0.0145 | $0.07 | – | – | – | 128K |
| Amazon Bedrock Mantle | `bedrock_mantle/openai.gpt-oss-20b` | $0.07 | $0.30 | – | – | – | 128K |
| Cloudflare Workers AI | `cloudflare/@cf/openai/gpt-oss-20b` | $0.20 | $0.30 | – | – | – | 128K |
| Databricks | `databricks/databricks-gpt-oss-20b` | $0.07 | $0.30 | $0.07 | – | – | 128K |
| DeepInfra | `deepinfra/openai/gpt-oss-20b` | $0.03 | $0.14 | – | – | – | 128K |
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/gpt-oss-20b` | $0.07 | $0.30 | $0.035 | – | – | 128K |
| Fireworks AI | `fireworks_ai/gpt-oss-20b` | $0.07 | $0.30 | $0.035 | – | – | 128K |
| Google Vertex AI | `vertex_ai/openai/gpt-oss-20b-maas` | $0.07 | $0.25 | $0.007 | – | – | 128K |
| Groq | `groq/openai/gpt-oss-20b` | $0.075 | $0.30 | $0.0375 | – | – | 128K |
| Novita AI | `novita/openai/gpt-oss-20b` | $0.04 | $0.15 | – | – | – | 128K |
| OVHcloud | `ovhcloud/gpt-oss-20b` | $0.04 | $0.15 | – | – | – | 131K |
| Replicate | `replicate/openai/gpt-oss-20b` | $0.09 | $0.36 | – | – | – | – |
| Tensormesh | `tensormesh/openai/gpt-oss-20b` | $0.07 | $0.28 | $0 | – | – | 128K |
| Together AI | `together_ai/openai/gpt-oss-20b` | $0.05 | $0.20 | – | – | – | 128K |
| Weights & Biases | `wandb/openai/gpt-oss-20b` | $0.03 | $0.13 | – | – | – | 131K |
| Amazon Bedrock Mantle (us-gov-east-1) | `bedrock_mantle/us-gov-east-1/openai.gpt-oss-20b` | $0.084 | $0.36 | – | – | – | 128K |
| Amazon Bedrock Mantle (us-gov-west-1) | `bedrock_mantle/us-gov-west-1/openai.gpt-oss-20b` | $0.084 | $0.36 | – | – | – | 128K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Darkbloom: $0.064
- DeepInfra: $0.13
- Weights & Biases: $0.125
- Novita AI: $0.155

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Darkbloom: $0.159
- DeepInfra: $0.328
- Weights & Biases: $0.326
- Novita AI: $0.43

## Features

Supported: Function calling, Parallel tool calls, Structured output, Reasoning, Prompt caching, Web search.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="darkbloom/gpt-oss-20b",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does GPT OSS 20B cost?

GPT OSS 20B costs $0.0145 per 1M input tokens and $0.07 per 1M output tokens from Darkbloom, the lowest of 14 providers.

### What is the context window of GPT OSS 20B?

GPT OSS 20B has a 131,072-token context window and returns up to 32,768 tokens per response.

### Which providers offer GPT OSS 20B?

GPT OSS 20B is available from 14 providers through LiteLLM: Darkbloom, Amazon Bedrock Mantle, Cloudflare Workers AI, Databricks, DeepInfra, Fireworks AI, Google Vertex AI, Groq, Novita AI, OVHcloud, Replicate and Tensormesh and 2 more. The lowest price is on Darkbloom.

### How do I call GPT OSS 20B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="darkbloom/gpt-oss-20b", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does GPT OSS 20B support?

GPT OSS 20B supports function calling, parallel tool calls, structured output, reasoning, prompt caching and web search.

### When did LiteLLM add GPT OSS 20B?

GPT OSS 20B was added to LiteLLM's model price file in August 2025.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
