{
 "kind": "api",
 "slug": "cloudflare-ai-gateway",
 "path": "apis/cloudflare-ai-gateway/",
 "name": "Cloudflare AI Gateway",
 "logo": "https://agentgid.com/media/avatars/cloudflare.png",
 "maker": "Cloudflare",
 "density": "basic",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "LLM gateways and routers",
   "apis/llm-gateway/"
  ]
 ],
 "lead": "Proxy for LLM providers adding analytics, caching, rate limiting, logging and unified billing.",
 "chips": [
  {
   "label": "LLM gateways and routers",
   "path": "apis/llm-gateway/"
  },
  {
   "label": "Partially Degraded Service · live status",
   "live": false
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install ai-gateway-provider"
 },
 "links": [
  {
   "label": "Website",
   "href": "https://developers.cloudflare.com/ai-gateway/"
  },
  {
   "label": "Pricing",
   "href": "https://developers.cloudflare.com/ai-gateway/reference/pricing/"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/cloudflare/ai"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free credits",
   "status": "cond",
   "sub": "One-time or needs a card",
   "quote": null,
   "note": "Free tier: Core features (analytics, caching, rate limiting) free on all plans. As reported on the official pricing page, checked Nov 1, 2026.",
   "src": "https://developers.cloudflare.com/ai-gateway/reference/pricing/"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": "Read the terms before you ship",
   "note": "We have not read this API's terms yet. Until we do, check its terms of service for commercial use and whether it trains on what you send.",
   "src": "https://developers.cloudflare.com/ai-gateway/"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "We have not read how this API signs you up and issues keys yet.",
   "src": "https://developers.cloudflare.com/ai-gateway/"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": null,
   "note": " Our agent check: 6 of 6 (Nov 13, 2026).",
   "src": "https://developers.cloudflare.com/llms.txt"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Nov 1, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Cloudflare AI Gateway does",
   "parts": [
    {
     "t": "prose",
     "text": "Proxy for LLM providers adding analytics, caching, rate limiting, logging and unified billing."
    },
    {
     "t": "list",
     "items": [
      "Cloudflare AI Gateway is one of 8 APIs in the LLM gateways and routers category on AgentGid.",
      "It is one of 7 that can be started for free.",
      "It ships an official MCP server, like 3 others here.",
      "Its official SDK is the 5th most downloaded in the category (455K a week)."
     ],
     "muted": true
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Cloudflare AI Gateway popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "455K",
       "l": "SDK downloads a week",
       "d": null,
       "up": false
      },
      {
       "n": "4",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "1,224",
       "l": "GitHub stars, cloudflare/ai"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "Core features (analytics, caching, rate limiting) free on all plans"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "Unified Billing: 5% fee on credits purchased; provider inference passed through with no markup"
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy.",
     "link": "developers.cloudflare.com/ai-gateway/reference/pricing",
     "href": "https://developers.cloudflare.com/ai-gateway/reference/pricing/"
    }
   ]
  },
  {
   "id": "status",
   "nav": "Status",
   "h2": "Status and incidents",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Right now",
       "v": "Partially Degraded Service",
       "status": "cond",
       "sub": "Partially Degraded Service"
      },
      {
       "l": "Last 30 days",
       "v": "46 incidents, 1 of them major"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official status page, checked Nov 23, 2026.",
     "link": "cloudflarestatus.com",
     "href": "https://www.cloudflarestatus.com"
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Official: https://ai-gateway.mcp.cloudflare.com/mcp",
       "sub": null
      },
      {
       "l": "npm",
       "v": "npm install ai-gateway-provider",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Cloudflare AI Gateway",
       "me": true,
       "facts": [
        "Free plan",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Vercel AI Gateway",
       "why": "Unified API to hundreds of models with provider fallbacks, billed at provider list prices.",
       "path": "apis/vercel-ai-gateway/",
       "facts": [
        "Free plan",
        "Free tier"
       ]
      },
      {
       "name": "LiteLLM",
       "why": "Open-source proxy and SDK that calls 100+ LLMs in OpenAI format with keys, budgets and logging.",
       "path": "apis/litellm/",
       "facts": [
        "Free (open source)",
        "Free tier"
       ]
      },
      {
       "name": "OpenRouter",
       "why": "One OpenAI-compatible API for 500+ models across 80+ providers with routing and fallbacks.",
       "path": "apis/openrouter/",
       "facts": [
        "Free plan",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Prisma AIRS AI Gateway (formerly Portkey)",
       "why": "AI gateway with routing, fallbacks, caching, guardrails, prompt management and observability.",
       "path": "apis/portkey/",
       "facts": [
        "Free (open source)",
        "Free tier"
       ]
      }
     ],
     "more": "All llm gateways and routers APIs",
     "more_path": "apis/llm-gateway/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install the official SDK.",
     "code": "npm install ai-gateway-provider"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Cloudflare AI Gateway yet: we have not written its hand-checked card. Its official docs are linked at the top."
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Cloudflare"
  ],
  [
   "Category",
   "LLM gateways and routers"
  ],
  [
   "Status",
   "Partially Degraded Service · 46 incidents in 30 days"
  ],
  [
   "Price",
   "Free plan"
  ],
  [
   "Official SDK",
   "npm ai-gateway-provider"
  ],
  [
   "Agent check",
   "6 of 6"
  ],
  [
   "Pricing checked",
   "Nov 1, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the official site and pricing page, checked Nov 1, 2026; no hand-checked card yet; usage numbers update daily."
}