Cloudflare AI Gateway website screenshot

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.

Cloudflare AI Gateway publishes 3 APIs on the APIs.io network: Gateways API, Logs API, and Proxy API. Tagged areas include AI Gateway, LLM, Observability, Caching, and Rate Limiting.

Cloudflare AI Gateway’s developer surface includes authentication, developer portal, documentation, getting-started guide, API reference, changelog, engineering blog, and 16 more developer resources.

53.5/100 developing ▬ flat Agent 41/100 agent ready Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFreeSelf serve⚡ Free to try
7 APIs 1 MCP Servers 10 Features 5 Use Cases
AI GatewayLLMObservabilityCachingRate LimitingWorkers AICloudflare

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 53.5/100 · developing
Contract Quality 13.8 / 25
Developer Ergonomics 17.8 / 20
Commercial Clarity 7.9 / 20
Operational Transparency 7.5 / 13
Governance 0.0 / 12
Discoverability 6.5 / 10
Agent readiness — 41/100 · agent ready
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 12 / 12
Machine-Readable Auth 10 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/cloudflare-ai-gateway: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 7

Individual APIs this provider publishes, each with its own machine-readable definition.

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.

Cloudflare AI Gateway Gateways API

The Gateways API from Cloudflare AI Gateway — 2 operation(s) for gateways.

Cloudflare AI Gateway Logs API

The Logs API from Cloudflare AI Gateway — 1 operation(s) for logs.

Cloudflare AI Gateway Proxy API

The Proxy API from Cloudflare AI Gateway — 2 operation(s) for proxy.

Scroll for all 7

Open Collections 1

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

Cloudflare AI Gateway API

OPEN COLLECTION

MCP Servers 1

Model Context Protocol servers that expose these APIs to AI agents.

mcp

MCP SERVER

Pricing Plans 1

Published pricing tiers and plan structures.

Rate Limits 1

Documented rate limits and quota policies.

FinOps 1

Cost, billing, and metering signals for API financial operations.

Features 10

Notable capabilities this provider offers.

23+ Provider Coverage

OpenAI, Anthropic, Google AI Studio, Google Vertex AI, Amazon Bedrock, Azure OpenAI, Workers AI, Mistral, Cohere, Groq, DeepSeek, Cerebras, xAI, Perplexity, Replicate, HuggingFa...

Unified REST API

Single endpoint that can call any supported model (launched May 21, 2026), alongside provider-native pass-through mode.

Analytics and Logging

Per-request analytics for tokens, cost, latency, and error rates with full request and response logging.

Edge Caching

Cache LLM responses at Cloudflare's edge to cut latency and provider spend.

Rate Limiting

Enforce request and token rate limits per gateway, per application.

Retries and Model Fallback

Automatically retry failing calls and fall back to alternate models or providers.

Guardrails and Evaluations

Apply guardrails to prompts and responses and run evaluations against captured traffic.

BYOK and Unified Billing

Bring your own provider keys per gateway or route spend through Cloudflare's Unified Billing.

Workers AI Integration

Native integration with Cloudflare Workers AI models via the cf-aig-gateway-id header.

Secrets Store Integration

Provider keys can be sourced from Cloudflare's Secrets Store rather than embedded in client code.

Scroll for all 10

Security Posture 3

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Cloudflare Ai Gateway Authentication

http · 1 scheme

SECURITY

Cloudflare Ai Gateway Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Cloudflare Ai Gateway Vulnerability Disclosure

Hackerone · security.txt · contact published

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Cloudflare Ai Gateway Agentic Access

8 operations · 5 acting

8 operations · 5 acting

AGENTIC

Use Cases 5

What developers build with this provider.

Observe LLM Traffic

Capture per-request tokens, latency, and cost across every provider in one place.

Cut LLM Costs

Cache repeated responses at the edge and rate limit runaway workloads.

Fail Over Between Providers

Configure retries and model fallback so a single provider outage does not take down the app.

Govern Prompts and Responses

Apply guardrails and run evaluations against production AI traffic.

Unify Multi-Provider Access

Use a single REST endpoint to address any supported model from any provider.

Integrations 6

Pre-built integrations with other platforms and tools.

Workers AI

First-class integration with Cloudflare Workers AI inference catalog.

Cloudflare Workers

Call AI Gateway directly from Workers using AI bindings configured in wrangler.jsonc.

Cloudflare Secrets Store

Store and rotate provider API keys without redeploying.

Cloudflare CASB - Claude Compliance API

CASB support for Anthropic's Claude Compliance API announced May 2026.

Claude Managed Agents on Cloudflare

Partnership offering announced May 19, 2026 that runs Anthropic-managed Claude agents on Cloudflare with AI Gateway in the path.

MCP Server

Remote MCP server at ai-gateway.mcp.cloudflare.com/mcp for AI agent access to AI Gateway control plane.

Resources

Get Started 4

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 3

MCP servers, agent skills, and machine-readable catalogs

Build 5

