From llm-observability
Estimates LLM call costs and projects monthly spending with a runnable Python calculator. Use it to compare model pricing before shipping.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-observability:estimate-llm-costThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Cost surprises come from not doing the arithmetic. This skill ships a small, dependency-free calculator so you can price a call, project a monthly bill, and compare models with actual numbers.
Cost surprises come from not doing the arithmetic. This skill ships a small, dependency-free calculator so you can price a call, project a monthly bill, and compare models with actual numbers.
scripts/llm_cost.py is pure Python, no install needed:
from llm_cost import estimate_cost, project_monthly
estimate_cost(1500, 300, model="gpt-4o") # one call, USD
project_monthly(1500, 300, calls_per_day=5000, model="gpt-4o") # monthly projection
estimate_cost(2000, 200, model="gpt-4o", cached_input_tokens=1800) # with prompt caching
Run it directly to see a worked example: python scripts/llm_cost.py.
Prices in the PRICES table are approximate and change often, so pass input_price/output_price explicitly when you need exact figures, or edit the table. The arithmetic (not the price table) is what the tests pin down.
instrument-llm-observability).compare-llm-models).reduce-llm-cost).Run the tests: pytest skills/estimate-llm-cost/tests/. They check the math is exact for explicit prices, that model lookups match the table, that prompt-cache discounting is correct, and that monthly projection scales linearly.
npx claudepluginhub contextjet-ai/awesome-llm-observability --plugin llm-observabilityCalculates and optimizes OpenRouter API costs by querying model pricing, estimating spend, and tracking actual charges. Use for budgeting and cost management.
Compares AI model costs for a described task, mapping task shape to cheapest adequate seat and showing price spread across providers.
Forces auditable cost estimates in great_cto plans using a 4-line template for LLM, infra, human time, and human-equivalent comparison.