Gemini API and Flutter: Practical, AI-driven apps with Google AI tools

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • AI is changing fast, and knowing how to get started with AI can be overwhelming. We'll show you how to easily build AI-powered features into your apps across platforms from a single code base with the Gemini API and Flutter.
    Demo app source code → goo.gle/3Js13Vv
    Google AI Studio → goo.gle/3vYWxuI
    pub.dev package → goo.gle/3W5pGyQ
    Gemini API Quickstart for Dart and Flutter → goo.gle/3W1S0lP
    Speakers: Eric Windmill, Ander Dobo
    Watch more:
    Check out all the AI videos at Google I/O 2024 → goo.gle/io24-a...
    Check out all the Mobile videos at Google I/O 2024 → goo.gle/io24-m...
    Check out all the Flutter sessions from Google I/O → goo.gle/io24-f...
    Subscribe to Flutter! → goo.gle/FlutterYT
    #GoogleIO
    Products Mentioned: Flutter, Gemini API
    Event: Google I/O 2024

Комментарии • 38

  • @KhanhFlutter
    @KhanhFlutter 4 месяца назад +34

    Hi folks! Khanh here from the Flutter DevRel team @ Google. There's been some questions about storing the API key. As a general rule of thumb, don't store your API key client-side.The Google AI Dart SDK aka pkg:google_generative_ai is at this time to be used for prototyping with AI in your Flutter apps.
    If you're looking towards shipping your app to production, checkout the Vertex AI for Firebase Dart SDK (pkg:firebase_vertexai). It doesn't require an embedded API key and is currently in public preview, targeting stable in the Fall! The code is nearly identical, migration requires about 3 small code updates --> pub.dev/packages/firebase_vertexai You also get the Firebase perks like the ability to enable App Check too :)

  • @flutterdev
    @flutterdev  4 месяца назад +9

    Check out all the Flutter sessions from Google I/O → goo.gle/io24-flutter-yt

  • @phineas3016
    @phineas3016 4 месяца назад +25

    Google is making flutter great again 🎉

  • @JustenCastle
    @JustenCastle 4 месяца назад +13

    Yikes, dont get too excited guys!

  • @يحيىالابيض-ت1ط
    @يحيىالابيض-ت1ط 4 месяца назад +4

    That's cool and all, but don't you think that the pricing is a bit too expensive? Probably compared to OpenAI's API pricing?
    Edit: I don't know how, but the prices are much cheaper and the rate limits are much higher today! They make much more sense now.

  • @JohnnyFantaOrange
    @JohnnyFantaOrange 4 месяца назад +1

    Thanks for the upload,
    Getting real intense vibes from these guys!

  • @tonykempson4331
    @tonykempson4331 3 месяца назад +2

    Is the Gemini Pro version still free and the QPM still 60?

  • @Flutterdevfintech
    @Flutterdevfintech 2 месяца назад +1

    How do I convert the response.text which is made of json like this ‘’’ json {
    “latitude”: “Lagos”
    } ‘’’ to normal json in Flutter though I have been able to convert it but i still can access the value lagos

  • @benmukanirwa
    @benmukanirwa 4 месяца назад +1

    Incredible. Thanks for sharing!

  • @IlyaBurov-r6u
    @IlyaBurov-r6u Месяц назад +1

    انتِ ذكيه جدا ماشاءالله اتمنى لك التوفيق 🐈

  • @lookdadnomilk
    @lookdadnomilk 4 месяца назад

    built this a few years back but abondened it cause it had to scrap sites for the recipes. time to revisit it

  • @shafqatkhan8766
    @shafqatkhan8766 2 месяца назад

    How to do that user can upload pdf file and gemini gives reponse on the basis of text in pdf with user prompt about pdf?

  • @erickiarie12
    @erickiarie12 3 месяца назад +1

    Вообще классный обменник, мне удобно переводить usdt, спасибо Министр:)

  • @alexeygladyshev4718
    @alexeygladyshev4718 4 месяца назад +2

    Can someone please explain how storing API keys client-side can actually be secure?

    • @daviddprtma
      @daviddprtma 4 месяца назад +2

      don't expose your API to the client-side because it can be injected by hackers. I suggest you to store it into a serverside likeas node.js, php, or any backend so it can be secure

    • @alexeygladyshev4718
      @alexeygladyshev4718 4 месяца назад +1

      @@daviddprtma thanks, I agree, I always store keys on the backend. But I'm confused why this video promotes devs to do it client-side

    • @KhanhFlutter
      @KhanhFlutter 4 месяца назад +4

      Hey y'all! Great question! You shouldn't store the API key client side. If you're shipping your AI-powered app, check out the Vertex AI for Firebase Dart SDK (pkg:firebase_vertexai) which doesn't have an require and embedded API key. It's currently in public preview, targeting stable in the Fall. The code is nearly identical, migration requires about 3 small code updates --> pub.dev/packages/firebase_vertexai

    • @brujala1775
      @brujala1775 4 месяца назад +1

      @@KhanhFlutter "Thank you so much for this answer. I really appreciate it and I truly needed it right now. Your help means a lot to me!"

  • @ehsannazari1456
    @ehsannazari1456 3 месяца назад +1

    thank you so much. tnx to google as well. welldone.

  • @GabrielMadichie
    @GabrielMadichie 2 месяца назад +2

    This is good.

  • @dexterfury538
    @dexterfury538 4 месяца назад +1

    Love this awesome stuff, Thank you Flutter team.

  • @hyungtaecf
    @hyungtaecf 4 месяца назад +1

    Still not available in the EU :(

    • @davidmigloz
      @davidmigloz 4 месяца назад

      It's already available in the EU, but without free tier

  • @AriannaValentini-n3k
    @AriannaValentini-n3k 3 месяца назад +1

    I've been wanting to learn how to trade cryptocurrency for a long time and your video is the perfect guide for beginners. Thank you for such useful content.

  • @AlloMission
    @AlloMission 4 месяца назад +9

    This approach is not secure, as even a beginner hacker can find your API key. It is essential to discuss security measures and demonstrate how to handle this on the server side using Node.js or another backend technology.

    • @KhanhFlutter
      @KhanhFlutter 4 месяца назад +1

      We just announced the Vertex AI for Firebase Dart SDK (pkg:firebase_vertexai) which doesn't require an embedded API key! It's currently in public preview, targeting stable in the Fall. Migration requires about 3 small code updates --> pub.dev/packages/firebase_vertexai

    • @AlloMission
      @AlloMission 4 месяца назад +2

      @@KhanhFlutter First, this demo is incorrect due to security concerns.
      Second, given the uncertainty about Flutter's future, do you really expect us to invest more time and effort in this preview approach?
      Finally, Google please wake up

    • @jurassa9588
      @jurassa9588 4 месяца назад

      @@AlloMission Uncertainty in what sense?

  • @GrupoDirigente64ECCIMC
    @GrupoDirigente64ECCIMC 2 месяца назад

    Вот это добрейшее утро;)

  • @ТимурНаимов
    @ТимурНаимов 2 месяца назад

    А как прокрутить её с телефона? Вы показали с компьютера

  • @rhmagalhaes
    @rhmagalhaes 4 месяца назад +37

    This video was made by AI 🤣

    • @rabarhusen9170
      @rabarhusen9170 4 месяца назад +1

      I didn't notice that until I see your comment 😂

    • @panyamred
      @panyamred 4 месяца назад +1

      I felt the same 😂

    • @reynoldclare7981
      @reynoldclare7981 4 месяца назад

      Damnn literally felt it after seeing your comment 😂

    • @AnderDoboGoogle
      @AnderDoboGoogle 4 месяца назад +2

      As an "AI-created presenter", I approve this comment🤣🤣🤣

    • @rabarhusen9170
      @rabarhusen9170 4 месяца назад

      @@AnderDoboGoogle 😂😂

  • @superjfbm
    @superjfbm 3 месяца назад

    ..it doesnt feel.... real.