LLM Reference
Cloudflare Workers AI

gpt-oss-20b on Cloudflare Workers AI

GPT-OSS · OpenAI

ServerlessOpen Source

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 case
Input / 1M
$0.20
Output / 1M
$0.30
Cache
Not sourced
Batch
Not sourced

Setup recipe

Docs fallback
Install
Use the provider REST API or SDK
Auth
Create a provider API key
Call
model: @cf/openai/gpt-oss-20b
Model ID
@cf/openai/gpt-oss-20b

Request 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

ProviderInput (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
View all 10 providers →

Pricing

TypePrice (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