Cloudflare AI Gateway
A proxy in front of AI providers (OpenAI, Anthropic, Workers AI, and more) that adds caching, rate limits, logs, and analytics. · Cloudflare · AI
Overview
AI Gateway sits between your app and AI providers. It is free to use; the model calls themselves are billed by each provider.
Good fit
Use when your app calls one or more LLM APIs and you want caching, logs, and limits for free.
- LLM apps
- cost control
- multi-provider apps
Not a fit
Avoid if you need long log retention or deep evaluation features.
- long-term log storage
Quickstart · 3 steps
- Create a free Cloudflare account.
- Create a gateway in the AI Gateway dashboard.
- Change your provider base URL to the gateway URL.
Other free ai options
Free tierWhat you get freeRiskCard
GitHub · AI
2,000 code completions per month · 50 chat requests per month (including Copilot Edits) · Agent mode, CLI, and MCP servers included with limited usage
Billing risk: None
No card
Google Cloud · AI
Sessions run up to 12 hours, depending on availability · GPU/TPU access heavily restricted on the free tier · Exact resource limits are not published and vary over time
Billing risk: None
No card
Google Cloud · AI
Free input and output tokens on supported models · Limited access to certain models · 5,000 free Google Search grounding requests/month, shared across Gemini 3.x models
Billing risk: None
No card
Hugging Face · AI
Unlimited public repos (best-effort free storage) · 100GB private storage · Storage limits apply across models, datasets, and buckets
Billing risk: None
No card