https://gateway.ngrok.ai, the model field tells the AI Gateway which model to call.
Use a model ID when you want the gateway to resolve the provider from the model catalog. Use provider:model when you want to choose the provider yourself.
Use a model ID
Use a model ID when you know which model you want to call and don’t need to force a specific provider.gpt-4o in the model catalog and finds every provider that serves it. It tries the model author’s own provider first (OpenAI here), then any reseller that serves the same model, such as OpenRouter. Providers your access key can’t use drop out.
Route to a specific provider
Useprovider:model when you want predictable routing or need to avoid ambiguity between model names.
openaiis the provider ID.gpt-4ois the model ID.
Let ngrok.ai choose
Setmodel to ngrok/auto to let ngrok.ai pick a model for each request, starting with the cheapest one that fits the prompt. See Automatic model selection.
Use a custom provider model
provider:model format. In this example, my-ollama is your custom provider ID and llama3.2 is the model ID configured on that provider.
Check model capabilities
Before choosing a model, check the model catalog for:Keep access rules in mind
The request can only use providers and models allowed by the access key configuration assigned to the access key. If you need to limit what a client can call, see Restrict providers and models.Next steps
- Model catalog: Built-in providers and models
- Configure fallback models: Try another model if the first one fails
- Automatic model selection: Let ngrok.ai pick the model
- Use a model you run yourself: Connect Ollama, vLLM, LM Studio, or another private model