AI API Test Hub is a comprehensive application designed for testing and verifying connectivity with various AI model APIs. It provides a simple interface to test API connections, execute manual testing, and access API code snippets for integration.
- Universal AI API Testing: Test connections to multiple AI providers including OpenAI, Google, Anthropic, and DeepSeek
- Model Discovery: Browse through models organized by company with detailed information
- Connection Verification: Quickly verify API key validity and connectivity
- Manual Testing: Send custom prompts to test model responses
- Code Snippets: Access ready-to-use code examples for API integration in multiple languages
- Responsive Design: Clean, modern UI that works across devices
The project is organized into two main directories:
frontend/: React-based user interfacebackend/: Node.js/Express API server
- React
- React Router
- Syntax Highlighter
- Modern CSS (with variables and flexbox/grid)
- Node.js
- Express
- Axios (for API requests)
- Node.js (v14+)
- npm or yarn
-
Navigate to the backend directory:
cd ai-api-tester/backend -
Install dependencies:
npm install -
Create a
.envfile with your configuration:PORT=5000 NODE_ENV=development -
Start the server:
npm start
-
Navigate to the frontend directory:
cd ai-api-tester/frontend -
Install dependencies:
npm install -
Create a
.envfile:REACT_APP_API_URL=http://localhost:5000/api -
Start the development server:
npm start
- Browse available AI companies and models
- Search for specific models by name
- View all models available from a specific company
- Models are grouped by category (chat, image, etc.)
- View detailed information about a specific model
- Test API connection with your API key
- Try manual testing with custom prompts
- Access code snippets for integration
GET /api/companies: Get all companies with basic model infoGET /api/companies/:companyId: Get detailed info for a specific companyGET /api/models: Get all models (simplified info)GET /api/models/:modelId: Get detailed info for a specific model
POST /api/test/connection: Test API connection- Request body:
{ modelId, apiKey }
- Request body:
POST /api/test/manual: Send a manual test request- Request body:
{ modelId, apiKey, prompt }
- Request body:
The system is designed to be easily extensible. To add new models:
- Update the
models.jsonfile in thebackend/datadirectory - Add appropriate connector logic to
apiConnectors.jsif it's a new provider
- API keys are never stored on the server
- API keys are only used for the duration of the request
- All communication with AI provider APIs happens through the backend to avoid exposing API keys to the client
- Add authentication to save favorite models
- Implement history of test results
- Add support for more AI providers
- Create a comparison tool for different models
- Add batch testing capabilities
This project is licensed under the MIT License - see the LICENSE file for details.