Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

openrouter-pricing-basics

Skill by jeremylongshore

Explains OpenRouter pricing and helps estimate, track and reduce spend on model requests. Aimed at developers who budget for or compare model costs on OpenRouter.

  • Score 76
  • 2.9k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install openrouter-pricing-basics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-pricing-basics ~/.claude/skills/openrouter-pricing-basics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-pricing-basics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The openrouter-pricing-basics skill explains how OpenRouter bills per token, with separate prompt and completion rates drawn from prepaid credits. It covers querying per-token rates from the models API, estimating request cost with a Python helper, and checking the exact charge through the generation endpoint. It also shows how to check the credit balance and use the :floor and :free variants to lower costs.

The skill is for developers and teams who need to budget, compare model costs, or track spend on OpenRouter. It lists representative cost tiers from free to premium and notes special pricing for reasoning tokens, image inputs, per-request fees and BYOK. Credits carry a 5.5% processing fee with a $0.80 minimum.

Written from the project's SKILL.md and checked against it.

What it can do

  • Query model pricingGets per-token rates from the models API and converts them to per-million figures.
  • Estimate request costUses estimate_cost() to calculate a dollar estimate from expected token counts.
  • Track actual costFetches the exact cost and token counts for a request from the generation endpoint.
  • Check credit balanceReads credits used, limit, remaining and free tier status from the auth/key endpoint.
  • Save money with variantsExplains the :floor variant for the cheapest provider and the :free variant.
  • Compare cost tiersLists representative models from free to premium with example per-million rates.

What you need

  • OpenRouter API key exported as OPENROUTER_API_KEY
  • curl and jq
  • Python 3.8+ with the OpenAI SDK and requests package
  • Prepaid credits for paid models

Try asking

  • How much would 1000 prompt and 500 completion tokens cost on Claude 3.5 Sonnet?
  • Check my OpenRouter credit balance and how much is remaining.
  • Show the exact cost of my last OpenRouter request using its generation ID.

Good to know

  • Cost tiers are described as representative, not current prices.
  • Free model use is capped at 50 requests per day for free users and 1000 per day with $10+ credits.
  • Real completions need credits or a :free model.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/openrouter-pricing-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrepBash(python3:*)Bash(curl:*)Bash(jq:*)

Alternatives to openrouter-pricing-basics

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

openrouter-pricing-basics: common questions

How does OpenRouter charge for requests?

Each request deducts prompt tokens times the prompt rate plus completion tokens times the completion rate from prepaid credits.

What is the OpenRouter credit fee?

Credits carry a 5.5% processing fee with a $0.80 minimum, according to the source.

How can I get the exact cost of one request?

Query the generation endpoint with the request ID to get total_cost and the prompt and completion token counts.

How do I install openrouter-pricing-basics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is openrouter-pricing-basics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is openrouter-pricing-basics safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to openrouter-pricing-basics?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

openrouter-pricing-basics Install

Add to stack

Loading.