google_gemini
0.1.2, released 3 years ago by an unverified publisher
Google Gemini SDK for Flutter and Dart to integrate Gemini AI models.
What it does
Provides a bridge between a Flutter or Dart application and Google's Gemini AI. It allows generating text from text-only inputs or text-and-image inputs, with support for generation configuration and safety settings.
AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to integrate Google Gemini AI into your Flutter or Dart app.
- You need to perform natural language processing tasks like text completion or summarization.
- You need to process text and image inputs using Gemini models.
Skip it when
- You need built-in multi-turn chat support immediately, as it is marked as in progress in the README.
- You require response streaming, which is currently in progress.
Strengths
- Easy initialization with an API key.
- Supports model configuration parameters like temperature and max output tokens.
- Supports safety settings and threshold adjustments.
Weaknesses
- Some features like multi-turn conversations and streaming are marked as in progress.
- Relies on a third-party API key and external service availability.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires obtaining a Gemini API key from ai.google.dev.
final gemini = GoogleGemini(apiKey: "--- Your Gemini Api Key --- ");
gemini.generateFromText("Tell me a story").then((value) => print(value.text)).catchError((e) => print(e));Alternatives
Packages that do the same job and could replace google_gemini.
- firebase_ai
Official Firebase client for Google generative AI models.
86Compare - llamadart
For running local LLMs instead of relying on a cloud-hosted Gemini API.
93Compare