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
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 :)
Check out all the Flutter sessions from Google I/O → goo.gle/io24-flutter-yt
Google is making flutter great again 🎉
Yikes, dont get too excited guys!
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.
Thanks for the upload,
Getting real intense vibes from these guys!
🤣
Is the Gemini Pro version still free and the QPM still 60?
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
Incredible. Thanks for sharing!
انتِ ذكيه جدا ماشاءالله اتمنى لك التوفيق 🐈
built this a few years back but abondened it cause it had to scrap sites for the recipes. time to revisit it
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?
Вообще классный обменник, мне удобно переводить usdt, спасибо Министр:)
Can someone please explain how storing API keys client-side can actually be secure?
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
@@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
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
@@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!"
thank you so much. tnx to google as well. welldone.
This is good.
Love this awesome stuff, Thank you Flutter team.
Still not available in the EU :(
It's already available in the EU, but without free tier
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.
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.
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
@@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
@@AlloMission Uncertainty in what sense?
Вот это добрейшее утро;)
А как прокрутить её с телефона? Вы показали с компьютера
This video was made by AI 🤣
I didn't notice that until I see your comment 😂
I felt the same 😂
Damnn literally felt it after seeing your comment 😂
As an "AI-created presenter", I approve this comment🤣🤣🤣
@@AnderDoboGoogle 😂😂
..it doesnt feel.... real.