The Routes module defines the HTTP endpoints exposed by AI Gateway. These endpoints receive requests from your applications and forward them to an associated LLM Provider. Each route maps a public path to a registered provider and a specific HTTP method. You can optionally override the provider endpoint, configure a timeout, and require scopes in the access token.
NOTETo create a route, you must have at least one registered LLM Provider. Policies are applied per route. A route without a policy processes requests without guardrails, rate limiting, or prompt enrichment.
Learn how to:
The Routes page lists registered routes with pagination. You can filter by:
Use Search to apply the filter and Clear to reset it.
Columns shown in the table:
Provider / Model / Pn (for example, OpenAI / gpt-4o / P1). Shows No LLM provider. when empty.- when not configured).Fill in the Create Route form fields (see Form fields). The LLM Provider field is a searchable select. Type part of the identifier to filter the list.
In the Actions column of the row you want, click the Edit icon. The Update Route form opens with the current data. Change the required fields and click Save.
In the Actions column of the row you want, click the Delete icon. Confirm the operation in the "Do you want to delete route [routeId]?" dialog.
IMPORTANTDeletion is permanent and cannot be undone. Policies associated with the route also become orphaned. Review and remove dependent policies before deleting the route.
The table below covers all fields in the creation and edit forms.
Field | Type | Required | Rules |
|---|---|---|---|
| LLM Provider | Searchable select | Yes | Lists registered LLM Providers. |
| HTTP method | Select (enum) | Yes | Values: GET, POST, PUT, PATCH, DELETE. |
| Exposed endpoint | Text | Yes | Minimum 1 character. Public path exposed by the gateway (for example, /v1/chat/completions). |
| Provider endpoint | Text | No | When provided, overrides the default endpoint of the associated provider. Minimum 1 character. |
| Provider timeout (seconds) | Integer | No | When provided, must be a positive integer. |
| Scopes | Multi-select | No | List of scope IDs from the Scopes catalog required in the request access token. Select zero or more scopes. An empty list means any authenticated token can access the route. |
TIPAn empty Scopes list means any authenticated token can access the route. To restrict access, register the relevant scopes in Scopes, select one or more here, and make sure the presented token contains those scope IDs.
We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more