CL

Cloudflare Workers AI

Serverless

Edge AI inference across 200+ cities worldwide. Serverless, pay-per-use with OpenAI-compatible API.

Features

OpenAI Compatible
Streaming
Batching
Fine-tuning
Embeddings
Vision
Audio
Function Calling
JSON Mode

Compliance

SOC 2
HIPAA
GDPR

Pricing Model

per token
Free tier: Available

Details

Models 27
API Base https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run
Audio / MusicEmbeddingsImage GenerationLLM Inference

Model Catalog (27)

Model Type Input $/1M Output $/1M Context Speed Status
BGE-M3
BAAI
embedding $0.012 — — —
DeepSeek V4 Flash
DeepSeek
0731
llm $0.440 $1.32 — —
DeepSeek V4 Pro
DeepSeek
0813
llm $1.32 $3.96 — —
Flux 1 Schnell
Black Forest Labs
image gen $0.0030/img — — —
Flux 2 Klein
Black Forest Labs
image gen $0.015/img — — —
GLM 4.7
Zhipu AI
llm $0.060 $0.400 — —
GLM 5.2
Z.ai
llm $1.40 $4.40 — —
GLM 5.3
Z.ai
llm $1.40 $4.40 — —
GLM 5.3 Flash
Z.ai
llm $0.150 $0.500 — —
GPT OSS 120B
OpenAI · 117B MoE (5.1B active)
llm $0.350 $0.750 — —
Gemma 3 12B
Google · 12B
llm $0.345 $0.556 — —
Gemma 4 26B A4B
Google
llm $0.100 $0.300 — —
Kimi K2.5
Moonshot AI · 1T MoE (32B active)
llm $0.600 $3.00 — —
Kimi K2.6
Moonshot AI · 1T MoE (32B active)
llm $0.950 $4.00 262k —
Kimi K2.7 Code
Moonshot AI · 1T MoE (32B active)
code $0.950 $4.00 262k —
Leonardo Phoenix
Leonardo AI
image gen $0.0060/img — — —
Llama 3.1 8B Instruct
Meta
llm $0.152 $0.287 — —
Llama 3.2 1B Instruct
Meta
llm $0.027 $0.201 — —
Llama 3.2 3B Instruct
Meta
llm $0.051 $0.335 — —
Llama 3.3 70B
Meta · 70B
llm $0.293 $2.25 — —
Llama 4 Scout
Meta · 109B (17B active)
llm $0.270 $0.850 — —
Mistral Small 3.1 24B
Mistral AI
llm $0.351 $0.555 — —
Qwen 3 8B
Alibaba · 8B
llm $0.051 $0.335 — —
Qwen3 Embedding 0.6B
Alibaba · 0.6B
embedding $0.012 — — —
Qwen3.8 27B
Alibaba
llm $0.450 $3.20 — —
Whisper Large V3
OpenAI · 1.5B
speech to_text $0.0000/sec — — —
gpt-oss-20b
OpenAI
llm $0.200 $0.300 — —

Cloudflare Workers AI API FAQ

Is the Cloudflare Workers AI API free?

Yes, Cloudflare Workers AI has a free tier. Paid usage is billed per model.

What is the cheapest Cloudflare Workers AI model?

BGE-M3 at $0.01 in per 1M tokens, based on the 27 models we track for Cloudflare Workers AI.

How many models does Cloudflare Workers AI offer?

We track 27 Cloudflare Workers AI models: 20 LLM, 3 image generation, 2 embedding, 1 coding, 1 speech-to-text.

Is the Cloudflare Workers AI API OpenAI-compatible?

Yes. Cloudflare Workers AI exposes an OpenAI-compatible endpoint, so you can use the OpenAI SDKs by changing the base URL and API key.