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

  Рет қаралды 50,034

Flutter

Flutter

Күн бұрын

Пікірлер: 39
@KhanhFlutter
@KhanhFlutter 7 ай бұрын
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 7 ай бұрын
Check out all the Flutter sessions from Google I/O → goo.gle/io24-flutter-yt
@phineas3016
@phineas3016 7 ай бұрын
Google is making flutter great again 🎉
@tonykempson4331
@tonykempson4331 6 ай бұрын
Is the Gemini Pro version still free and the QPM still 60?
@Flutterdevfintech
@Flutterdevfintech 5 ай бұрын
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
@JohnnyFantaOrange
@JohnnyFantaOrange 7 ай бұрын
Thanks for the upload, Getting real intense vibes from these guys!
@AnderDoboGoogle
@AnderDoboGoogle 7 ай бұрын
🤣
@alexeygladyshev4718
@alexeygladyshev4718 7 ай бұрын
Can someone please explain how storing API keys client-side can actually be secure?
@daviddprtma
@daviddprtma 7 ай бұрын
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 7 ай бұрын
@@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 7 ай бұрын
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 7 ай бұрын
@@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!"
@JustenCastle
@JustenCastle 7 ай бұрын
Yikes, dont get too excited guys!
@يحيىالابيض-ت1ط
@يحيىالابيض-ت1ط 7 ай бұрын
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.
@dexterfury538
@dexterfury538 7 ай бұрын
Love this awesome stuff, Thank you Flutter team.
@GabrielMadichie
@GabrielMadichie 5 ай бұрын
This is good.
@shafqatkhan8766
@shafqatkhan8766 5 ай бұрын
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?
@Gupatik
@Gupatik Ай бұрын
look if the pdf input is available in gemini, otherwise look at gpt 4 it has that feature. this might be too late to answer tho, but it is for future ppl who has the same problem as yours
@IlyaBurov-r6u
@IlyaBurov-r6u 4 ай бұрын
انتِ ذكيه جدا ماشاءالله اتمنى لك التوفيق 🐈
@ehsannazari1456
@ehsannazari1456 6 ай бұрын
thank you so much. tnx to google as well. welldone.
@lookdadnomilk
@lookdadnomilk 7 ай бұрын
built this a few years back but abondened it cause it had to scrap sites for the recipes. time to revisit it
@hyungtaecf
@hyungtaecf 7 ай бұрын
Still not available in the EU :(
@davidmigloz
@davidmigloz 7 ай бұрын
It's already available in the EU, but without free tier
@erickiarie12
@erickiarie12 5 ай бұрын
Вообще классный обменник, мне удобно переводить usdt, спасибо Министр:)
@AlloMission
@AlloMission 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
@@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
@GrupoDirigente64ECCIMC
@GrupoDirigente64ECCIMC 5 ай бұрын
Вот это добрейшее утро;)
@ТимурНаимов
@ТимурНаимов 5 ай бұрын
А как прокрутить её с телефона? Вы показали с компьютера
@AriannaValentini-n3k
@AriannaValentini-n3k 6 ай бұрын
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.
@rhmagalhaes
@rhmagalhaes 7 ай бұрын
This video was made by AI 🤣
@rabarhusen01
@rabarhusen01 7 ай бұрын
I didn't notice that until I see your comment 😂
@panyamred
@panyamred 7 ай бұрын
I felt the same 😂
@reynoldclare7981
@reynoldclare7981 7 ай бұрын
Damnn literally felt it after seeing your comment 😂
@AnderDoboGoogle
@AnderDoboGoogle 7 ай бұрын
As an "AI-created presenter", I approve this comment🤣🤣🤣
@rabarhusen01
@rabarhusen01 7 ай бұрын
@@AnderDoboGoogle 😂😂
@Dan1ell
@Dan1ell Ай бұрын
Ander is not real.
@superjfbm
@superjfbm 6 ай бұрын
..it doesnt feel.... real.
How to build next-gen UIs in Flutter
46:59
Flutter
Рет қаралды 62 М.
The Gemini API: From prototype to production
44:36
Google for Developers
Рет қаралды 15 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Build generative AI agents with Vertex AI Agent Builder and Flutter
40:04
Google Cloud Tech
Рет қаралды 23 М.
How to build Adaptive UI with Flutter
34:06
Flutter
Рет қаралды 374 М.
AI Flutter Code Generator with Gemini API | Build with Google AI
11:46
Google for Developers
Рет қаралды 64 М.
Drag and drop - Flutter Build Show
18:37
Flutter
Рет қаралды 54 М.
10 weird algorithms
9:06
Fireship
Рет қаралды 1,3 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,1 МЛН