openrouter

Route and compare model outputs across OpenRouter's unified API.

Updated Oct 23, 2025
One-click install
npx skills add https://github.com/rawwerks/raygent-skills --skill openrouter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openrouter
Source: https://github.com/rawwerks/raygent-skills/tree/main/openrouter
Command: npx skills add https://github.com/rawwerks/raygent-skills --skill openrouter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates the complexity of managing multiple LLM APIs, allowing you to access, compare, and optimize hundreds of models from various providers through a single, unified interface. It automates cost and performance tracking, saving you time and effort in model selection.

Core Features & Use Cases

  • Unified LLM Access: Call any model from providers like OpenAI, Anthropic, Google, and Meta using a single API key.
  • Cost & Performance Tracking: Automatically monitor response times, token usage, and costs for every API request, enabling data-driven optimization.
  • Model Comparison & Optimization: Easily benchmark different models for quality, speed, and cost to identify the best LLM for specific tasks or budget constraints.
  • Use Case: Quickly compare anthropic/claude-3.5-sonnet and openai/gpt-4o for a summarization task, identifying which is faster and more cost-effective for your needs.

Quick Start

Call the 'anthropic/claude-3.5-sonnet' model using the openrouter skill to explain quantum computing, and output the full response as JSON.

Frequently Asked Questions about openrouter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare LLM model performance and costs across different providers?

Model comparison across providers involves calling multiple LLMs through a unified API, measuring response times and token usage, then calculating per-token costs to identify the fastest and most cost-effective option for your task.

Can I access OpenAI, Anthropic, Google, and Meta models with a single API key?

Yes, OpenRouter provides unified API access to hundreds of models from multiple providers using one API key, eliminating the need to manage separate credentials and integrations for each LLM provider.

How do I track token usage and costs for every LLM API request?

Cost tracking automates monitoring of token consumption and pricing per API call, computing per-token expenses based on provider rates and returning usage reports alongside model responses for budget optimization.

What's the best way to benchmark models for speed and accuracy on a specific task?

Benchmarking involves routing identical prompts to different models, capturing structured JSON output and response times, then comparing results to identify which model delivers the best quality-to-latency-to-cost ratio for your use case.

Do I need to install additional tools to parse and analyze model comparison results?

The Skill uses jq for parsing structured JSON output from API responses, enabling command-line filtering and transformation of model results, token metrics, and cost data for further analysis.

How do I automate model selection based on cost and performance constraints?

Automation enforces API calls with structured outputs, response time measurement, and token usage reporting, allowing you to programmatically select models that meet speed or budget thresholds without manual evaluation.