Deployment & infrastructure

Cloudflare

AI-assisted editorial review:

Cloudflare is a US network services company, founded in 2009 and headquartered in San Francisco, that sits between websites and their visitors to provide content delivery (CDN), DNS, security such as DDoS protection, and an edge developer platform.[1][2] The company says it serves data from 335 cities in more than 125 countries and handles roughly 20% of HTTP traffic on the web.[1][2]

What does Cloudflare mean in simple terms?

Think of Cloudflare as a layer that stands in front of a website. Visitors connect to a nearby Cloudflare location instead of going straight to the site's own server. From there, Cloudflare can return cached copies of files, filter out attack traffic, and pass allowed requests through to the origin; filtering does not eliminate every attack.[1][2] The company has said that volumetric DDoS mitigation is unmetered on every plan, including the Free plan, so it does not charge more because an attack is large.[3] Beyond the network, Cloudflare offers Workers for running code close to users, Workers AI for running AI models on its GPUs, and AI Gateway for monitoring and controlling calls to AI providers.[4][7][9]

How can Cloudflare be explained with an analogy?

Cloudflare is like a security desk and a delivery counter in the lobby of a building. Visitors are checked at the door, common requests are handled right there, and only the ones that need the office upstairs (the origin server) are sent up.

Where is Cloudflare used?

Case 1

AI Gateway — Putting a control point in front of AI API calls (illustrative)

Imagine a small team whose customer-support bot calls an outside AI provider. Routing those calls through AI Gateway lets the team see request counts, token usage, and cost, keep logs, set rate limits, and define retries or a fallback model if a provider fails.[9] Caching is off by default. When it is enabled, only identical requests reuse a stored response, so it suits bots that offer a small set of fixed options rather than free-form conversation.[10] This scenario is illustrative and not a report of any company's results.

Case 2

Workers AI — Running open models on Cloudflare's GPUs

Workers AI lets developers call more than 50 open models running on GPUs in Cloudflare's network from their own code, without managing servers.[7] It is included in both the Free and Paid Workers plans: everyone gets 10,000 Neurons (Cloudflare's compute unit) per day at no charge, and usage above that requires the Paid plan at $0.011 per 1,000 Neurons, according to the pricing page as of October 2026. Some models require a paid billing method even when a free allocation is available; check the selected model's rules.[8] When Workers AI became generally available in April 2024, Cloudflare reported GPUs in more than 150 cities.[6] Actual response times depend on the model, the prompt, and where the user is.

Case 3

1.1.1.1 — A public DNS resolver

On April 1, 2018, Cloudflare launched 1.1.1.1, a free public DNS resolver it described as fast and privacy-first. It committed to never writing querying IP addresses to disk and to wiping logs within 24 hours.[5] Anyone can point a device or network at it, which is how many people use Cloudflare without running a website.

Why it matters for AI services

First, AI Gateway gives one place to log, cache, rate-limit, and add fallbacks for calls to providers such as OpenAI, Anthropic, and Google.[9][10]

Second, Workers AI runs open models on Cloudflare's own network, so a small team can try AI features without renting GPUs.[6][7]

Third, basic protection starts on the Free plan: volumetric DDoS mitigation is unmetered regardless of plan.[3]

Try it today

  1. Check whether your site already uses Cloudflare: look at your domain's DNS nameservers or the response headers in your browser's developer tools.
  2. List the AI APIs your team calls and how much each costs per month, then decide whether a gateway for logging and spend control is worth it.[9]
  3. Before turning on response caching for an AI feature, confirm the requests are truly identical and contain no personal data.[10]
  4. Try a small Workers AI test within the daily free allocation and compare output quality with the model you use now.[8]
  5. Write down which settings live in Cloudflare (DNS, cache rules, security rules) so the setup does not depend on one person.

Limits and direction

Putting Cloudflare in front of a site adds a dependency: if its configuration is wrong or its service has a problem, visitors can be affected. Free features cover common needs, but advanced reporting, tools, and support come with higher plans.[3] Prices, model lists, and free allocations change, so check the current documentation before planning costs.[8] AI Gateway caching only helps when requests repeat exactly.[10]

How has Cloudflare evolved?

2009
Company founded
Matthew Prince, Michelle Zatlyn, and Lee Holloway founded Cloudflare; it won the Harvard Business School business plan competition in April 2009 and launched publicly at TechCrunch Disrupt on September 27, 2010.[1]
2017-09-29
Workers announced
Cloudflare announced Workers for running JavaScript on its edge network; it became available to everyone on March 13, 2018.[4]
2024-04-02
Workers AI generally available
Workers AI, first announced in September 2023, became generally available for running AI inference on Cloudflare's network.[6]

Which concepts are related to Cloudflare?

  • Core service
    CDNCaches and delivers content from locations in 335 cities.[1][2]
  • Foundation service
    DNSRuns the 1.1.1.1 public DNS resolver, launched in 2018.[5]

Which sources explain Cloudflare?

  1. Cloudflare — Our Story — https://www.cloudflare.com/our-story/
  2. Cloudflare — About us — https://www.cloudflare.com/about-overview/
  3. Cloudflare Blog — Unmetered Mitigation: DDoS Protection Without Limits (2017-09-25) — https://blog.cloudflare.com/unmetered-mitigation/
  4. Cloudflare Blog — Introducing Cloudflare Workers: Run JavaScript Service Workers at the Edge (2017-09-29) — https://blog.cloudflare.com/introducing-cloudflare-workers/
  5. Cloudflare Blog — Announcing 1.1.1.1: the fastest, privacy-first consumer DNS service (2018-04-01) — https://blog.cloudflare.com/announcing-1111/
  6. Cloudflare Blog — Leveling up Workers AI: general availability and more new capabilities (2024-04-02) — https://blog.cloudflare.com/workers-ai-ga-huggingface-loras-python-support/
  7. Cloudflare Docs — Workers AI overview (2026-04-21) — https://developers.cloudflare.com/workers-ai/
  8. Cloudflare Docs — Workers AI pricing (2026-10-09) — https://developers.cloudflare.com/workers-ai/platform/pricing/
  9. Cloudflare Docs — AI Gateway overview (2026-04-20) — https://developers.cloudflare.com/ai-gateway/
  10. Cloudflare Docs — AI Gateway caching (2026-09-30) — https://developers.cloudflare.com/ai-gateway/features/caching/