[Music] looking to add some generative AI features to your flutter app check out Firebase vertex AI whether you're using AI to guide user interactions summarize large amounts of information or some other flavor of content Creation The Gemini API got you covered start by making sure that you have a Firebase project configured with the correct apis and connect it to your app then add the Firebase core and Fire Bas vertex AI packages initialize the Firebase app initialize the generative model and make sure to provide the name of the Gemini model that you want to use optionally you can provide a generation config to adjust the model's responses by setting parameters like response MIM type and temperature Json format makes the response easier to parse programmatically and temperature affects the randomness and creativity of the responses quick aside here if you're familiar with the Google generative AI package you'll notice that this code looks very familiar the difference is that Firebase vertex AI does not take an embedded API key because Firebase handles it for you now construct a prompt to tell Gemini what you want to do like write a story about a magic backpack or tell me what's in this image The Prompt can include a variety of data in the form of text images video audio and PDFs keep in mind for large files you want to use Firebase storage to store the files and then include the files cloud storage URL in your request once your prompt has been constructed call the generate content method and wait for a response generate content Waits until the full output is available before sending a response but you can also stream the output as it becomes available with generate content stream finally to verify that all API calls are coming from your app and prevent abuse from unauthorized clients you can enable Firebase app check and that's how you can add generative AI to your flutter app for more info on Firebase vertex Ai and all the other packages head to pub.