OpenAI: GPT OSS 20BOfficial docs

OpenAI: GPT OSS 20B

byOpenAI
Official docs

GPT OSS 20B is a reasoning model from OpenAI released on Aug 5, 2025. It reads text and writes text, with a 131K token context window and up to 131K tokens per reply.

Show more

It costs $0.07 per million input tokens and $0.30 per million output tokens.

It supports tool calling and structured JSON output, and its weights are open, so you can host it yourself.

40 providers serve it, including Hugging Face, Deep Infra and Vercel AI Gateway. The lowest input price is $0.009 per million tokens at Eden AI.

On the Artificial Analysis Intelligence Index it scores 10, which places it at number 39 among the 43 models I track with independent scores.

Modalities
In / out price
$0.07 / $0.30 per 1M
Context
131K
Max output
131K
Released
Aug 5, 2025
Knowledge cutoff
Jun 2024
  • Tool calling
  • Structured output
  • Reasoning
  • Prompt caching
  • Open weights
  • Free to use

GPT OSS 20B pricing

USD, as listed on Nov 29, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.

Input$0.07 / 1M tokens
Output$0.30 / 1M tokens

GPT OSS 20B providers

40 providers serve it, including Hugging Face, Deep Infra and Vercel AI Gateway. The lowest input price is $0.009 per million tokens at Eden AI. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.

ProviderInput /MOutput /MCache read /MContextMax output
Hugging Face$0.018$0.09n/a131K131K
Deep Infra$0.03$0.14$0.015131K16K
Vercel AI Gateway$0.03$0.14n/a131K8K
SiliconFlow$0.04$0.18n/a131K8K
OVHcloud AI Endpoints$0.05$0.18n/a131K66K
Amazon Bedrock$0.07$0.30n/a131K128K
Databricks$0.07$0.30n/a131K25K
OCI Generative AI$0.07$0.30n/a128K16K
Groq$0.075$0.30$0.0375131K66K
Cloudflare Workers AI$0.20$0.30n/a128K16K
Eden AI$0.009$0.045$0.0045131K131K
SOKKAN Router$0.015$0.075$0.00866K66K

Showing 12 of 40 providers: the lab first, then the major clouds, then the cheapest resellers.

What GPT OSS 20B costs per month

Pick a workload close to yours or type your own volumes.

GPT OSS 20B per month
$8.40
Without caching
$8.40
Per request
$0.0003

Independent benchmarks

Measured by third parties, not reported by OpenAI. Each links to its source and shows the date I checked it.

Supported request parameters

What you can set when you call GPT OSS 20B through an OpenAI compatible API.

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to GPT OSS 20B

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • Reads text and images. Tool calling, structured output, reasoning. Served by 2 providers.

    by bytedanceJul 26, 2025$0.07/M input tokens$0.30/M output tokens2 providers

  • Reads text. Tool calling, structured output, reasoning. Served by 16 providers.

    by nvidiaAug 11, 2026262K context$0.06/M input tokens$0.16/M output tokens16 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 8 providers.

    by metaSep 2, 2026$0.10/M input tokens$0.20/M output tokens8 providers

  • Reads text, images, files, audio and video. Tool calling, structured output, reasoning. Served by 9 providers.

    by metaAug 5, 2026$0.10/M input tokens$0.20/M output tokens9 providers

  • Reads text and images. Tool calling, structured output, reasoning. Served by 14 providers.

    by tencentNov 16, 2026$0.07/M input tokens$0.281/M output tokens14 providers

  • Reads text and images. Tool calling, structured output, reasoning. Served by 2 providers.

    by nex-agiSep 8, 2026$0.075/M input tokens$0.25/M output tokens2 providers

More from OpenAI

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 24, 2026$10/M input tokens$50/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 24, 2026$2/M input tokens$10/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 24, 2026$8/M input tokens$40/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 2 providers.

    by openaiNov 24, 2026$2/M input tokens$10/M output tokens2 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 26 providers.

    by openaiNov 17, 2026$8/M input tokens$40/M output tokens26 providers

  • Reads text, images and files. Tool calling, structured output, reasoning. Served by 26 providers.

    by openaiNov 17, 2026$2/M input tokens$10/M output tokens26 providers

All OpenAI models

GPT OSS 20B questions

How much does the GPT OSS 20B API cost?

$0.07 per million input tokens and $0.30 per million output tokens. The estimator on this page turns that into a monthly bill for your own workload.

What is the context window of GPT OSS 20B?

131,000 tokens of input, and it can write up to 131,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.

Which providers serve GPT OSS 20B?

40 providers serve it, including Hugging Face, Deep Infra and Vercel AI Gateway. The lowest input price is $0.009 per million tokens at Eden AI. Prices differ by host, so the Providers table on this page lists each one with its input and output price.

Does GPT OSS 20B support tool calling?

Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.

Is GPT OSS 20B open source?

Its weights are published, so you can run it on your own hardware or a cloud of your choice. Read the license before commercial use.

When was GPT OSS 20B released?

Aug 5, 2025, with training data up to Jun 2024.

How good is GPT OSS 20B compared with other models?

It scores 10 on the Artificial Analysis Intelligence Index and 1317 on the Arena text leaderboard. Benchmarks are a shortlist, not a verdict: test the top two or three candidates on your own tasks before you commit.

Catalog data from models.dev (MIT licensed), refreshed daily, last on Nov 29, 2026. Independent scores from my hand checked rankings, sources linked above. The summary is written from these facts.