Specifying models
You can specify which model to use in your requests. The gateway supports several formats depending on how specific you need to be.Just the model name
The simplest approach—use the model name directly:gpt-4o in the Model Catalog and automatically routes to the right provider (OpenAI in this case).
With a provider prefix
Useprovider:model when you want to explicitly choose a provider:
- A model name exists on multiple providers
- You want to force a specific provider
- You’re using a custom provider you’ve configured
With model author
Use theauthor/model format when you want to be specific about who authored the model:
provider:author/model format lets you choose both the model author and which provider serves it. This is useful when the same model is available from multiple sources (like OpenRouter, Together, or a self-hosted instance).
Multiple models (fallback)
Specify multiple models for automatic fallback using themodels array:
modelfield first (primary choice)modelsarray entries as fallbacks
model alone, models alone, or both together—all are valid ways to specify client model preferences.
This enables cross-provider failover—if OpenAI fails, the gateway can automatically try Anthropic.
Automatic model selection
Use the specialngrok/auto model to let the gateway choose based on your configured model selection strategy:
Unknown models (pass-through)
If a client requests a model that isn’t in the Model Catalog, the gateway can still route it if:- The model name includes a provider prefix (for example,
openai:some-new-model) or uses author syntax where the author is a known provider (for example,openai/some-new-model) - The provider is known (either from the model catalog or a custom provider you’ve defined in your configuration) and allowed by your configuration
openai as the provider and forwards the request with some-new-model as the model name. This enables immediate access to new models before they’re added to the catalog.
Unknown models bypass catalog validation—the provider will return an error if the model doesn’t exist. Unknown models also lack metadata (pricing, capabilities) for model selection strategies.
Model aliases
The gateway automatically normalizes common model aliases. For example:- Shortened names may map to full version identifiers
- Legacy names may map to current versions
Aliases must be unique across all models. You cannot use an alias that is already in use as an ID or alias by another model.
Model capabilities
Models have different capabilities that you can filter on using selection strategies:- Input modalities: text, image, audio, video, file
- Output modalities: text, image, audio
- Features: tool-calling, coding, vision, etc.
- Context window: Maximum input tokens
- Output tokens: Maximum output tokens
Next steps
- Model Catalog - Full list of supported models
- Model Selection Strategies - Custom routing logic
- Configuring Providers - Configure specific models