Cloudflare API

Cloudflare Workers AI runs open-weight models on Cloudflare's global GPU network through an OpenAI-compatible API.

Data & Privacy

HQ:US
Safety identifier:Not forwarded
API Training:No
Prompt Logging:No
Retention:0 days
GDPR:Compliant
SOC2:Type II Certified
ISO 27001:Certified

Available Models

Pricing and availability as of

DeepSeek V4.1 Flash 1017

deepseek
deepseek-v4.1-flash-1017
Streaming
Vision
Tools
Reasoning
JSON Output
JSON Schema
CloudflareBatch
Context: 1.0M
Input
$0.3
/M tokens
Cached
$0.006
/M tokens
Output
$1.2
/M tokens

deepseek-v4.1-flash-latest

deepseekVirtual model
deepseek-v4.1-flash-latest
Streaming
Vision
Tools
Reasoning
JSON Output
JSON Schema
CloudflareBatch
Context: 1.0M
Input
$0.3
/M tokens
Cached
$0.006
/M tokens
Output
$1.2
/M tokens

GLM-5.3

zai
glm-5.3
Streaming
Tools
Reasoning
JSON Output
JSON Schema
CloudflareBatch
Context: 1.0M
Input
$1.4
/M tokens
Cached
$0.26
/M tokens
Output
$4.4
/M tokens

Cloudflare on the blog

FAQ

Cloudflare API questions

Can't find an answer? Contact us

Create an LLM Gateway API key and point any OpenAI-compatible SDK at https://api.llmgateway.io/v1. Set the model to deepseek-v4.1-flash-1017. On pay-as-you-go keys, cloudflare/deepseek-v4.1-flash-1017 pins every request to Cloudflare; DevPass coding plans do not support provider pinning. You do not need a separate Cloudflare account or SDK.