Search packages, repositories and app categories

Package detailsv13.1.0

googleai_dart

Unofficial Dart client for Google AI Gemini and Vertex AI Gemini REST APIs plus Live API WebSocket sessions.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
17.4K
Likes
31
Pub points
160

Install package

flutter pub add googleai_dart

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The googleai_dart package is an unofficial Dart client that provides access to Google AI Gemini and Vertex AI REST APIs, along with support for real-time WebSocket sessions. It enables developers to integrate generative AI capabilities into Flutter applications across multiple platforms. The package simplifies API interactions with clean, structured methods for sending prompts, handling responses, and managing streaming data via WebSockets. Designed for ease of use, it supports both synchronous and asynchronous workflows, making it ideal for chat interfaces, content generation, and AI-powered features in mobile and web apps.

Use cases

  • Integrating Gemini AI into Flutter apps
  • Building real-time chat interfaces
  • Generating text and code with AI
  • Implementing AI-driven content suggestions
  • Creating multilingual translation tools
  • Enabling voice-to-text AI processing

Key features

  • Support for Gemini and Vertex AI REST APIs
  • Real-time WebSocket streaming
  • Cross-platform compatibility
  • Simple API interface
  • Async and sync request handling
  • Built-in error and response parsing

Suitable for

  • Flutter developers using AI features
  • Apps requiring real-time AI responses
  • Projects integrating Google's generative AI
  • Developers building chatbots or assistants
  • Teams working on multilingual or content-heavy apps

Considerations

  • Unofficial package – not endorsed by Google
  • Requires valid API keys
  • Limited documentation compared to official SDKs
  • May need updates for new API versions
  • WebSocket connection management required

Categories

Dependencies

Dependency list 5 items

Projects using this package

No data available yet.