Cloudflare AI Gateway vs LiteLLM
Cloudflare AI Gateway
cloudflare.comLiteLLM
litellm.aiSide by side
| Figure | Cloudflare AI Gateway | LiteLLM |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | Yes |
| Open source | — | — |
| Web | Yes | Yes |
| API | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 3 | 2 |
| Spec score · LLM Gateway Software | 8.7 (#5) | 7.8 (#15) |
| Spec score · LLM gateways | 7.9 (#18) | 7.8 (#19) |
| Caching | Responses can be served from Cloudflare's global cache, with configurable TTL and per-request controls; Cloudflare says latency can fall by up to 90% for repeated queries. | Response and semantic caching can use Redis, S3, or GCS. |
Plans
Cloudflare AI Gateway
- AI Gateway corePriced on request
- AI Gateway coreFree
- Cloudflare AI Gateway listingPriced on request
In their own words
Cloudflare AI Gateway
Cloudflare AI Gateway has no write-up on Specifiction yet; its figures are above.
LiteLLM
LiteLLM is an open-source AI gateway and LLM proxy for platform teams. It provides one OpenAI-compatible API to 140+ providers and 1,800+ models, with load balancing, lowest-cost routing and automatic selection of cheaper models for simple prompts. Teams can track usage and spend across keys, users, teams, organizations, tools, agents and MCP, then apply hard budgets and rate limits. Response and semantic caching can use Redis, S3 or GCS. LiteLLM can be self-hosted, including in air-gapped environments, and offers deployment through an official Helm chart or Terraform module. The maker says self-hosting has no telemetry and keeps data within the user's infrastructure. Listed security features include hardened non-root images, vulnerability scanning, SSO/JWT/RBAC controls and secrets-manager integrations. The free Open Source plan is self-hosted and includes 100+ providers, virtual keys, budgets, rate limits, fallbacks, logging and Prometheus metrics. A 30-day Enterprise trial key is available without a credit card.