Welcome to the AI Models Integration repository! This project provides seamless integration with various state-of-the-art AI models, offering a unified API for efficient interaction.
- Unified API:Interact with multiple AI models through a single, streamlined interface
- Extensibility:Easily add and integrate new AI models as they become available
- Scalability:Designed to handle multiple requests efficiently, ensuring optimal performance
- Anthropic Claude 3.5 Sonnet
- Google Gemini Flash 1.5
- DeepSeek R1
- OpenAI GPT-4o Mini
- Meta LLaMA 3.2 3B Instruct
- Mistral Small
- Node.js: JavaScript runtime environment.
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- OpenAI SDK: Integration with OpenAI's API for AI model interaction.
git clone https://github.com/JawherKl/ai-models-integration.git
cd ai-models-integration
npm install
- Create a .env file in the root directory.
- Add your configuration variables (e.g., API keys, model endpoints).
API_KEY=api_key_from_openrouter.ai
BASE_URL=https://openrouter.ai/api/v1
npm start
-The server will run on http://localhost:3000 by default. -Use the provided endpoints to interact with the integrated AI models.
curl -X POST http://localhost:3000/search \
-H "Content-Type: application/json" \
-d '{"model": "change_with_model_example", "query": "Latest advancements in renewable energy 2025"}'
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{"model": "change_with_model_example", "text": "Tesla announced new solar roof technology with 25% improved efficiency in Q4 2023."}'
Contributions are welcome! If you have suggestions, improvements, or bug fixes, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Special thanks to all contributors and the open-source community.
- Gratitude to the maintainers of the libraries used in this project.