A modern AI chat application that compares responses from 5 different AI models using the OpenRouter API. The application sends your input to 5 models simultaneously, then uses a judge model to select the best response.
- 🎯 Multi-Model Comparison: Send queries to 5 AI models simultaneously
- 🏆 Intelligent Judging: A judge model evaluates and selects the best response
- 📸 Image Support: Upload and analyze images
- 📄 File Support: Upload and process text files
- 🎨 Modern UI: Clean, minimalist interface inspired by OpenAI
- ⚙️ Customizable: Choose which 5 models to use and which model acts as judge
-
Install dependencies:
npm install
-
Start the backend server:
npm run server
The server will run on
http://localhost:3001 -
Start the frontend (in a new terminal):
npm run dev
The app will be available at
http://localhost:3000
- Select Models: Choose 5 AI models from the sidebar
- Choose Judge Model: Select which model will evaluate the responses
- Input Your Query:
- Type text in the input area
- Upload images using the image button
- Upload files using the file button
- Send: Press Enter or click the send button
- View Results: See the best response selected by the judge model, with an option to expand and view all 5 responses
-
Copy the example environment file:
cp .env.example .env
-
Edit
.envand add your OpenRouter API key:OPENROUTER_API_KEY=your_api_key_here -
Get your API key from: https://openrouter.ai/keys
The API key is now securely stored in the .env file (which is git-ignored). Make sure to never commit your .env file to version control.
- Frontend: React + Vite
- Backend: Node.js + Express
- API: OpenRouter API
- Styling: CSS (minimalist design)
├── src/
│ ├── components/
│ │ ├── ChatInterface.jsx
│ │ ├── InputArea.jsx
│ │ ├── MessageList.jsx
│ │ └── ModelSelector.jsx
│ ├── App.jsx
│ ├── App.css
│ ├── main.jsx
│ └── index.css
├── server.js
├── package.json
└── vite.config.js