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.
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-basicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install openrouter-pricing-basics in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-pricing-basics ~/.gemini/antigravity-cli/skills/openrouter-pricing-basicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install openrouter-pricing-basics in Antigravity CLI
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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
