{"repo":"tekacs/llm-pricing","free":true,"listed":false,"github":"https://github.com/tekacs/llm-pricing","clone":"git clone https://github.com/tekacs/llm-pricing.git","description":null,"language":"Rust","stars":33,"topics":["cli","cost-calculator","llm","openrouter","pricing","pricing-tool","tokens","ai-tools","anthropic","cost-estimation"],"license":"MIT","category":"ai-agents","readme_excerpt":"LLM Pricing A CLI tool to visualize OpenRouter model pricing and calculate actual request costs in a clean, tabular format. Features - 📊 Tabular display of model pricing per 1M tokens - 🧮 Cost calculation for actual requests with input/output tokens - 💾 Cache pricing support with TTL-based pricing (5min vs 1h) - 🔍 Filter models by name or provider (e.g., anthropic , sonnet ) - 📝 Verbose mode showing all model details - 🌐 Live data fetched from OpenRouter API (docs, api reference) Quick Start Calculate the cost of a request with 10,000 input tokens, 200 output tokens, and 9,500 cached tokens: Installation From Releases Download the latest binary for your platform from the releases page. From crates.io From Source Usage Calculate Request Costs Calculate the actual cost of a request with specific token counts: With cached tokens (uses 5-minute TTL by default): With 1-hour cache TTL (higher write costs): Understanding Cache vs No-Cache Pricing The -c flag indicates you're using caching rules, which affects pricing even when no tokens are cached: Without -c flag (no caching): With -c 0 flag (using caching, 0 cached tokens): When using caching ( -c flag), all new tokens are written to cache at cache write prices (1.25x base price for 5-minute TTL), which replaces the regular input cost. List Models Basic Usage Show all models in a table format: Filter by Provider Show only Anthropic models: Filter by Model Name Show models containing \"sonnet\": Verbose Output Get detailed info","default_branch":null,"files":null,"tree":[],"storefront":"/r/tekacs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tekacs/llm-pricing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}