Gemini Integration Fails Because Gemini model is out date

Database & APIs

The flutterflow gemini integration is out date. Because the model gemini 1.5-pro is no longer available.

The app in production or even in test mode return the error "gemini-1-5-flash-001-tuning-is-not-found-for-api-version-v1beta"

The issue is in the code gemini.dart (GenerativeModel(model: 'gemini-1.5-pro', apiKey: _kGeminiApiKey);)

Gemini-1.5-pro discontinuation date from Google: September 24, 2025

Does anyone know a quick workaround for changing this part of the code? If I download and edit it, I won’t be able to re-import it into FlutterFlow to publish — I’d have to handle the entire process manually. Another option would be to build an API, but with text-from-image it’s more complicated since I’d also need to convert the image format

What have you tried so far?

Nothing

Did you check FlutterFlow's Documentation for this topic?
No
3
1 reply