← Back to blog

Redson Dev brief · PRIMARY SOURCE

ARTICLE#Dev#AI

Cut your AI spend with AI Gateway's Auto Router

Cloudflare Blog · September 30, 2026

Managing artificial intelligence costs while maintaining performance just became significantly more practical for many organizations. Cloudflare's AI Gateway now incorporates an Auto Router that intelligently directs AI requests, using an edge-deployed classifier to assess the complexity of each incoming query and select the most appropriate AI model. This system aims to find the optimal balance between the desired output quality and the associated token costs, allowing businesses to drastically reduce their AI expenditure without compromising the effectiveness of their applications. For a software founder in San Francisco developing a customer support chatbot, this means avoiding the expensive over-reliance on a large, high-capacity model for every simple query. Instead, routine questions about account balance or operating hours can be routed to a more economical, smaller model, while complex troubleshooting or nuanced product inquiries are sent to a premium, larger model, saving thousands monthly. Similarly, an internal IT team at a mid-sized law firm in Chicago, using AI for document summarization, could leverage this to process standard contracts with a cost-effective model and only engage a more powerful, pricier option for highly intricate legal briefs, ensuring efficient resource allocation. Even a logistics startup based in Dallas, automating shipment updates, can capitalize by using lighter models for standard delivery notifications and reserving more advanced AI for predictive delay analysis, optimizing their operational budget. To explore this capability, consider setting up a small-scale experiment this week. Identify a specific AI-powered feature within your current workflow that handles varying levels of query complexity. Configure a proxy or gateway to route simpler requests to a more cost-effective, smaller model, while directing more complex or critical queries to a larger, higher-performance alternative, and monitor the cost and quality difference over a few days.

Source / further reading

Learn more at Cloudflare Blog →