I'm using Genkit with Gemini 2.0 Flash

I'm using Genkit with Gemini 2.0 Flash to analyze videos. I’m passing a publicly accessible Firebase Storage signed URL (fileUri) in my Dotprompt like this:

{{media url=videoUrl}}


It works fine for small files (<20MB), but fails for larger ones. Does Genkit automatically convert fileUri to base64 before sending it? Or should Gemini be able to fetch it directly?

The URL is valid, publicly accessible, and works in a browser. Anyone else run into this?
Was this page helpful?