Watching Proposed · Cloudflare · LLM traffic control

Cloudflare AI Gateway

Free caching, rate limits, spend caps and model fallback in front of OpenRouter. Works even from Lambda.

Proposed verdict: drawn from research, not yet confirmed by Nic.

A base-URL change in front of OpenRouter buys caching, budgets and fallback. On my shortlist.

Use it when

  • Per-client spend caps and logs for AI features, and automatic fallback when a provider is down.

Pricing

Core features free. Logs: 20M events a month included on Workers Paid, then $0.60 per million (pricing changes 1 December 2026).

Provisioning

Official Pulumi package · Official Terraform provider

Worked examples

Where it fits

Sources

Last reviewed by Nicolas Dao

Want this stack in your AWS account?

Cloudless Labs is a Sydney consultancy. We migrate on-premises systems to AWS, build serverless apps on this stack, and coach teams to ship with Claude Code and Codex.

Contact Us

For general inquiries, please contact us at:

For e-learning capabilities, please contact: