openrouter-pricing-basics
Installation
SKILL.md
OpenRouter Pricing Basics
Overview
OpenRouter charges per token with separate rates for prompt (input) and completion (output) tokens. Prices are listed per token in the models API (multiply by 1M for per-million rates). Credits are prepaid with a 5.5% processing fee ($0.80 minimum). Free models are available for testing and low-volume use.
Prerequisites
- An OpenRouter API key (
sk-or-v1-...) exported asOPENROUTER_API_KEY— see theopenrouter-install-authskill for setup curlandjqfor the model-pricing and credit-balance queries- Python 3.8+ with the OpenAI SDK plus the
requestspackage for the cost-calculation and generation-endpoint snippets - Prepaid credits for paid models — the public models/pricing endpoint needs no auth, but real completions require credits or a
:freemodel