GenkitG
Genkitโ€ข2mo agoโ€ข
9 replies
uniform-turquoise

Hi guys,

Hi guys,

I'm currently using genkit-ai/google-genai to generate/edit images.

The Context: I've successfully tested the implementation using the gemini-2.5-flash-image model. It works as expected.

The Problem: When I update the configuration to use the gemini-3-pro-image-preview model, the response returns an empty object {}.

const { media } = await ai.generate({
model: vertexAI.model('gemini-3-pro-image-preview'),
prompt: promptParts,
config: {
responseModalities: ['TEXT', 'IMAGE'],
imageConfig: {
aspectRatio: "2:3",
imageSize: "4K"
}
},
});

Has anyone faced this issue? I am using Vertex AI as it is the most scalable solution for my project. Any insights would be appreciated.
Was this page helpful?