Azure is now a provider for DeepSeek V4 Pro and V4 Flash on AI Gateway .
Requests to either model can route through Azure alongside the existing providers for another failover path. No code changes are required: default routing considers Azure automatically, and if a provider fails the gateway falls back through the remaining list.
If you want requests to try Azure first, use order in the gateway provider options to prefer Azure while keeping the other providers as fallback for deepseek/deepseek-v4-pro or deepseek/deepseek-v4-flash in the AI SDK :
import { streamText } from 'ai' ;
const result = streamText ( {
model : 'deepseek/deepseek-v4-pro' ,
prompt : 'Refactor this function to use async/await.' ,
providerOptions : {
gateway : {
order : [ 'azure' ] ,
} ,
} ,
} ) ;
If you have existing Azure credentials, you can bring your own key and AI Gateway will use it for requests routed to Azure.…