Skip to navigation

Comparison · checked 27 November 2026

One AI API Key vs Cloudflare AI Gateway

Cloudflare AI Gateway is a proxy in front of providers you already use, with a unified-billing option for credit. We are a prepaid gateway with one balance. The difference shows up in who holds the provider relationship and what gets logged.

PointOne AI API KeyCloudflare AI Gateway
What it costsPrepaid credit at the published per-token rate; no purchase fee.The gateway is available on all plans, and core features (analytics, caching, rate limiting) are free. Unified Billing credit carries a 5% fee on purchases, and inference passes through with no markup.
Provider relationshipNone needed: one balance pays for every model.You bring provider keys (stored in Secrets Store), or use Unified Billing to pay Cloudflare for third-party models.
ProvidersThey are stronger hereA curated catalogue with every rate on the models page.24 listed providers, including Workers AI, OpenAI, Anthropic, Google, Bedrock, Groq and OpenRouter.
API formatsOpenAI format (chat completions, responses, embeddings) and Anthropic Messages on the same key.An OpenAI-compatible endpoint and native provider endpoints, including Anthropic Messages. Dynamic routes accept the OpenAI chat shape only.
CachingThey are stronger herePrompt caching wherever the model supports it, billed at the cached rate.Off by default; caches text and image responses for identical requests only. Semantic caching is planned, not shipped.
Retries and fallbacksThey are stronger hereUp to 3 fallback models per request (X-Fallback-Models header) or one per account.Up to 5 retry attempts with constant, linear or exponential backoff, and fallback steps on the universal endpoint.
GuardrailsThey are stronger herePer key: secret detection, prompt-injection checks, code detection and up to 10 custom rules, in log or deny mode.Llama Guard content categories and a prompt-injection model, with Flag, Block or Ignore actions; billed as Workers AI inference. DLP scanning is free.
LoggingPrompts are not stored by default; the console keeps usage records with tokens, cost and request id.Logs are on by default and can hold the prompt and the response. Unified Billing requests are always logged, without bodies.
Account neededA sign-in with Google.A Cloudflare account; new gateways require authentication.

Our column describes what this gateway does today; the docs page for each control is linked below. Their column comes from the pages in Sources, read on 27 November 2026. A cell that says "not listed" means the page we read did not describe that feature; it does not mean the feature is absent.

Where Cloudflare AI Gateway is ahead

  • Free analytics, caching and rate limiting on any Cloudflare plan.
  • Retries with backoff and fallback steps you configure per gateway.
  • Guardrails and DLP built on Cloudflare's own models and tooling.

What we do instead

  • One prepaid balance: no provider accounts, no keys to store, no fee on buying credit.
  • Prompts are not stored by default, where Cloudflare logs are on by default.
  • 100 free requests a day on tested :free models, and $10 of sign-up credit for any model.

Pick Cloudflare AI Gateway if

  • You already run on Cloudflare and want analytics, caching and rate limits in front of your providers.
  • You want to keep your own provider keys and contracts.
  • You want retries with backoff and fallback steps configured per gateway.

Pick One AI API Key if

  • You want one key and one balance, not a provider account per model.
  • You want prompts left unstored by default.
  • You want a published per-token rate and a free daily allowance to test with.

Questions people ask about Cloudflare AI Gateway and One AI API Key

Is Cloudflare AI Gateway free?
The gateway is available on all plans and core features such as analytics, caching and rate limiting are offered for free. Unified Billing credit has a 5% purchase fee, guardrails are billed as Workers AI inference, and log storage follows Workers pricing.
Does Cloudflare add a markup on tokens?
No. Its pricing page says provider inference is passed through with no markup. The 5% fee applies to Unified Billing credits you buy.
Does it store my prompts?
Logs are on by default and can include the prompt and the response; Unified Billing requests are always logged, without bodies. Here prompts are not stored by default. Read each policy for the detail.
Do I need provider keys on Cloudflare?
Either your own provider keys, or Unified Billing, which lets you pay Cloudflare for third-party models. Here you hold no provider accounts.
Can I use the Anthropic Messages format on both?
Yes. Cloudflare has a native Anthropic endpoint per gateway; here the Anthropic Messages format and the OpenAI format share one key.
When were these facts checked?
On 27 November 2026, from the Cloudflare pages linked under Sources.

Keep reading

Sources

Checked 27 November 2026. Cloudflare AI Gateway may have changed its pricing or features since; the linked pages are authoritative.

New accounts$10 credit on sign-up
  • 100requests
    per day
  • 3Mtokens
    per day
  • 47free
    models
  • $0per
    token
  • No card
  • No end date
Claim $10 credit →