Cloudflare AI Gateway
AI Gateway's core features (caching, rate limiting, analytics, logging) are free on all Cloudflare plans; you pay the model providers per token, listed below. Log storage limits depend on your Workers plan, see Cloudflare's AI Gateway pricing and limits docs.
Models on Cloudflare AI Gateway · pay-as-you-go
| Model | Input / 1M | Output / 1M | |
|---|---|---|---|
| Gemini 2.5 Flash-Lite | $0.1 | $0.4 | Details → |
| Qwen3.7 Plus | $0.32 | $1.28 | Details → |
| GPT-5.4 mini | $0.75 | $4.5 | Details → |
| Gemini 3.8 Flash | $0.75 | $3.75 | Details → |
| Qwen3 Max | $1.2 | $6 | Details → |
| Grok 4.3 | $1.25 | $2.5 | Details → |
| Qwen3.7 Max | $1.25 | $3.75 | Details → |
| Gemini 4 Hydrogen | $1.5 | $7.5 | Details → |
| Gemini 4 Argon | $2 | $10 | Details → |
| Gemini 4 Carbon | $2 | $10 | Details → |
| Grok 4.5 | $2 | $6 | Details → |
| Grok 4.20 (Non-Reasoning) | $2 | $6 | Details → |
| Grok 4.6 | $2 | $6 | Details → |
| Grok 4.7 | $2 | $6 | Details → |
| GPT-5.4 | $2.5 | $15 | Details → |
| Gemini 4 Neon | $3 | $15 | Details → |
| Kimi K3.1 Pro Highspeed | $4 | $20 | Details → |
| GPT-5.5 | $5 | $30 | Details → |
| Claude Opus 5 | $5 | $25 | Details → |
| GPT-6.2 Astra | $8 | $40 | Details → |
| Claude Fable 5 | $10 | $50 | Details → |
| GPT-5.4 Pro | $30 | $180 | Details → |
Prices from models.dev (USD / 1M tokens), for reference — verify on each provider's site.
FAQ
Can Cloudflare AI Gateway put several LLM providers on one bill?
Yes, with Unified Billing. You load credits into your Cloudflare account and spend them through the gateway on OpenAI, Anthropic, Google AI Studio, Workers AI and the other supported providers, so the usage arrives on one Cloudflare bill. Cloudflare adds a 5% fee on purchased credits (a $100 top-up costs $105). If you bring your own provider keys instead, each provider keeps billing you separately.
How do I split AI Gateway costs by provider, customer or team?
The gateway's analytics break usage and cost down by provider and model. To split by customer or team, attach custom metadata to each request and filter the logs by it. For one view that also covers your cloud bills, export the gateway logs to a cost tool.
List prices are the start. Your bill is the rest.
Mofis reads your real bills from 12 clouds, discounts included, and an AI cloud architect tells you what to cut.