IBM AI Chat is a simple Flutter chat application that leverages IBM Granite-3.3-8b-instruct (via Replicate API) to provide real-time, streaming AI chat experiences. The app features Material Design, persistent chat history, and a user-friendly interface.
Download the application here
- Real-time AI chat with streaming/polling updates
- Material 2 UI with left/right chat bubble alignment
- Copy-to-clipboard for AI responses
- Persistent chat history using Hive
- Secure API key management with
.env
- Flutter — UI toolkit for building natively compiled applications
- Dart — Programming language for Flutter
- GetX — State management and dependency injection
- Hive — Lightweight & fast key-value database for local storage
- Replicate API — For accessing IBM Granite-3.3-8b-instruct AI model
- flutter_dotenv — For environment variable management
- flutter_svg — For SVG asset rendering
- Clone the repository:
git clone https://github.com/yourusername/ibm_ai_chat.git cd ibm_ai_chat - Install dependencies:
flutter pub get
- Set up environment variables:
- Copy
.env.exampleto.envand add your Replicate API key:REPLICATE_API_TOKEN=your_replicate_api_token
- Copy
- Run the app:
flutter run
lib/— Main Flutter source codesrc/controllers/— GetX controllers (chat logic)src/models/— Data models (chat message)src/screens/— UI screenssrc/services/— API and backend servicessrc/widgets/— Reusable widgets (chat box, text field)
assets/— SVG and other static assetsandroid/,ios/— Platform-specific code
This app uses the Replicate API to access IBM Granite-3.3-8b-instruct models for chat completion. All requests are securely handled and streamed for real-time UI updates.
MIT License. See LICENSE for details.