Cloudflare AI Gateway
Cloudflare AI Gateway is a managed LLM proxy that sits in front of 23+ AI providers (OpenAI, Anthropic, Google AI Studio, Google Vertex AI, Amazon Bedrock, Azure OpenAI, Workers AI, Mistral, Cohere, Groq, DeepSeek, Cerebras, xAI, Perplexity, Replicate, HuggingFace, OpenRouter, ElevenLabs, Deepgram, Cartesia, Ideogram, Fal AI, Baseten, Parallel) and provides analytics, request and error logging, response caching, rate limiting, request retries, model fallback, guardrails, and evaluations. A unified REST API launched May 21, 2026 lets developers call any model through a single endpoint. The gateway integrates with Workers AI, the Secrets Store, and Cloudflare CASB's Claude Compliance API support. This is a standalone product profile; the broader Cloudflare provider profile lives at github.com/api-evangelist/cloudflare.
APIs
Cloudflare AI Gateway Proxy
The AI Gateway proxy endpoint accepts requests in each provider's native API format and forwards them through Cloudflare's edge with analytics, caching, retries, rate limiting, ...
Cloudflare AI Gateway Unified REST API
Unified REST API launched May 21, 2026 that lets developers call any supported model through a single endpoint instead of formatting requests for each provider individually. Sit...
Cloudflare AI Gateway Management API
The Cloudflare API surface for managing AI Gateway resources — creating gateways, listing them, retrieving request logs, and configuring caching, rate limiting, and authenticati...
AI Gateway MCP Server
Cloudflare-hosted remote MCP server that exposes AI Gateway control-plane operations to MCP-compatible AI agents.
Collections
Pricing Plans
Rate Limits
FinOps
Cloudflare Ai Gateway Finops
FINOPSFeatures
OpenAI, Anthropic, Google AI Studio, Google Vertex AI, Amazon Bedrock, Azure OpenAI, Workers AI, Mistral, Cohere, Groq, DeepSeek, Cerebras, xAI, Perplexity, Replicate, HuggingFace, OpenRouter, ElevenLabs, Deepgram, Cartesia, Ideogram, Fal AI, Baseten, Parallel.
Single endpoint that can call any supported model (launched May 21, 2026), alongside provider-native pass-through mode.
Per-request analytics for tokens, cost, latency, and error rates with full request and response logging.
Cache LLM responses at Cloudflare's edge to cut latency and provider spend.
Enforce request and token rate limits per gateway, per application.
Automatically retry failing calls and fall back to alternate models or providers.
Apply guardrails to prompts and responses and run evaluations against captured traffic.
Bring your own provider keys per gateway or route spend through Cloudflare's Unified Billing.
Native integration with Cloudflare Workers AI models via the cf-aig-gateway-id header.
Provider keys can be sourced from Cloudflare's Secrets Store rather than embedded in client code.
Use Cases
Capture per-request tokens, latency, and cost across every provider in one place.
Cache repeated responses at the edge and rate limit runaway workloads.
Configure retries and model fallback so a single provider outage does not take down the app.
Apply guardrails and run evaluations against production AI traffic.
Use a single REST endpoint to address any supported model from any provider.
Integrations
First-class integration with Cloudflare Workers AI inference catalog.
Call AI Gateway directly from Workers using AI bindings configured in wrangler.jsonc.
Store and rotate provider API keys without redeploying.
CASB support for Anthropic's Claude Compliance API announced May 2026.
Partnership offering announced May 19, 2026 that runs Anthropic-managed Claude agents on Cloudflare with AI Gateway in the path.
Remote MCP server at ai-gateway.mcp.cloudflare.com/mcp for AI agent access to AI Gateway control plane.