A Python Flask web application that displays information about various AI models available through different providers. The application scrapes model data from OpenRouter.ai and presents it in a user-friendly interface with search functionality and detailed comparisons.
- Browse a comprehensive list of AI models
- Search models by name or provider
- View detailed model information including:
- Context length
- Maximum output tokens
- Input/Output pricing
- Provider-specific details
- Compare different providers for each model
- Direct links to provider websites
- Responsive design for mobile and desktop
- Python 3.x
- Flask (Web Framework)
- SQLite (Database)
- BeautifulSoup4 (Web Scraping)
- HTML/CSS (Frontend)
- JavaScript (Search functionality)
- Clone the repository:
git clone https://github.com/yourusername/ai-model-explorer.git
cd ai-model-explorer
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the scraper to populate the database:
python scraper.py
- Start the Flask server:
python app.py
- Open your browser and navigate to:
http://localhost:5000
ai-model-explorer/
├── app.py # Flask application
├── scraper.py # Model data scraper
├── requirements.txt # Python dependencies
├── static/ # Static files
│ └── css/
│ └── styles.css
├── templates/ # HTML templates
│ ├── base.html
│ ├── index.html
│ ├── models.html
│ └── model_detail.html
└── README.md
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to your branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.