Skip to main content
Compare · Hosted gateway

Inferbase vs Cloudflare AI Gateway

Both are AI gateways that can pick the model per request. Inferbase checks what each route supports and holds your limits before a request is served.

The difference

What the router knows about a route

Both rank models on quality and cost for the task. The difference is how each learns what a route can do.

Cloudflare AI Gateway

Filters on format and health

your request
task type and difficulty, quality against cost
Claude Sonnet 5.5GPT-6.1 SolKimi K3
cf-aig-routing-reasoncf-aig-routing-decision-id

A pool Cloudflare maintains, filtered by request format, inputs and provider health, with a reason code in the headers.

Inferbase

Asks each route first

model:"auto"
ranked among routes that proved support
Gemma 4 26BQwen 3.5 122BDeepSeek V4 Pro
json_schema: checkedtool_choice: checkedmax_tokens: enforced

Each route is asked what it supports on the credential that serves it, and the decision is recorded.

In depth

Edge controls, or governed routing

A free gateway on Cloudflare’s network, versus a gateway built around a governed model decision.

Cloudflare AI Gateway puts analytics, logs, caching and rate limits in front of 24 providers, free on every plan, and adds an Auto Router, dynamic routes, spend rules, guardrails and DLP. For a team already on Cloudflare, that is a strong default.

  • Both routers read the task. Cloudflare’s Auto Router estimates task type and difficulty and weighs quality against cost, and returns a reason code and a decision ID. That is the same idea, done well.
  • Support is asked, not assumed. Inferbase sends each route a check on the credential that serves it, reads structured output, forced tool calls and images for proof, and keeps a route found to ignore a field away from requests that need it.
  • Limits hold before serving. Cloudflare records a request’s cost after it completes, so its docs note a burst can briefly pass a limit. Inferbase reserves each request’s maximum cost first.
  • Rules inherit downwards. Cloudflare sets its controls per gateway. Inferbase sets them for the organization, a project or a key, and a locked field cannot be loosened below.

If you want edge controls and caching beside the rest of your Cloudflare estate, Cloudflare AI Gateway fits. If you want routing that checks what each route supports, limits that hold under load and one policy inherited from the organization down, that is what Inferbase is built for. Still weighing the categories themselves? Start with our breakdown of gateways versus routers.

Side by side

Side by side

Where the two line up and where they diverge, without hiding what Cloudflare does well.

InferbaseCloudflare AI Gateway
Automatic model choicemodel "auto": task and complexity, ranked on cost, balanced, quality or latencyAuto Router: task type and difficulty, expected quality weighed against cost
Pool it chooses fromThe models your routing policy allows, across managed models, your keys and your cloud accountsEight models by default, which may change; widen it with allow-list headers or a model alias
What a route supportsEach route is asked on the credential that serves it; structured output, forced tool calls and images are read for proofEligibility by request format and inputs, credentials, billing, spend limits and provider health
Why a model was chosenDecision record: task, complexity, candidates, winner and each fallbackRouted model, reason code and decision ID in the response headers
Where rules are setOrganization, project and key, with locks lower levels cannot loosenPer gateway: rate limits, spend rules, guardrails and DLP
BudgetsProject budgets and per-key caps; each request reserves its maximum cost before it is servedSpend rules by provider, model or metadata; best effort, so a concurrent burst can briefly exceed
Rate limitsRequests per minute per API keyPer gateway, fixed or sliding window; rate limit steps in dynamic routes
Content checksUnsafe content and prompt injection on prompts, responses and tool results; Off, Log only or BlockLlama Guard hazards and Prompt Guard injection; Flag, Block or Ignore; plus DLP on prompts and responses
Routing configurationRouting policies with pools, task rules and an objective, set in the portalDynamic routes in a visual editor or JSON: metadata conditions, percentage splits, versions with rollback
CachingProvider prompt caching, passed through and preferred in routingResponse caching in Cloudflare’s cache, plus session affinity for prompt caching
ProvidersManaged catalog, your keys for 14 providers, your Azure OpenAI, Bedrock and Vertex accounts24 providers, including Azure OpenAI, Amazon Bedrock and Google Vertex AI
PricingFree plan with 5,000 requests a month; Pro $25 a monthCore features free; 5% on Unified Billing credits; guardrails billed as Workers AI inference

Reflects Cloudflare’s own documentation and pricing as of December 2026. Cloudflare ships often; check their docs for the latest.

Fit

Where each one fits

Both govern model traffic. Pick by where you want the rules to live and how much you want the router to verify.

Cloudflare AI Gateway is the better fit when

  • You already run on Cloudflare and want analytics, logs, caching and rate limits in front of your providers at no charge
  • You need DLP on prompts and responses with the profiles your Cloudflare One team already maintains
  • You want routing flows you can draw, split by percentage and roll back by version
  • You want automatic routing over a frontier pool that Cloudflare selects and maintains

Inferbase is the better fit when

  • You want each route checked for what it supports before a request depends on it
  • You need budgets that hold under concurrent load, not counts that catch up afterwards
  • You want one policy set at the organization and inherited by every project and key, with locks
  • You want a decision record that shows the candidates and fallbacks, not only a reason code
FAQ

Frequently asked questions

Straight answers on how Inferbase and Cloudflare AI Gateway differ, and when each one is the better choice.

Put intelligence in the middle.

Start on the free plan with 5,000 requests a month, no card required.