AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
Cloudflare Workers AI

GPT OSS 20B API

Cloudflare Workers AI
About

Process massive datasets with GPT OSS 20B, featuring an expansive 128K context window for long-document analysis. This model delivers cost-effective pricing at $0.20/1M input and $0.30/1M output tokens. Access GPT OSS 20B via the Cloudflare Workers AI API with up to 16K output tokens.

Capabilities

Input Modalities

text

Output Modalities

text
Reasoning
No
Structured Output
No
Tool Use
No
WeightsClosed
Temperature
Adjustable
Attachment
Not Supported
Limits
Context Window
128K

Tokens

Input Limit
128K

Tokens

Max Output
16K

Tokens

Pricing

Standard (per 1M tokens)

Input
$0.20
Output
$0.30
Frequently Asked Questions

GPT OSS 20B by Cloudflare Workers AI costs $0.20 per 1M input tokens and $0.30 per 1M output tokens.

Model Details
ID
@cf/openai/gpt-oss-20b
Provider
Cloudflare Workers AI
Family
Release Date
Aug 5, 2025
Knowledge Cutoff
N/A
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_KEY
API Base URL
https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/v1
Documentation