Welcome to the Chimini AI Chat Application! This project is a Flutter-based AI chat application utilizing the Gemini AI API to generate and display responses in a chat-like interface. It mimics the functionality of popular AI chat systems like ChatGPT.
- AI-Powered Chat: Engage in conversations with an AI-powered by Gemini AI.
- Text-to-Image Generation: Generate images based on text prompts using AI.
- Dark Mode Support: Toggle between light and dark themes.
- Speech-to-Text: Convert spoken words into text to send messages.
- Text-to-Speech: Convert AI responses into spoken words.
- Flutter installed on your system.
- Access to the Gemini AI API.
-
Clone the Repository:
git clone https://github.com/your-repository-url.git cd chimini-ai-chat
-
Install Dependencies: Navigate to the project directory and run the following command to install dependencies:
flutter pub get
-
Configure Environment Variables:
- Create a
.env
file in the root directory. - Add your Gemini AI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the Application: Use the following command to start the application:
flutter run
Add the following dependencies to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
speech_to_text: ^7.0.0
http: ^1.2.2
flutter_dotenv: ^5.2.1
flutter_tts: ^4.2.1
animate_do: ^3.3.4
flutter_riverpod: ^2.6.1
google_generative_ai: ^0.4.6
-
Set Up API Key: Replace placeholders with your API key in the following files:
-
In
spenai_service.dart
:final model = GenerativeModel( model: "gemini-1.5-flash", apiKey: "your_api_key_here" // Your Gemini API KEY ); final prompt = controller.text.trim(); final content = [Content.text(prompt)];
-
In
Chat.dart
:https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$OpenApiKey
-
-
Chat with AI: Type your message in the text field and hit send to receive AI-generated responses.
-
Switch Themes: Use the theme toggle button in the app bar to switch between light and dark modes.
Include a section with screenshots of the application demonstrating its features:
- Light Mode Chat Screen
- Dark Mode Chat Screen
- Image Generation Result
For any queries or support, feel free to reach out:
- 📧 Email: sandeepkush880@gmail.com
- 📱 Mobile: +91 7024520740
Happy Coding! 🧑💻✨