---
description: Choose how AI Gateway selects models with Auto Router, model aliases, and dynamic routes, without changing application code.
title: Routing
image: https://developers.cloudflare.com/ai-gateway/features/routing/og.png?v=1cd8df778a557b29
---

[Skip to content](#main-content)

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/ai-gateway/llms.txt  
> Use this file to discover all available pages before exploring further.

# Routing

Last updated Nov 4, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/ai-gateway/features/routing/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Routing lets you configure how AI Gateway selects models. In the dashboard, select your gateway, then go to **Routing** to manage model aliases and dynamic routes.

[Auto Router](https://developers.cloudflare.com/ai-gateway/features/routing/auto-router/)

Automatically route each request to the most cost-effective model that can handle the task while maintaining response quality.

Use Auto Router

[Model aliases](https://developers.cloudflare.com/ai-gateway/features/routing/model-aliases/)

Give one or more models a stable name such as `custom/support-fast`. Use an alias to try models in a default order or use smart routing without updating your application.

Use Model aliases

[Dynamic routes](https://developers.cloudflare.com/ai-gateway/features/routing/dynamic-routing/)

Build a routing flow with conditional branches, percentage splits, rate limits, and budget limits. Use a dynamic route when requests need to follow different paths based on rules you define.

Use Dynamic routes

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/ai-gateway/features/routing/#page","headline":"Routing","description":"Choose how AI Gateway selects models with Auto Router, model aliases, and dynamic routes, without changing application code.","url":"https://developers.cloudflare.com/ai-gateway/features/routing/","inLanguage":"en","image":"https://developers.cloudflare.com/ai-gateway/features/routing/og.png?v=1cd8df778a557b29","dateModified":"2026-11-04","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
