openrouter-integration

Automate OpenRouter integration with model catalogs, routing, costs, and assets.

14|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/bnishit/openrouter-skill --skill openrouter-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openrouter-integration
Source: https://github.com/bnishit/openrouter-skill/tree/main
Command: npx skills add https://github.com/bnishit/openrouter-skill --skill openrouter-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Consolidates the OpenRouter integration into a single reusable skill that codifies model discovery, routing with fallbacks, cost auditing, image generation, and asset workflows so teams avoid rebuilding boilerplate for every project.

Core Features & Use Cases

  • Model Discovery: catalog, filter, and select models from 300+ options.
  • Image Generation: generate icons, OG images, and social assets via chat completions.
  • Multimodal Chat & PDFs: chat across text, images, and PDFs with structured outputs.
  • Cost Tracking & Verification: exact per-generation cost and token accounting with post-hoc lookups.
  • Production Playbooks: fallback rules, tooling loops, logging, and observability baked in.
  • Starter Templates: Next.js and Express routes that are ready to copy.

Quick Start

Install the skill and instruct your agent to wire OpenRouter capabilities into your project.

Frequently Asked Questions about openrouter-integration

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

FAQPage Schema
How do I integrate OpenRouter for multimodal chat and image generation in a Next.js app?

OpenRouter integration is automated by copying ready-to-use Next.js or Express starter templates, routing multimodal chat completions and image generation through a single reusable skill with server-side asset handling.

What is the best way to track API costs and token usage across OpenRouter models?

Track OpenRouter API costs and token usage using built-in cost accounting features that provide exact per-generation cost data, token verification, and post-hoc lookups for accurate production cost auditing.

Can I filter and select from the OpenRouter model catalog with fallback routing in production?

Yes, you can catalog, filter, and select from 300+ OpenRouter models with production guardrails that enforce provider routing constraints and automatic fallback rules to ensure reliable model delivery.

Does OpenRouter support structured outputs and tooling loops for production applications?

OpenRouter supports structured outputs and tooling loops through encoded production playbooks that bake in logging, observability, and fallback rules for robust application workflows.

How do I securely handle server-side assets when generating images via OpenRouter chat completions?

Secure server-side asset handling for OpenRouter image generation is codified within the skill, safely managing generated icons, OG images, and social assets returned via chat completions.

Why should I use a consolidated OpenRouter skill instead of building custom integration boilerplate?

A consolidated OpenRouter skill eliminates rebuilding custom integration boilerplate by unifying model discovery, routing fallbacks, cost auditing, and asset workflows into a single reusable component for every project.