Pricing (5)

Last updated Oct 15, 2026 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.

You can monitor your usage in the AI Gateway dashboard.

Logs

AI Gateway stores logs in either Workers Logs or Legacy Logs, depending on when your account created its first gateway.

Workers Logs

Accounts that created their first gateway on or after September 24, 2026 store logs in Workers Logs and follow Workers Logs pricing and retention.

Legacy Logs

Accounts that 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.

Data Loss Prevention (DLP)

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

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.

Unified Billing

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

Logpush is available to all AI Gateway customers. Exports of AI Gateway logs are billed according to Logpush pricing, based on the volume of logs exported and transformed.

Pricing notes

Prices subject to change. If you are an Enterprise customer, reach out to your account team to confirm pricing details.

Was this helpful?

YesNo

On this page

Pricing (5) - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai-gateway/reference/pricing/#page","headline":"Pricing","description":"Review AI Gateway pricing for logs and premium features.","url":"https://developers.cloudflare.com/ai-gateway/reference/pricing/","inLanguage":"en","image":"https://developers.cloudflare.com/ai-gateway/reference/pricing/og.png?v=ef3d0446a25cd6db","dateModified":"2026-10-15","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Resolve common AI Gateway issues including authentication errors, missing logs, and provider connectivity problems. title: Troubleshooting image: https://developers.cloudflare.com/ai-gateway/reference/troubleshooting/og.png?v=e2e9a70e6ecb8b47


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ai-gateway/llms.txt
Use this file to discover all available pages before exploring further.