AI Gateway is available to use on all plans.
AI Gateway's core features available today are offered for free, and all it takes is a Cloudflare account and one line of code to get started. Core features include: dashboard analytics, caching, and rate limiting.
We will continue to build and expand AI Gateway. Some new features may be additional core features that will be free while others may be part of a premium plan. We will announce these as they become available.
You can monitor your usage in the AI Gateway dashboard.
Log pricing depends on when you created your first gateway.
Customers who create their first gateway on or after September 24, 2026 follow Workers Logs pricing and retention.
Customers who created a gateway before September 24, 2026 use Legacy Logs. Persistent log storage is available on all plans with these limits:
| Plan | Log storage limit |
|---|---|
| Workers Free | 100,000 logs total across all gateways |
| Workers Paid | 10,000,000 logs per gateway |
For storage behavior and deletion options, refer to Legacy Logs.
DLP scanning in AI Gateway is free on all plans. Accounts without a Zero Trust subscription have access to two predefined DLP profiles: Financial Information and Social / Insurance / National Identifier Numbers.
DLP profiles are shared at the account level with Cloudflare One. If your account has a Zero Trust subscription that includes DLP, the full set of profiles — including all predefined profiles, custom profiles, integration profiles, DLP datasets, and OCR — is automatically available in AI Gateway.
Guardrails evaluates prompts and responses using @cf/meta/llama-guard-3-8b on Workers AI. Usage is billed as Workers AI token-based inference — cost scales with the length of the prompts and responses being evaluated.
A 5% fee is applied to all credits purchased through Unified Billing. For example, a $100 credit purchase will result in a $105 charge. Inference pricing from providers is passed through with no markup — you pay the same per-token rates as you would directly with the provider.
Logpush is available to all AI Gateway customers on the Workers Paid plan.
| Paid plan | |
|---|---|
| Requests | 10 million / month, +$0.05/million |
Prices subject to change. If you are an Enterprise customer, reach out to your account team to confirm pricing details.