Last refreshed 2026-04-24. Next refresh: weekly.
Why use gpt-oss-20b on Cloudflare Workers AI?
Cloudflare Workers AI offers gpt-oss-20b with pay-as-you-go pricing at $0.20/1M input tokens. Cloudflare is a leading connectivity cloud company that provides a comprehensive suite of cloud-native products and developer tools to enhance web performance, security, and reliability.
Compare gpt-oss-20b across 10 providers to find the best fit for your use caseInput / 1M
$0.20
Output / 1M
$0.30
Cache
Not sourced
Batch
Not sourced
Setup recipe
Docs fallbackInstall
Use the provider REST API or SDKAuth
Create a provider API keyCall
model: @cf/openai/gpt-oss-20bModel ID
@cf/openai/gpt-oss-20bRequest example
Curated snippets for this provider are not sourced yet. Use Cloudflare Workers AI documentation with model ID
@cf/openai/gpt-oss-20b.Gotchas
- Use provider model ID "@cf/openai/gpt-oss-20b", not the LLMReference slug "gpt-oss-20b".
Compare gpt-oss-20b Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Cloudflare Workers AI | $0.20 | $0.30 |
| OpenRouter | $0.03 | $0.14 |
| Fireworks AI | $0.07 | $0.30 |
| GCP Vertex AI | $0.07 | $0.25 |
| NVIDIA NIM | — | — |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.20 |
| Output tokens | $0.30 |
Capabilities
JSON / Tool useStructured Outputs
About gpt-oss-20b
OpenAI open-weight model with 20 billion parameters. Lightweight, efficient text-only model with reasoning and function calling. Free for self-hosting. Released August 5, 2025.
Get Started
Model Specs
Released2025-08-05
Parameters20B
Context131k
ArchitectureDecoder Only
Knowledge cutoff2025-08