Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
Ploba logo
DiscoverHackathonsPeopleLearnAI Digest
Sign inGet started
HomeTop ChartsExploreCategories
TypesWeb apps1,894Agents585Plugins416APIs376Mobile apps152Datasets85
AdvertisingYour product hereReach people browsing AI tools on Ploba.Advertise hereAdvertisingYour product hereReach people browsing AI tools on Ploba.Advertise here
  1. Explore
  2. /
  3. Developer Tools
  4. /
  5. Cloudflare AI Gateway
Developer Tools
Cloudflare AI Gateway icon

Cloudflare AI Gateway

by Cloudflare

Cloudflare AI Gateway sits between your application and AI model providers. It adds analytics, logging, caching, rate limiting, routing with fallbacks and safety controls, and takes one line of code to start.

API·Usage-based

View documentation(opens in a new tab)

About Cloudflare AI Gateway

Key features of Cloudflare AI Gateway

  • Analytics for requests, tokens, cost and errors
  • Request and response logging with custom metadata
  • Response caching with configurable TTL and per-request overrides
  • Rate limiting and cost-based spend limits
  • Routing with model aliases, dynamic routes and fallbacks
  • Guardrails and data loss prevention for prompts and responses
  • Stored provider keys (BYOK) and token authentication
  • Unified Billing for a single Cloudflare bill across providers

Who Cloudflare AI Gateway is for

  • Developers building AI applications
  • Teams that need to control AI cost and usage
  • Platform and security teams that need logging and compliance controls
  • Cloudflare Workers developers

How to use Cloudflare AI Gateway

  1. 1

    Step 1: Create a gateway in the AI Gateway section of the Cloudflare dashboard.

  2. 2

    Step 2: Point your application's AI provider requests at the gateway, which takes one line of code to change.

  3. 3

    Step 3: Authenticate the gateway and either send provider keys with requests, store them in the gateway, or use Unified Billing credits.

  4. 4

    Step 4: Turn on features such as caching, rate limiting, spend limits or routing fallbacks in the gateway settings.

  5. 5

    Step 5: Review analytics and logs in the dashboard, and use custom metadata to filter by user or team.

Cloudflare AI Gateway FAQ

Is caching on by default?

No, caching is disabled by default. You can enable it for the whole gateway with a default TTL, or opt in and override settings per request with headers. A cf-aig-cache-status header shows whether a response was a HIT or MISS.

How does AI Gateway decide when two requests match for caching?

By default the cache key is built from the provider, endpoint, model, authentication header and the full request body, so only exact matches hit the cache. A custom cache key header overrides this.

Which credentials does a request use?

A provider key sent on the request is used first, then a key stored in the gateway, then Unified Billing credits if fallback is allowed. Turning on Require provider credentials prevents the Unified Billing fallback.

What is Machine Payments?

It lets clients pay for inference on select open models from a stablecoin wallet using the x402 protocol, with no prepaid balance. You must be based in the United States and have a credit card on file.

Details

Pricing
Usage-basedAI Gateway is available on all Cloudflare plans. With Unified Billing you load prepaid credits and receive one Cloudflare bill, and provider inference rates are passed through without markup. A fee applies to credit purchases.
Type
API
Platforms
  • Web
  • API
Categories
Developer ToolsAISecurity
Added
Sep 15, 2026
Cloudflare iconPublisherCloudflare

Built from public sources

We put this page together from Cloudflare AI Gateway’s own website and docs so you can compare it with other tools. Ploba isn’t affiliated with Cloudflare AI Gateway.

Work at Cloudflare AI Gateway? Claim the listing to manage it yourself.

Something wrong here?

More from Cloudflare

View publisher
Cloudflare MCP iconCloudflare MCPCloudflare · Contact for pricingCloudflare MCP is a set of managed remote MCP servers from Cloudflare. The main server gives AI assistants access to the full Cloudflare API and developer docs.Developer Tools · Contact for pricingCloudflare Agents iconCloudflare AgentsCloudflare · Usage-basedCloudflare Agents is an AI-native product for framework and runtime for stateful AI agents on Cloudflare with durable state, tools, scheduling, and realtime.Developer Tools · Usage-basedWorkers AI iconWorkers AICloudflare · Usage-basedWorkers AI is an AI-native product for serverless inference platform for running generative and embedding models close to Cloudflare applications.Developer Tools · Usage-based

Related tools

See more
NEAR AI Cloud iconNEAR AI CloudNEAR AI · Usage-basedNEAR AI Cloud is a private AI inference platform that runs open-weight models inside hardware enclaves and returns a signed proof with each response. It uses an OpenAI-compatible API.Developer Tools · Usage-basedAikido Security iconAikido SecurityAikido Security · FreemiumAikido Security is a platform that scans code, cloud, containers and running apps for vulnerabilities, then opens pull requests with fixes. It also offers autonomous pentesting and device and runtime protection.Developer Tools · FreemiumPhala Cloud iconPhala CloudPhala · Usage-basedPhala Cloud runs Docker workloads, agents and private LLM inference inside hardware-backed trusted execution environments. It produces attestation reports so you can verify what ran.Developer Tools · Usage-based