OpenRouter API Integration in SmartAdmin
Overview
- Handler:
openrouter-handler.js
- Model Tested:
nvidia/nemotron-nano-9b-v2:free
- Supported Models: Various models listed on OpenRouter Models
- Configuration: API key and model selection via settings (
settings-handler.js)
- Advantages:
- Access to a variety of open-source models
- Competitive pricing and free tier options
- Flexibility in model selection
Setting Up OpenRouter in SmartAdmin
- Obtain an API Key:
- Configure SmartAdmin:
- Open SmartAdmin settings.
- Navigate to the
AI Configuration section.
- Enter your OpenRouter API key.
- Choose your desired model from the available or manually type it.