SDKs, sample code, and the tooling you integrate with

Access & Security 4

Authentication, authorization, and security posture

Operate 3

Status, limits, changes, and where to get help

Commercial 1

Pricing, plans, and the legal terms of use

Company 1

The organization behind the API

Source (apis.yml)

apis.yml Raw ↑
aid: cloudflare-ai-gateway
name: Cloudflare AI Gateway
description: 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.
type: Index
accessModel:
  pricing: free
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Free · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-07-22'
  method: derived
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/cloudflare-ai-gateway.png
tags:
- AI Gateway
- LLM
- Observability
- Caching
- Rate Limiting
- Workers AI
- Cloudflare
url: https://raw.githubusercontent.com/api-evangelist/cloudflare-ai-gateway/refs/heads/main/apis.yml
created: '2026-05-23'
modified: '2026-05-23'
specificationVersion: '0.19'
apis:
- aid: cloudflare-ai-gateway:cloudflare-ai-gateway-proxy
  name: Cloudflare AI Gateway Proxy
  description: 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, fallback, and guardrails applied. URL pattern is https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/{provider}.
    Authentication uses a Cloudflare API token with AI Gateway Read/Edit and Workers AI Read permissions; provider credentials
    can be sent as headers (BYOK) or stored via Unified Billing.
  humanURL: https://developers.cloudflare.com/ai-gateway/
  baseURL: https://gateway.ai.cloudflare.com
  tags:
  - LLM Proxy
  - REST API
  - Multi-Provider
  properties:
  - type: Documentation
    url: https://developers.cloudflare.com/ai-gateway/
  - type: GettingStarted
    url: https://developers.cloudflare.com/ai-gateway/get-started/
  - type: APIReference
    url: https://developers.cloudflare.com/ai-gateway/usage/providers/
  - type: Authentication
    url: https://developers.cloudflare.com/ai-gateway/get-started/
- aid: cloudflare-ai-gateway:cloudflare-ai-gateway-unified-api
  name: Cloudflare AI Gateway Unified REST API
  description: 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. Sits alongside the provider-native proxy mode and uses
    the same gateway routing, caching, observability, and guardrails.
  humanURL: https://developers.cloudflare.com/ai-gateway/
  baseURL: https://gateway.ai.cloudflare.com
  tags:
  - Unified API
  - LLM
  - Multi-Provider
  properties:
  - type: Documentation
    url: https://developers.cloudflare.com/ai-gateway/
  - type: APIReference
    url: https://developers.cloudflare.com/ai-gateway/usage/providers/
- aid: cloudflare-ai-gateway-management-api
  name: Cloudflare AI Gateway Management API
  description: The Cloudflare API surface for managing AI Gateway resources — creating gateways, listing them, retrieving
    request logs, and configuring caching, rate limiting, and authentication. Exposed under the standard Cloudflare REST API
    at api.cloudflare.com.
  humanURL: https://developers.cloudflare.com/api/resources/ai_gateway/
  baseURL: https://api.cloudflare.com
  tags:
  - Management API
  - REST API
  - Configuration
  properties:
  - type: Documentation
    url: https://developers.cloudflare.com/api/resources/ai_gateway/
  - type: APIReference
    url: https://developers.cloudflare.com/api/resources/ai_gateway/
- aid: cloudflare-ai-gateway:ai-gateway-mcp
  name: AI Gateway MCP Server
  description: Cloudflare-hosted remote MCP server that exposes AI Gateway control-plane operations to MCP-compatible AI agents.
  humanURL: https://ai-gateway.mcp.cloudflare.com/mcp
  tags:
  - MCP
  - Agentic AI
  properties:
  - type: MCPServer
    url: https://ai-gateway.mcp.cloudflare.com/mcp
- aid: cloudflare-ai-gateway:cloudflare-ai-gateway-gateways-api
  name: Cloudflare AI Gateway Gateways API
  description: The Gateways API from Cloudflare AI Gateway — 2 operation(s) for gateways.
  humanURL: https://developers.cloudflare.com/ai-gateway/
  baseURL: https://gateway.ai.cloudflare.com
  tags:
  - Gateways
  properties:
  - type: OpenAPI
    url: openapi/cloudflare-ai-gateway-gateways-api-openapi.yml
- aid: cloudflare-ai-gateway:cloudflare-ai-gateway-logs-api
  name: Cloudflare AI Gateway Logs API
  description: The Logs API from Cloudflare AI Gateway — 1 operation(s) for logs.
  humanURL: https://developers.cloudflare.com/ai-gateway/
  baseURL: https://gateway.ai.cloudflare.com
  tags:
  - Logs
  properties:
  - type: OpenAPI
    url: openapi/cloudflare-ai-gateway-logs-api-openapi.yml
