Home / Text Generation / GPT-OSS 20B

Free GPT-OSS 20B API

Updated 6/9/2026

Run OpenAI's open-weight GPT-OSS 20B — fast, capable, low-latency reasoning — free on Cloudflare Workers AI.

About the Model

Why use GPT-OSS 20B?

GPT-OSS 20B is the smaller, faster sibling of GPT-OSS 120B — great when you want quick responses and lower latency while keeping solid reasoning and tool-use.

Capabilities

A strong everyday workhorse for chatbots, drafting, and lightweight agents, with the same open license as the 120B model.

Why it's free

Covered by Cloudflare Workers AI's 10,000 free Neurons per day through the /ai/run endpoint.

Try it in your browser

Pick a model, paste your own free key, and run. Your key is sent once to call the provider and never stored on our servers.

The model's reply will stream here.

How to call GPT-OSS 20B

curl
curl https://api.cloudflare.com/client/v4/accounts/$CF_ACCOUNT_ID/ai/run/@cf/openai/gpt-oss-20b \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -d '{"messages":[{"role":"user","content":"Summarize the plot of Hamlet in two sentences."}]}'
python
import os, requests

account = os.environ["CF_ACCOUNT_ID"]
token = os.environ["CF_API_TOKEN"]

resp = requests.post(
    f"https://api.cloudflare.com/client/v4/accounts/{account}/ai/run/@cf/openai/gpt-oss-20b",
    headers={"Authorization": f"Bearer {token}"},
    json={"messages": [{"role": "user", "content": "Summarize the plot of Hamlet in two sentences."}]},
)
print(resp.json()["result"]["response"])

Provider Details

The following platforms provide free access to GPT-OSS 20B through free tiers, trial credits, or daily quotas.

ProviderContext WindowFree QuotaRequires CCTrustAction
Cloudflare Workers AIN/ARate Limit
100 requests per day
No
Trust 99
Details

Frequently Asked Questions

Is GPT-OSS 20B free to use?

Yes. GPT-OSS 20B is available for free through 1 provider(s) listed below, with no purchase required.

What are the rate limits and quotas?

Free access varies by provider — Cloudflare Workers AI: Rate Limit.

How do I get a free GPT-OSS 20B API key?

Sign up with Cloudflare Workers AI, then create an API key from your dashboard. See the provider details above for the exact steps.

Which providers offer GPT-OSS 20B for free?

GPT-OSS 20B is currently available for free via: Cloudflare Workers AI.

Know another free provider for GPT-OSS 20B?

Help the community by sharing other ways to access this model for free.