# How do you use Gemini-2.0 Flash exp in Flutter?

**URL:** <https://discuss.ai.google.dev/t/how-do-you-use-gemini-2-0-flash-exp-in-flutter/60594>\
**Category:** Gemini API\
**Tags:** flutter, gemini-20\
**Created:** [January 14, 2025, 4:53am UTC](https://discuss.ai.google.dev/t/how-do-you-use-gemini-2-0-flash-exp-in-flutter/60594 "2025-01-14T04:53:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brickster](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/brickster/32/37766_2.png) [@brickster](https://discuss.ai.google.dev/u/brickster)\
**Post date:** [January 14, 2025, 4:53am UTC](https://discuss.ai.google.dev/t/how-do-you-use-gemini-2-0-flash-exp-in-flutter/60594/1 "2025-01-14T04:53:54Z")

</div>

**I see this error on querying the chat**

[ERROR:flutter/runtime/dart\_vm\_initializer.cc(41)] Unhandled Exception: Exception: Failed to get response: models/gemini-2.0-flash-exp is not found for API version v1, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.

Is there an update for the flutter\_gemini package supporting the model that I don’t know about?

---

<div class="post-metadata">

**Author:** ![Selam\_Waktola](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/selam_waktola/32/2295_2.png) [@Selam\_Waktola](https://discuss.ai.google.dev/u/Selam_Waktola)\
**Post date:** [May 23, 2025, 10:23pm UTC](https://discuss.ai.google.dev/t/how-do-you-use-gemini-2-0-flash-exp-in-flutter/60594/3 "2025-05-23T22:23:50Z")

</div>

For Flutter development with Gemini, [**use the Google AI Dart SDK or Firebase AI Logic SDKs**](https://developers.google.com/learn/pathways/solution-ai-gemini-getting-started-dart-flutter#:~:text=Gemini%20API%20and-,Flutter,-keyboard_arrow_up). While prototyping, you can call the Gemini API directly, but for production, use Firebase Vertex AI or server-side calls to protect your API key.

This [Flutter sample app](https://github.com/google/generative-ai-dart/tree/main/samples/flutter_app) showcases how to build a multi-platform application featuring multi-turn conversations (chat) and photo reasoning using multimodal inputs.
