Comparison

Conifer and Cloudflare AI Gateway compared

Both are hosted gateways that sit in front of AI models from many providers. This page sets out how Conifer and Cloudflare AI Gateway each work, using each company’s own published documentation.

Summary

Cloudflare AI Gateway runs on Cloudflare’s infrastructure in front of the AI providers you use. Its core features, which are analytics, caching and rate limiting, are free on all plans, and you pay for models with your own provider keys or with Cloudflare credits through Unified Billing. Conifer is a hosted gateway that sells usage of more than 230 models from a prepaid balance, serves a named model as named or refuses it, and states the exact cost of every request.

Cloudflare AI Gateway details were read from developers.cloudflare.com and cloudflare.com on 7 November 2026. Plans and prices change; check Cloudflare’s pages before you decide.

Side by side

Which one fits

Cloudflare AI Gateway may suit you if
You already run on Cloudflare, you want repeated requests served from a cache, you want guardrails or data loss prevention in the gateway, or you already hold provider keys and want analytics, caching and rate limits in front of them at no charge.
Conifer may suit you if
You want many models paid from one balance at their makers’ list prices, you need each response to state the model that served and the exact amount charged, you want a cost ceiling on each request enforced before any provider is called, or you want automatic model choice that stays within a pool of models you approve.
Using both
Cloudflare AI Gateway accepts custom providers at any HTTPS address. Add Conifer as a custom provider, and Cloudflare’s caching, rate limits and logs sit in front of the models Conifer serves.

Moving from Cloudflare AI Gateway to Conifer

Address and key
Point an OpenAI or Anthropic client at Conifer and use a Conifer key.
OPENAI_BASE_URL=https://api.conifer.build/v1
OPENAI_API_KEY=$CONIFER_API_KEY
Model names
Use the model names in the Conifer catalog. Names with the lab in front, such as anthropic/claude-opus-5, are also accepted.
Fallbacks
Conifer tries another provider for the same model on its own. To try other models, list up to three fallbacks in a request header.
Limits
Give each person or service its own key with a spend cap, and set a cost ceiling on any request. Team accounts are set up by Conifer, and an admin can limit a key to a list of models.
Check first
AWS Bedrock and Google Vertex are not served as your own endpoints today, the moderations endpoint is not served, and image, audio, Files and Batches endpoints have no Conifer equivalent.

Replace your provider key has the full steps, Routing covers fallbacks and failover, and Billing and caching covers spend caps and cost ceilings.

Read more

Conifer Gateway
One API key and endpoint for every model in the catalog, with the model and cost stated on every response.
What is an LLM gateway?
How a gateway sits between your software and the companies that serve models, and what to check when you choose one.
Conifer vs OpenRouter
The two gateways side by side, from each company's own documentation.
Conifer vs Portkey
The two gateways side by side, from each company's own documentation.
Conifer vs LiteLLM
The two gateways side by side, from each company's own documentation.
All comparisons
Conifer compared with eleven other LLM gateways and routers, from their own documentation.

Questions

Is Conifer an alternative to Cloudflare AI Gateway?
Yes, for sending requests to models from many providers with fallbacks, spending limits and a cost for each request. Cloudflare AI Gateway also offers response caching, guardrails and data loss prevention, and its core features are free. Conifer sells model usage from a prepaid balance, serves a named model as named or refuses it, and states the exact cost of each request.
Can I use Cloudflare AI Gateway and Conifer together?
Yes. Cloudflare AI Gateway accepts custom providers at any HTTPS address, so you can add Conifer as a provider and keep Cloudflare’s caching, rate limits and logs in front of it.
Do I need provider accounts to use Conifer?
No. One Conifer key covers every model in the catalog, paid from a prepaid balance. You can also put your own Azure OpenAI resource behind the same key, and Conifer adds no fee on that usage.
Does Conifer store my prompts?
The gateway does not store the prompt of a standard request. It holds a response for ten minutes so that a retried request is not charged twice, and keeps request details such as the model, token counts and cost for billing.