✳ainav.
Cloudflare AI Gateway screenshot
Cloudflare AI Gateway website preview

PRODUCT OVERVIEW

What is Cloudflare AI Gateway?

Cloudflare AI Gateway is a developer-facing proxy for AI applications that routes requests to providers such as OpenAI, Anthropic, Google, Workers AI, and others through a single gateway. It adds observability with analytics and logging for requests, tokens, costs, and errors, and controls scaling with caching, rate limiting, spend limits, request retries, and model fallbacks. Security features include guardrails, data loss prevention scanning, authentication, and encrypted key storage. It is intended for teams building or operating AI apps that need cost, reliability, and usage visibility without changing provider APIs. Core features are offered free on all plans; logs, guardrails, unified billing, and Logpush have documented usage-based or fee details.

How to use Cloudflare AI Gateway

  1. 1

    Create a Cloudflare account

    Sign up or log in to the Cloudflare dashboard to access AI Gateway.

  2. 2

    Create a gateway

    Set up an AI Gateway instance in the dashboard; no domain needs to be added to Cloudflare.

  3. 3

    Route provider requests

    Update your AI provider API endpoint to route through AI Gateway, or use Workers bindings and the REST API.

  4. 4

    Configure controls

    Enable caching, rate limiting, spend limits, retries, fallbacks, guardrails, or DLP as needed.

  5. 5

    Monitor usage

    Review analytics, logs, and cost data in the AI Gateway dashboard.

Cloudflare AI Gateway Features

Analytics for requests, tokens, costs, and errors

Request and response logging with configurable retention

Caching to serve repeated requests from Cloudflare's cache

Rate limiting and spend limits to control usage and cost

Request retries and model fallbacks for resilience

Guardrails for real-time content moderation

Data Loss Prevention scanning for sensitive data

Bring Your Own Keys encrypted key storage

Dynamic routing and Auto Router for model selection

Unified Billing for provider credits

Cloudflare AI Gateway Use Cases

  • Monitor AI application usage and costs across providers

  • Reduce repeated API calls and latency with caching

  • Protect AI apps from abuse with rate limiting

  • Improve reliability with retries and model fallbacks

  • Scan prompts and responses for sensitive data

  • Moderate harmful content in prompts and responses

  • Route requests across multiple AI providers

  • Track per-user or per-team spend with custom metadata

Cloudflare AI Gateway FAQs

Yes, AI Gateway is available to use on all plans.

Dashboard analytics, caching, and rate limiting are offered for free on all plans.

No, AI Gateway does not require a domain added to Cloudflare; you can route requests from existing AI providers through it.

AI Gateway supports providers including OpenAI, Anthropic, Google AI Studio, Google Vertex AI, Workers AI, Amazon Bedrock, Azure OpenAI, Cohere, DeepSeek, Groq, Mistral AI, Perplexity, Replicate, xAI, and others.

Guardrails usage is billed as Workers AI token-based inference, with cost scaling with the length of prompts and responses evaluated.

A 5% fee is applied to all credits purchased through Unified Billing; provider inference pricing is passed through with no markup.

For accounts that created a gateway before September 24, 2026, Workers Free allows 100,000 logs total across all gateways, and Workers Paid allows 10,000,000 logs per gateway.

DLP scanning in AI Gateway is free on all plans; accounts without a Zero Trust subscription have access to two predefined DLP profiles.

Cloudflare AI Gateway Official Information

Company
Cloudflare, Inc.
Website
https://developers.cloudflare.com/ai-gateway
Documentation
https://developers.cloudflare.com/ai-gateway/
Contact
https://support.cloudflare.com/

Cloudflare AI Gateway Pricing

Freemium

Core features are free on all plans. Logs, Guardrails, Unified Billing, and Logpush have usage-based or fee details documented on the pricing page. Prices subject to change.

Free core features

$0USD / month

Core AI Gateway features are offered for free on all plans with a Cloudflare account.

  • Dashboard analytics
  • Caching
  • Rate limiting
  • DLP scanning with two predefined profiles without a Zero Trust subscription

Workers Free legacy log storage

$0USD / month

Legacy log storage limit for accounts on the Workers Free plan that created a gateway before September 24, 2026.

  • 100,000 logs total across all gateways

Workers Paid legacy log storage

USD / month

Legacy log storage limit for accounts on the Workers Paid plan that created a gateway before September 24, 2026.

  • 10,000,000 logs per gateway

Unified Billing

$5% feeUSD / per credit purchase

Purchase provider credits through Cloudflare; a 5% fee applies to credits purchased.

  • 5% fee on credits purchased
  • Provider inference pricing passed through with no markup

Guardrails

USD / usage-based

Guardrails evaluates prompts and responses using Workers AI and is billed as Workers AI token-based inference.

  • Billed as Workers AI token-based inference
  • Cost scales with prompt and response length

Logpush

USD / usage-based

Logpush exports AI Gateway logs and is billed according to Logpush pricing based on exported and transformed log volume.

  • Billed by volume of logs exported and transformed

View official pricing ↗

COMMUNITY REVIEWS

Cloudflare AI Gateway User Reviews

Reader reviews

No reviews yet.

Share your experience with Cloudflare AI Gateway

Sign in to share your experience. Your display name, rating and review will be public after approval. One review per account per tool.

Your rating