Skip to content
SPECIFICTION
Get listed

Cloudflare AI Gateway vs LiteLLM

Cloudflare AI Gateway

cloudflare.com

LiteLLM

litellm.ai

Side by side

FigureCloudflare AI GatewayLiteLLM
Price fromFreeFree
Free planYesYes
Free trial—Yes
Open source——
WebYesYes
APIYesYes
Self-hosted—Yes
Plans published32
Spec score · LLM Gateway Software8.7 (#5)7.8 (#15)
Spec score · LLM gateways7.9 (#18)7.8 (#19)
CachingResponses 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

Cloudflare AI Gateway pricing →

LiteLLM

  • Open SourceFree
  • EnterprisePriced on request

LiteLLM pricing →

In their own words

Cloudflare AI Gateway

Cloudflare AI Gateway has no write-up on Specifiction yet; its figures are above.

Visit cloudflare.com

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.

Visit litellm.ai