Creating Model Proxies
You can configure a model proxy to route LLM traffic across different models and providers using model-based or semantic routing strategies. When you create a model proxy, you define the endpoint format, routing strategy, and at least one route that maps requests to a supported LLM provider and model. After deployment to Omni Gateway, you can edit the proxy configuration at any time.
| A large Omni Gateway supports up to 50 Model Proxies. |
Before You Begin
Before getting started, make sure you have:
-
An Anypoint Platform account
-
API Manager: API Creator permission
For more information, see Enhanced Experience Permissions.
-
A deployed Omni Gateway version 1.11.4
-
API keys to authenticate with your LLM Providers.
-
A configured semantic routing service if you want to use semantic routing.
-
A configured semantic caching service if you want to enable semantic caching.
-
A connection to an external vault (AWS Secrets Manager, Microsoft Azure Key Vault, or HashiCorp Vault) configured under Platform > Providers if you want to authenticate a route with a secret from your vault. For more information, see Using Credentials Stored in External Vaults.
Create a Model Proxy
-
In the navigation pane, select Model Proxies.
-
Click Add Model Proxy
-
Configure the proxy parameters:
-
Proxy Name: Define a name for the Model Proxy.
-
Description: Provide a description of what this proxy does.
-
Base Path: Define a base path for the proxy endpoint (for example:
/billing-ai). -
Format: Select an endpoint format:
-
OpenAI: Select the OpenAI API format to send requests to all supported LLM providers (including Gemini and Anthropic). Supports multi-routing and fallback mechanisms. You can’t change this format later.
-
Anthropic: Select the Anthropic API format for native Anthropic Claude model requests. Doesn’t support multi-routing or fallback mechanisms. You can’t change this format later.
-
Gemini: Select the Gemini API format for native Google Gemini model requests. Doesn’t support multi-routing or fallback mechanisms. You can’t change this format later.
-
-
Environment: Select the environment for the Model Proxy.
-
Omni Gateway: Select an Omni Gateway to deploy the Model Proxy to.
-
Consumer Endpoint: Specify the URL where the Model Proxy will be accessible.
-
Port: Enter the port number for the Model Proxy (for example,
8081). -
Optionally, configure TLS Configuration to secure the proxy endpoint:
-
Secret Group: Select the secret group that contains your TLS context. If you don’t see your secret group, ensure that it is downloadable. For more information, see Add a TLS Context.
-
TLS Context: Select the TLS context to use. If you don’t see your TLS context, click Configure a new TLS Context to create one.
-
-
-
Click Continue.
-
Configure the routing strategy:
-
Select a routing strategy:
-
Model-based: Route requests based on the model specified in the request payload.
-
Semantic: Route requests based on semantic analysis of the prompt content. Requires a configured semantic service.
-
-
-
Configure at least one route:
-
Provide a route name (for example,
Route A). -
Optionally, click Add headers to add routing headers that filter requests by region, SLA, or custom rules. For example,
Region: US -
Configure the target:
-
Provider: Select your LLM provider from these options:
-
OpenAI
-
Gemini
-
Azure OpenAI
-
Bedrock Anthropic
-
NVIDIA Nemotron
-
Anthropic
-
-
Request model override: Select a target model to override the model version specified in the payload. Selecting Use model from request sends the request to the model specified in the request. A target model is required for semantic routing.
-
Destination URL: Specify the URL for your provider endpoint. Ensure the URL is correct and edit if necessary.
-
-
Optionally, under TLS Configuration, click Add TLS Context to secure the connection to the provider endpoint with a TLS context.
-
Configure authentication:
-
API Key: Choose one of the following:
-
Static: Use your provider API key. Enter a static API key for the provider endpoint.
-
Dynamic: Retrieve your key dynamically from the request. Define a DataWeave script to extract the API key from the incoming request.
-
From vault: Use a secret stored in an external vault. Select a secret group, then select a secret from that group. For more information, see Using Credentials Stored in External Vaults.
-
-
-
-
Click Add Route to add additional routes. Complete the previous steps to configure each new route
-
Optionally, expand Advanced Options and enable Enable semantic caching to cache and reuse LLM responses based on semantic similarity. Select a configured semantic caching service from the list. For more information, see Configuring Semantic Caching Services.
-
Click Add Model Proxy.



