openrouter-model-catalog
Explore and query the OpenRouter model catalog programmatically. Use when selecting models or checking availability. Trigger with phrases like 'openrouter models', 'list openrouter models', 'openrouter model catalog', 'available models openrouter'.
When & Why to Use This Skill
The OpenRouter Model Catalog skill enables developers to programmatically explore, query, and filter the extensive list of Large Language Models (LLMs) available through the OpenRouter API. By integrating this skill, users can automate model selection based on real-time capabilities, pricing, and availability, ensuring AI workflows remain optimized and cost-effective.
Use Cases
- Dynamic Model Selection: Automatically switch between different LLMs based on task complexity, cost constraints, or performance requirements by querying the latest model metadata.
- Capability-Based Filtering: Programmatically identify and select models that support specific technical features such as vision, extended context windows, or function calling.
- Availability & Status Monitoring: Implement robust error handling and fallback logic in AI applications by checking the real-time availability of specific model providers.
- Cost Optimization: Compare pricing across various providers in the OpenRouter catalog to route requests to the most economical model available at runtime.
| name | openrouter-model-catalog |
|---|---|
| description | | |
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
Openrouter Model Catalog
Overview
This skill teaches you how to query the OpenRouter models API, filter by capabilities, and select the right model for your use case.
Prerequisites
- OpenRouter API key configured
- Basic understanding of LLM model differences
Instructions
Follow these steps to implement this skill:
- Verify Prerequisites: Ensure all prerequisites listed above are met
- Review the Implementation: Study the code examples and patterns below
- Adapt to Your Environment: Modify configuration values for your setup
- Test the Integration: Run the verification steps to confirm functionality
- Monitor in Production: Set up appropriate logging and monitoring
Output
Successful execution produces:
- Working OpenRouter integration
- Verified API connectivity
- Example responses demonstrating functionality
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.