Hey, I’ve been exploring AI Gateway lately as a potential alternative to OpenRouter for my projects using AI SDK and so far it’s been promising. I’ve been using Google models like Gemini through AI Gateway and things are working well.
My main question is: can I use provider-specific tools and parameters with AI Gateway hosted models?
For example, with Gemini models specifically, I’d love to know if I can enable things like: Grounding with Google Maps, Code Execution & URL Context
The reason I’m asking is that one of my biggest frustrations with gateway services like OpenRouter is the feature disparity when it comes to model support. For instance, I can’t use the Image Search tool with Nano Banana models on OpenRouter, and it also lacks safety settings control for Google models.
AI SDK does mention support for provider-specific parameters and tools but does that extend to models served through AI Gateway? The docs cover some provider-specific features (like web search), but don’t seem to explicitly confirm whether free-form provider-specific parameter passthrough is supported.
So to summarise: does AI Gateway support provider-specific parameter passthrough when used with AI SDK as documented? Things like safety settings, hosted tools, and other model-native features would be really valuable to have access to.
Thanks!