OpenRouter AI Service Skill
技能 已验证 活跃OpenRouter 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.
功能
- 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
使用场景
- 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
非目标
- 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
工作流
- 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
实践
- API Integration
- LLM Operations
- Cost Management
- Error Handling
- Security Best Practices
先决条件
- OpenAI SDK (npm/pip)
- OpenRouter API Key
- Environment variable `OPENROUTER_API_KEY` configured
安装
npx skills add bobmatnyc/claude-mpm-skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
已验证类似扩展
TradeMemory Protocol
100Evolution Engine 的领域知识 — 支持 LLM 从原始 OHLCV 数据中自主发现策略。涵盖生成-回测-选择-进化循环、向量化回测、样本外验证和策略梯度。在发现交易模式、运行回测、进化策略或审查进化日志时使用。由“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
100AI交易记忆的领域知识 — 结果加权记忆 (OWM) 架构、5种记忆类型、回忆评分和行为分析。用于记录交易、回忆相似的上下文、分析性能或检查行为漂移。在 "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图像编辑的Qwen-Image-Edit提示模式。用于在编辑照片时保留身份、重新构图裁剪的图像、更换服装或配饰、调整姿势、应用风格转换或角色转换。提供提示模式、参数调整和示例。