- aid: cloudflare-ai-gateway:cloudflare-ai-gateway-proxy-api
  name: Cloudflare AI Gateway Proxy API
  description: The Proxy API from Cloudflare AI Gateway — 2 operation(s) for proxy.
  humanURL: https://developers.cloudflare.com/ai-gateway/
  baseURL: https://gateway.ai.cloudflare.com
  tags:
  - Proxy
  properties:
  - type: OpenAPI
    url: openapi/cloudflare-ai-gateway-proxy-api-openapi.yml
common:
- type: AgenticAccess
  url: agentic-access/cloudflare-ai-gateway-agentic-access.yml
- type: VulnerabilityDisclosure
  url: security/cloudflare-ai-gateway-vulnerability-disclosure.yml
- type: DomainSecurity
  url: security/cloudflare-ai-gateway-domain-security.yml
- type: Authentication
  url: authentication/cloudflare-ai-gateway-authentication.yml
- type: Portal
  url: https://developers.cloudflare.com/ai-gateway/
- type: Documentation
  url: https://developers.cloudflare.com/ai-gateway/
- type: GettingStarted
  url: https://developers.cloudflare.com/ai-gateway/get-started/
- type: APIReference
  url: https://developers.cloudflare.com/ai-gateway/usage/providers/
- type: Authentication
  url: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
- type: ChangeLog
  url: https://developers.cloudflare.com/changelog/
- type: Blog
  url: https://blog.cloudflare.com/
- type: Signup
  url: https://dash.cloudflare.com/sign-up
- type: Console
  url: https://dash.cloudflare.com/
- type: Pricing
  url: https://www.cloudflare.com/plans/
- type: SDKs
  url: https://github.com/cloudflare/cloudflare-typescript
  name: Cloudflare TypeScript SDK
- type: SDKs
  url: https://github.com/cloudflare/cloudflare-python
  name: Cloudflare Python SDK
- type: SDKs
  url: https://github.com/cloudflare/cloudflare-go
  name: Cloudflare Go SDK
- type: CLI
  url: https://developers.cloudflare.com/workers/wrangler/
  name: Wrangler CLI
- type: MCPServer
  url: https://ai-gateway.mcp.cloudflare.com/mcp
  name: AI Gateway MCP Server
- type: GitHubOrganization
  url: https://github.com/cloudflare
- type: StatusPage
  url: https://www.cloudflarestatus.com/
- type: Support
  url: https://support.cloudflare.com/
- type: Features
  data:
  - name: 23+ Provider Coverage
    description: 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.
  - name: Unified REST API
    description: Single endpoint that can call any supported model (launched May 21, 2026), alongside provider-native pass-through
      mode.
  - name: Analytics and Logging
    description: Per-request analytics for tokens, cost, latency, and error rates with full request and response logging.
  - name: Edge Caching
    description: Cache LLM responses at Cloudflare's edge to cut latency and provider spend.
  - name: Rate Limiting
    description: Enforce request and token rate limits per gateway, per application.
  - name: Retries and Model Fallback
    description: Automatically retry failing calls and fall back to alternate models or providers.
  - name: Guardrails and Evaluations
    description: Apply guardrails to prompts and responses and run evaluations against captured traffic.
  - name: BYOK and Unified Billing
    description: Bring your own provider keys per gateway or route spend through Cloudflare's Unified Billing.
  - name: Workers AI Integration
    description: Native integration with Cloudflare Workers AI models via the cf-aig-gateway-id header.
  - name: Secrets Store Integration
    description: Provider keys can be sourced from Cloudflare's Secrets Store rather than embedded in client code.
- type: UseCases
  data:
  - name: Observe LLM Traffic
    description: Capture per-request tokens, latency, and cost across every provider in one place.
  - name: Cut LLM Costs
    description: Cache repeated responses at the edge and rate limit runaway workloads.
  - name: Fail Over Between Providers
    description: Configure retries and model fallback so a single provider outage does not take down the app.
  - name: Govern Prompts and Responses
    description: Apply guardrails and run evaluations against production AI traffic.
  - name: Unify Multi-Provider Access
    description: Use a single REST endpoint to address any supported model from any provider.
- type: Integrations
  data:
  - name: Workers AI
    description: First-class integration with Cloudflare Workers AI inference catalog.
  - name: Cloudflare Workers
    description: Call AI Gateway directly from Workers using AI bindings configured in wrangler.jsonc.
  - name: Cloudflare Secrets Store
    description: Store and rotate provider API keys without redeploying.
  - name: Cloudflare CASB - Claude Compliance API
    description: CASB support for Anthropic's Claude Compliance API announced May 2026.
  - name: Claude Managed Agents on Cloudflare
    description: Partnership offering announced May 19, 2026 that runs Anthropic-managed Claude agents on Cloudflare with
      AI Gateway in the path.
  - name: MCP Server
    description: Remote MCP server at ai-gateway.mcp.cloudflare.com/mcp for AI agent access to AI Gateway control plane.
- type: LlmsText
  url: https://developers.cloudflare.com/llms.txt
maintainers:
- FN: Kin Lane
  url: http://apievangelist.com
  email: kin@apievangelist.com