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.
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.
Filters on format and health
A pool Cloudflare maintains, filtered by request format, inputs and provider health, with a reason code in the headers.
Asks each route first
Each route is asked what it supports on the credential that serves it, and the decision is recorded.
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
Where the two line up and where they diverge, without hiding what Cloudflare does well.
| Inferbase | Cloudflare AI Gateway | |
|---|---|---|
| Automatic model choice | model "auto": task and complexity, ranked on cost, balanced, quality or latency | Auto Router: task type and difficulty, expected quality weighed against cost |
| Pool it chooses from | The models your routing policy allows, across managed models, your keys and your cloud accounts | Eight models by default, which may change; widen it with allow-list headers or a model alias |
| What a route supports | Each route is asked on the credential that serves it; structured output, forced tool calls and images are read for proof | Eligibility by request format and inputs, credentials, billing, spend limits and provider health |
| Why a model was chosen | Decision record: task, complexity, candidates, winner and each fallback | Routed model, reason code and decision ID in the response headers |
| Where rules are set | Organization, project and key, with locks lower levels cannot loosen | Per gateway: rate limits, spend rules, guardrails and DLP |
| Budgets | Project budgets and per-key caps; each request reserves its maximum cost before it is served | Spend rules by provider, model or metadata; best effort, so a concurrent burst can briefly exceed |
| Rate limits | Requests per minute per API key | Per gateway, fixed or sliding window; rate limit steps in dynamic routes |
| Content checks | Unsafe content and prompt injection on prompts, responses and tool results; Off, Log only or Block | Llama Guard hazards and Prompt Guard injection; Flag, Block or Ignore; plus DLP on prompts and responses |
| Routing configuration | Routing policies with pools, task rules and an objective, set in the portal | Dynamic routes in a visual editor or JSON: metadata conditions, percentage splits, versions with rollback |
| Caching | Provider prompt caching, passed through and preferred in routing | Response caching in Cloudflare’s cache, plus session affinity for prompt caching |
| Providers | Managed catalog, your keys for 14 providers, your Azure OpenAI, Bedrock and Vertex accounts | 24 providers, including Azure OpenAI, Amazon Bedrock and Google Vertex AI |
| Pricing | Free plan with 5,000 requests a month; Pro $25 a month | Core 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.
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
Frequently asked questions
Straight answers on how Inferbase and Cloudflare AI Gateway differ, and when each one is the better choice.
An LLM gateway is one API in front of many providers: every service calls the gateway with one set of credentials, and the gateway holds the provider keys, enforces limits and budgets, logs the traffic and falls back when a provider fails. Most gateways send each request to the model you named, or to whichever host is up for that model; the model decision stays in your config or in rules you write. Inferbase is a gateway that also makes that decision, on the prompt and on evidence.
A router decides which model should answer; a gateway executes the request and governs it with keys, limits, budgets, logs and failover. Some routers only recommend, leaving you to call the provider; some gateways only proxy to the model you named. Inferbase runs the router inside the gateway, so the decision is served rather than recommended and its record sits beside the usage receipt.
That the same call which chooses the model also runs it. You send model="auto" to one OpenAI-compatible endpoint; the router classifies the request, picks the model that clears the bar for the task on your objective, the gateway serves it with two fallbacks ready, and the response comes back with its decision on the record. There is no second system to operate for the inference and no second bill for it.
When a workload mixes tasks and difficulties, which most production traffic does. We publish no savings percentage: one was withdrawn in September 2026 because the baseline price it was measured against is no longer one we can substantiate, and a ratio is only as good as its denominator. What routing does is send each request to the model that gives the best quality for its price (Balanced) or the cheapest one that clears the quality bar (Cost), so the gain is the gap between what you pay now and what the right-sized model costs. A workload that is all one hard task gains less; the routing page shows the run and its caveats, and Routing Preview measures it on your own traffic.
Yes. Its Auto Router builds a pool of eligible models, estimates the task type and difficulty of the conversation, weighs each candidate’s expected quality against its cost, and falls back to the next if a provider cannot serve. Responses carry the routed model, a reason code and a decision ID. Inferbase routes on the same idea over the models your routing policy allows, with an objective you choose (cost, balanced, quality or latency), and keeps a decision record with the candidates and each fallback.
Cloudflare’s spend rules are set per gateway and can be split by provider, model or a metadata value such as a user; its docs describe them as best effort, because a request’s cost is recorded after it completes and a burst of concurrent requests can briefly pass the limit. Inferbase sets hard monthly budgets per project and daily and monthly caps per key, and each request reserves its maximum cost before it is served, so concurrent requests cannot together pass a limit.
Cloudflare’s Auto Router excludes models that do not support the request’s format or inputs, and accounts for credentials, billing, spend limits and provider health. Inferbase asks each route, on the credential that serves it, what it accepts: structured output, forced tool calls and image input are read for proof in the answer, a route found to ignore a field is kept away from requests that need it, and max_tokens is enforced by Inferbase over reasoning and answer.
Cloudflare checks prompts and responses with Llama Guard for hazard categories and Prompt Guard for prompt injection, each category set to Flag, Block or Ignore, and adds DLP with Cloudflare One’s detection profiles, which Inferbase does not offer. Inferbase checks unsafe content across fourteen hazard categories and prompt injection, on prompts, responses and tool results, each set to Off, Log only or Block, and an organization can enforce a guardrail policy so no project or key turns it off.
Yes. Cloudflare stores provider keys in its Secrets Store and lists 24 providers, Azure OpenAI, Amazon Bedrock and Google Vertex AI among them. Inferbase takes your keys for 14 providers and connects your Azure OpenAI, AWS Bedrock or Google Vertex account; by default each model a key or account lists is checked on that credential, and one configuration governs requests whether they run on managed models, your keys or your cloud.
On evidence, then on your objective. Each request is classified for its task family and complexity; the catalog is narrowed to the models that clear a quality bar for that task on benchmark evidence and that fit the request; the survivors are ranked on the objective you set (cost, balanced, quality or latency). A model with no measurement for the task is treated as unknown and does not qualify on guesswork.
Yes. Every routed request writes a decision record: the task the classifier saw, its complexity, the objective, how many models qualified, which won and how clearly, and each fallback attempt if any. When streaming it is the first event on the stream; afterwards it is retrievable by request id from the API and the dashboard.
One line. Point an existing OpenAI SDK at the Inferbase base URL and send model="auto"; chat completions, streaming, tool calls and structured output pass through unchanged, and Anthropic-shaped clients are served on the Messages endpoint. Name a model instead of auto and it is served as named, so an application can pin where it must and route where it can.
A free plan with no time limit and no card: 5,000 requests a month on any model and any key, with Inferbase's own models free for chat, embeddings and rerank within daily limits. Pro is $25 a month with 50,000 requests, $10 of managed inference credit and no daily limits. Managed inference beyond the free plan is billed per token from credit; on your own provider keys or cloud account the tokens are billed by your provider, with nothing added. Routed or pinned, a request counts the same.
Put intelligence in the middle.
Start on the free plan with 5,000 requests a month, no card required.