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, 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.

API entry from apis.yml

apis.yml Raw ↑
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/