In an AI Model, the passthrough format forwards traffic to an upstream AI service without transforming it. AI Gateway doesn’t transform the request or response body, doesn’t enforce any Content-Type, and doesn’t validate the payload against any schema. Request and response bodies reach their destination byte-for-byte. This allows you to put AI Gateway in front of any AI service and keep all the capabilities that don’t depend on the payload shape:
- Upstream provider authentication, including AWS Signature Version 4, OAuth 2.0, and API keys
- AI Consumer authentication, identity, and access control lists
- Request-count rate limiting
- Logging and metrics
Use cases
Passthrough is useful for AI endpoints that fall outside the providers that AI Gateway supports natively. For example:
- Self-hosted model servers with proprietary request and response schemas.
- Vendor preview APIs whose schema is still changing ahead of general availability.
- Non-LLM AI endpoints, such as custom computer vision or speech APIs, that don’t map to any capability.
If you’re migrating from the
preserveroute type in the AI Proxy Advanced plugin, passthrough is its replacement. See Migrate from thepreserveroute type.