Cloudflare AI Gateway
Cloudflare proxy for AI app traffic that adds analytics, logging, caching, rate limiting, request retries and model fallback with one line of code.
Tags
Description
Available on all plans. Core features (dashboard analytics, caching, rate limiting) are free with a Cloudflare account; log storage and premium features are billed per the pricing page.
Agent access
Related
- Cloudflare Agents SDK: SDK for stateful AI agents on Cloudflare with persistent state, real-time WebSockets, scheduled tasks and remote MCP servers.
- Cloudflare MCP Servers: Cloudflare's own remote MCP servers for managing and querying Cloudflare services from MCP clients.
- Portkey AI Gateway: AI gateway that routes to many LLMs behind one API with guardrails. Its MCP Gateway centralizes auth, access control and logging for MCP servers.
Guides & comparisons
- LLM gateways compared: OpenRouter vs Vercel AI Gateway vs Cloudflare AI Gateway vs Portkey vs LiteLLM (Comparison): Five ways to put one endpoint between your agents and many model providers: two hosted model marketplaces (OpenRouter, Vercel AI Gateway), Cloudflare's proxy, and two open-source gateways you can self-host (Portkey, LiteLLM). Covers API, fallback, caching, spend controls, MCP, pricing and license.
Sources
- https://developers.cloudflare.com/ai-gateway/
- https://developers.cloudflare.com/ai-gateway/reference/pricing/
Machine-readable
- JSON
- Markdown
- Source file on GitHub (edit via pull request)