A Flutter application for interacting with multiple AI APIs including Gemini and Hugging Face.
- Flutter SDK installed and configured
- API keys for Gemini and/or Hugging Face
-
Clone or extract the project
cd ia_app -
Configure API Keys
- Edit
lib/secrets.dartand add your API keys:geminiApiKey: Your Google Gemini API keyhuggingFaceToken: Your Hugging Face API token
- Edit
-
Install dependencies
flutter pub get
-
Run the app
flutter run
- API keys are stored in
lib/secrets.dart - Security Note: Never commit
lib/secrets.dartto version control - For production, use environment variables or secure key management services
- AI Interactions: Chat with multiple AI models
- REST API Integration: Direct API calls with custom parameters
- WebSocket Support: Real-time communication for applicable APIs
When running on web platform, ensure your backend or CORS-enabled APIs are properly configured to accept requests from this application's origin.
- Keep secrets private: Never share or commit API keys
- Use environment variables: In production, inject keys via environment variables
- Rotate keys regularly: If accidentally exposed, regenerate your API keys
- Monitor usage: Track API usage to detect unauthorized access
- Rate limiting: Implement rate limiting on your backend if exposed to web
For issues or questions, please refer to the Flutter documentation and the respective AI service documentation.