An intelligent API interaction tool that simplifies API integration and testing through AI-powered request generation, secure credential management, and robust validation.
-
🤖 AI-Powered API Selection
- Intelligent API recommendation based on user goals
- Automatic request generation and parameter suggestions
- Smart error analysis and resolution
-
🔐 Secure Credential Management
- Local secure storage for API keys
- Platform-specific credential handling
- Automatic credential validation
-
✅ Advanced Request Validation
- Pre-request parameter validation
- URL and authentication verification
- Pattern-based input validation
- Comprehensive error handling
-
🔄 Robust Error Handling
- Intelligent error analysis
- Automatic retry with exponential backoff
- Timeout management
- Suggested fixes for common issues
# Clone the repository
git clone https://github.com/gjohnhazel/ai-api-utility.git
cd ai-api-utility
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your OpenAI API key and other configurations
# Run the main application
python api_generator.py
# Follow the interactive prompts to:
# 1. Describe your API integration goal
# 2. Select the recommended API
# 3. Provide or use stored credentials
# 4. Configure request parameters
# 5. Execute and manage API requests
ai-api-utility/
├── api_generator.py # Main application logic
├── credential_manager.py # Secure credential handling
├── validator.py # Request validation
├── .env # Environment configuration
└── requirements.txt # Project dependencies
- Core Infrastructure & Security
- Credential Management with secure local storage
- Basic error handling framework
- Retry logic with exponential backoff
- Timeout handling
- Input & Validation Improvements
- Add input validation framework
- Implement "help" command system
- Add default value handling
- Add request validation (pre-request parameter validation)
- URL validation enhancement
- Authentication verification
- History & Session Management
- Create history storage system
- Add request saving/loading
- Implement replay functionality
- Add rate limit tracking
- Implement token refresh handling
- Add basic pagination support
- Documentation & Preview
- Add documentation fetching system
- Implement quick reference system
- Add example integration
- Add curl command generation
- Flutter Application Development (my goal all along was to have a mobile app)
- Initial Flutter project setup
- Core functionality migration
- Cross-platform UI development
- Local storage integration
- Authentication system implementation
- Request builder interface
- Response viewer development
- Testing and optimization
- Enhanced Flutter Application
- Advanced request builder
- Multi-tab request management
- Request templates
- Bulk request handling
- Response analysis tools
- Response formatting
- JSON/XML viewers
- Schema validation
- Collection management
- Request organization
- Environment variables
- Team sharing capabilities
- AI-powered features
- Request suggestions
- Parameter optimization
- Error resolution
- Documentation generation
- Advanced testing capabilities
- Automated testing
- Performance monitoring
- Mock server integration
- Collaboration features
- Team workspaces
- Request sharing
- Comment system
- Version control
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the AI capabilities
- The open-source community for various dependencies and inspiration
- Claude & Cursor for writing the code 😀
- Pythonista for being able to prototype on my iPhone