LLM routing, caching and guardrails
How the AI gateway picks a provider connection for each model call, and which caching and guardrails apply.
With more than one provider connection, each model call has to reach one that can serve it. The AI gateway routes each call to a connection that serves the requested model and that your model rules allow. A model route can first send the model's calls to another model or provider.
Routing
The gateway considers the connections that use the call's API format, OpenAI or Anthropic, and the same kind of credential: a shared API key or a user sign-in. It keeps the ones whose Allowed models include the requested model, and refuses the call if none does. Your model access rules then narrow those connections, because a rule can match model providers. A request that names more than one model is checked against your rules for each model.
Caching and guardrails
The gateway does not cache model responses. Data Protection filters scoped to model calls redact or block prompts and responses.
To control which models each agent and user reaches, see Model access rules.