Quick Use
- Create an AI Gateway in the Cloudflare console
- Swap in the gateway API base URL:
client = OpenAI(
base_url="https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway}/openai"
)Intro
Cloudflare AI Gateway is a free LLM API proxy with 7,000+ GitHub stars. It provides caching, rate limiting, cost analytics, and failover routing. Caching responses can cut LLM costs by up to 95%. Ideal for teams running LLM apps in production who need cost control.
Source & Thanks
Created by Cloudflare. Licensed under Apache 2.0.
ai-gateway — ⭐ 7,000+