Pauline P. Narvas Thanks for reporting this feature gap! You're correct - while the AI SDK supports imageConfig for Google Gemini models (via PR #12059), this isn't currently available through the AI Gateway REST API. You could try the following workarounds though: Use the AI SDK with TypeScript (already supports this) If using BYOK, make direct calls to Google's API with imageConfig parameters Thanks again! Keep an eye out for updates :)
René Schubert Thanks for pointing to the PR, it helped me understand a bit more. However I’m not sure about the difference between generateText({ model: google("gemini-3-pro-image-preview"), // from the test in the PR /* … / }); and generateText({ model: "google/gemini-3-pro-image", // what we're using / … */ }); Is it basically the same and for both the structure of the providerOptions should be providerOptions: { google: { responseModalities: ['TEXT', 'IMAGE'], imageConfig: { aspectRatio: '16:9', imageSize: '4K', }, }, }, or does it differ, depending on whether I use @ai-sdk/google or not?