Routes ​

A route is the target that serves a request in Model Gateway. A route resolves to a provider and model, either directly or through rules. Applications reference a route by its route ID, so you can re-point traffic without editing client code.

Create a route ​

PREREQUISITES

You must add at least one provider before you create a route.

ROUTE ID NAMING FOR CLAUDE DESKTOP

Claude Desktop only accepts route IDs that resemble Claude model IDs, such as claude-sonnet-4-5 or the generic anthropic/claude. Model Gateway generates the route ID from the route name, so name the route after the models it uses if you plan to connect Claude Desktop. Refer to Connect Anthropic-compatible clients for more information.

Complete the following steps to create a route. The fields depend on the route type you select:

Route details ​

Click a route in the Routes list to open its details page. The details panel displays the following:

  • Type: The route type, either Direct, Rule-based, or Intelligent.
  • Route ID: The identifier to use in your LLM prompt calls.
  • Location: The project or folder that stores the route.
  • Description: An optional description for the route. Click Edit to add or change it.
  • Created: The date and time the route was created.

Click the edit icon next to the route name to rename the route.

Edit a route ​

Editing a route opens the route builder, where you configure the route on a canvas instead of in a form.

Complete the following steps to edit a route:

1

Go to Model Gateway > Routes and click the route you plan to edit.

2

Click Edit to open the route builder.

Edit routeEdit route

3

Click a step on the canvas to configure it:

  • Click the New LLM Call step to change the Policy that applies to all requests. Click Create a new one if you need a policy that doesn't exist yet.
  • Click a Route to step to change its Provider and Model.
4

Click Save, then click Exit to leave the route builder.

Refer to Route builder to add rules to a rule-based or intelligent route.

Delete a route ​

Complete the following steps to delete a route:

1

Go to Model Gateway > Routes.

2

Click the ... (ellipsis) menu for the route you plan to delete, then click Delete.

3

Click Delete to confirm.

KEYS STOP FUNCTIONING

Any access key that uses a deleted route no longer functions and must be recreated.

Validation messages ​

Model Gateway returns the following validation messages when you create or edit a route:

FieldMessageCondition
Attempt timeout (in seconds)Value must be between 1 and 360 seconds.The value is outside the supported range.

Last updated: