# Cloudflare AI Gateway vs DeepInfra (slim) > Cloudflare AI Gateway scores 66.8 (B) to DeepInfra's 63 (B) for llm inference. Prices, MCP, x402, uptime and agent notes side by side. - Full: https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra.md (~2,900 tokens) · this version ~780 tokens · JSON https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra.json · canonical https://www.anchorterminal.com/compare/cloudflare-ai-gateway-vs-deepinfra - Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · Updated: 2026-10-09 Cloudflare AI Gateway scores 66.8 (B) on agent readiness against DeepInfra's 63 (B), and leads in 5 of 7 scored categories. Both do llm inference. - Cloudflare AI Gateway: B 66.8, rank #275 of 950 · https://www.anchorterminal.com/tools/cloudflare-ai-gateway.min.md - DeepInfra: B 63, rank #411 of 950 · https://www.anchorterminal.com/tools/deepinfra.min.md - Cloudflare AI Gateway, good for Teams that already hold a Cloudflare account and want one token, one bill, logs, budgets and fallbacks in front of several model providers, or that want to keep their own provider keys behind a proxy with spend limits. Ahead on Schema & documentation, 75 against 69; Security & auth, 75 against 64; Payments & pricing, 52 against 20; Maintenance & community, 75 against 65; Transparency & trust, 73 against 67. - DeepInfra, good for Agents that want many open-weight models, embeddings, image and speech behind one OpenAI-style key at low per-token prices, with spend-capped tokens. Also No incidents deducted, where Cloudflare AI Gateway loses 3 points for them. | Category | Cloudflare AI Gateway | DeepInfra | | --- | --- | --- | | Reliability (16%) | 66 | 70 | | Performance (10%) | pending | pending | | Schema & documentation (13%) | 75 | 69 | | Agent ergonomics (13%) | 73 | 77 | | Security & auth (14%) | 75 | 64 | | Payments & pricing (10%) | 52 | 20 | | Task success (10%) | pending | pending | | Maintenance & community (7%) | 75 | 65 | | Transparency & trust (7%) | 73 | 67 | | Fact (where they differ) | Cloudflare AI Gateway | DeepInfra | | --- | --- | --- | | Kind | Model router | Model API | | Vendor | Cloudflare, Inc. | Deep Infra Inc. | | Hosted endpoint | `https://api.cloudflare.com/client/v4/accounts/{account_id}/ai` | `https://api.deepinfra.com/v1/openai` | | Pricing | Freemium | Pay per use | | x402 | payer tooling only | no | | Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement and its service-specific terms. Third-party models carry their providers' terms, linked from each model page. `ai-gateway-provider` is MIT and Cloudflare's OpenAPI repository is BSD-3-Clause | Proprietary service under the DeepInfra Terms of Service. The Python and Node SDKs and the docs repository are MIT | | Last release | 2026-10-06 | 2026-10-07 | | Terms last updated | 2025-09-12 | 2026-08-17 | | Privacy policy last updated | no date given | 2026-08-15 | | Terms restrict automated access | yes | not found in the text | | Terms restrict benchmarking | not found in the text | yes | | Terms or service can change without notice | yes | not found in the text | | Popularity | 251k npm/wk | 21 stars, 1.2k npm/wk, 50 PyPI/wk |