---
title: "gpt-oss-20b API pricing"
canonical: https://uplinkswitch.ai/models/gpt-oss-20b
generated: 2026-10-22T19:58:34.611Z
source: https://api.uplinkswitch.com/v1/catalog
base_url: https://api.uplinkswitch.com/v1
---

# gpt-oss-20b API pricing

gpt-oss-20b API at $0.16/M input and $0.72/M output tokens. Works with the OpenAI SDK.

## Price per million tokens (USD)

| Tokens | OpenAI list price | UplinkSwitch | Under list |
| --- | --- | --- | --- |
| Input | — | $0.16 | — |
| Cached input | — | billed at the input rate | — |
| Output | — | $0.72 | — |

## Model

- Model id: `gpt-oss-20b`
- Formats: OpenAI SDK
- Base URL: https://api.uplinkswitch.com/v1
- Daily real-model check: Same fingerprint since Oct 22 (https://uplinkswitch.ai/proof#gpt-oss-20b)

## Request

### Python · OpenAI SDK

```python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="gpt-oss-20b",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
```

### TypeScript · OpenAI SDK

```typescript
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const completion = await client.chat.completions.create({
  model: 'gpt-oss-20b',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
```

### curl

```bash
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"model":"gpt-oss-20b","messages":[{"role":"user","content":"Hello"}]}'
```

## Questions

### What is gpt-oss-20b?

gpt-oss-20b is a model from OpenAI. Through UplinkSwitch it answers the OpenAI SDK on one key as gpt-oss-20b.

### How much does the gpt-oss-20b API cost?

$0.16 per million input tokens and $0.72 per million output tokens.

### Is gpt-oss-20b free?

It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0005.

### What is the gpt-oss-20b model id?

gpt-oss-20b. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.

### How do I get a gpt-oss-20b API key?

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls gpt-oss-20b and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.

### Is it the real gpt-oss-20b?

Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. gpt-oss-20b's latest result: Same fingerprint since Oct 22.

### Is there a gpt-oss-20b API?

Yes: gpt-oss-20b on the OpenAI format at https://api.uplinkswitch.com/v1, $0.16 input and $0.72 output per million tokens. No weights to download and no GPU of your own; the key also runs every other model in the catalog.

### How many parameters does gpt-oss-20b have?

21B total, 3.6B active per token, per openai/gpt-oss-20b.

### What is gpt-oss-20b's context window?

131,072 tokens in its config, per openai/gpt-oss-20b.

### Is gpt-oss-20b open source?

Its weights are open on Hugging Face (openai/gpt-oss-20b); the license is Apache-2.0.

### What does gpt-oss-20b cost per 100 messages?

$0.068 for 100 chat turns of 2,000 input and 500 output tokens each, at $0.16 input and $0.72 output per million tokens, from prepaid credit with no subscription.

### gpt-oss-20b or gpt-oss-120b?

gpt-oss-20b is for speed and price; gpt-oss-120b is for harder reasoning. gpt-oss-20b is $0.16 / $0.72 per million tokens in / out, $0.68 for 1,000 chat turns; gpt-oss-120b is $0.20 / $1.80 per million tokens in / out, $1.30 for 1,000 chat turns. Both run on the same key, so send the same prompt to each.

## Related

- GPT API pricing: https://uplinkswitch.ai/pricing/gpt
- Cursor setup: https://uplinkswitch.ai/guides/cursor
- Cline setup: https://uplinkswitch.ai/guides/cline
- Roo Code setup: https://uplinkswitch.ai/guides/roo-code
- Kilo Code setup: https://uplinkswitch.ai/guides/kilo-code
- SDKs setup: https://uplinkswitch.ai/guides/sdks
- Every model and price: https://uplinkswitch.ai/llms-full.txt
- Machine catalog: https://uplinkswitch.ai/ai-catalog.json
