Cloudflare AI Gateway can swap providers mid-request from 9 December
New AI Gateway instances will route each model request to whichever provider serves it, not just the one you configured, with headers to control order and price sorting.
Cloudflare’s AI Gateway now supports multi-provider routing: a request for a given model can go to any provider that serves it, not just the one you configured. The 2 December changelog entry lists new alternate providers for several models: OpenAI and Alibaba models are now reachable through Groq, Claude through Google Vertex AI, Gemini through Google AI Studio, and Moonshot and DeepSeek models through Fireworks.
From 9 December, multi-provider routing is on by default for every new gateway. Existing gateways keep their current, single-provider setup unless you switch it on in the dashboard or set multiprovider_enabled to true through the API. Two headers decide what happens next:
cf-aig-provider-order: anthropic,vertex-ai
cf-aig-provider-sort: price
cf-aig-provider-order lists which providers to try first; cf-aig-provider-sort: price ranks the rest by token cost.
Why it matters: build on AI Gateway after 9 December and a Claude request can quietly go to Vertex AI instead of Anthropic, or get routed by price, unless you set these headers yourself. That is handy for riding out a provider outage or a price change without touching your code, but it turns provider choice into something you now configure explicitly rather than inherit by default.
The caveat: this only changes the default for gateways created after 9 December. Anything you already run keeps routing exactly as it does today, until you opt in.