OpenRouter AI Service Skill
Skill Verified ActiveOpenRouter unified AI API - Access 200+ LLMs through single interface with intelligent routing, streaming, cost optimization, and model fallbacks
To enable developers to easily integrate with and leverage the power of over 200 diverse AI models through a single, cost-effective, and intelligently routed API.
Features
- Unified access to 200+ LLMs via OpenRouter
- OpenAI-compatible API interface
- Intelligent model routing and fallbacks
- Real-time streaming responses
- Cost tracking and optimization strategies
- Function calling and vision model support
- Comprehensive error handling and retry logic
Use Cases
- Building multi-model AI applications
- Optimizing LLM inference costs
- Implementing model A/B testing
- Avoiding vendor lock-in with diverse model access
- Developing applications requiring real-time LLM responses
Non-Goals
- Managing individual LLM provider accounts or keys
- Providing a direct client for any single LLM
- Abstracting LLM-specific advanced features beyond OpenAI compatibility
- Performing local AI model execution
Workflow
- Obtain OpenRouter API key
- Install necessary SDKs (e.g., OpenAI SDK)
- Configure API key as an environment variable
- Implement API calls using provided code examples for chat, streaming, function calling, etc.
- Incorporate error handling, retries, and cost optimization strategies
- Handle responses, including streaming data
Practices
- API Integration
- LLM Operations
- Cost Management
- Error Handling
- Security Best Practices
Prerequisites
- OpenAI SDK (npm/pip)
- OpenRouter API Key
- Environment variable `OPENROUTER_API_KEY` configured
Installation
npx skills add bobmatnyc/claude-mpm-skillsRuns the Vercel skills CLI (skills.sh) via npx — needs Node.js locally and at least one installed skills-compatible agent (Claude Code, Cursor, Codex, …). Assumes the repo follows the agentskills.io format.
Quality Score
VerifiedSimilar Extensions
TradeMemory Protocol
100Domain knowledge for the Evolution Engine — LLM-powered autonomous strategy discovery from raw OHLCV data. Covers the generate-backtest-select-evolve loop, vectorized backtesting, out-of-sample validation, and strategy graduation. Use when discovering trading patterns, running backtests, evolving strategies, or reviewing evolution logs. Triggers on "evolve", "discover patterns", "backtest", "evolution", "strategy generation", "candidate strategy".
Image Transformation API
100Transform images with resize, crop, smart crop, upscale, remove background, and 20+ operations.
Trader Regime
100Detect current market regime using npx neural-trader — bull/bear/ranging/volatile classification with recommended strategy
Trading Memory
100Domain knowledge for AI trading memory — Outcome-Weighted Memory (OWM) architecture, 5 memory types, recall scoring, and behavioral analysis. Use when recording trades, recalling similar contexts, analyzing performance, or checking behavioral drift. Triggers on "record trade", "remember trade", "recall", "similar trades", "performance", "behavioral", "disposition", "affective state", "confidence".
Azure Ai Document Intelligence Dotnet
100Azure AI Document Intelligence SDK for .NET. Extract text, tables, and structured data from documents using prebuilt and custom models. Use for invoice processing, receipt extraction, ID document analysis, and custom document models. Triggers: "Document Intelligence", "DocumentIntelligenceClient", "form recognizer", "invoice extraction", "receipt OCR", "document analysis .NET".
Qwen Edit
100AI image editing prompting patterns for Qwen-Image-Edit. Use when editing photos while preserving identity, reframing cropped images, changing clothing or accessories, adjusting poses, applying style transfers, or character transformations. Provides prompt patterns, parameter tuning, and examples.