Gemini-2.5-flash support for Google Gemini blocks

Hello,

I noticed that the Google Gemini block doesn’t provide an option for gemini-2.5-flash. I attempted to change it directly in the Advanced Editor, but encountered the following error:

Error in property: model_version. String should match pattern '(^\$steps\.[A-Za-z_\-0-9]+\.[A-Za-z_*0-9\-]+$)|(^\$inputs.[A-Za-z_0-9\-]+$)'

Is there a way to use this model directly within the Gemini block in my workflow, or is the Custom Code Block the only option?

Additionally, the currently available gemini-2.5-pro-preview-05-06 is deprecated and no longer functional, as noted in the Gemini 2.5 Pro Preview 05-06 deprecation notice.

Hi @Dikshant_Shah!
Thank you for bringing this forward! At this moment, the Gemini block does not support implementing gemini 2.5 flash. I will forward this feedback to our team.

At this moment, the Custom Code Block is your best option to implement gemini 2.5 flash.

Are there any other models you’ve explored implementing?

1 Like

Got it. Thank you. At the moment most models I need are on Roboflow.

Hi @Dikshant_Shah ,

I opened a pull request updating the Gemini model versions in inference: Update Gemini available versions and add aliases to previous models by brunopicinin · Pull Request #1495 · roboflow/inference · GitHub

Once it is merged and a new version of inference is released, it should be available to use in workflows.

Thank you for the feedback!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.