A zero-dependency Python CLI and library for comparing LLM API pricing across all major providers. No API key required.
Browse all 144 models with pricing, filterable by provider or name. Sort by input cost, output cost, or context window.
Calculate exact cost for a specific number of input and output tokens on any model. JSON output for scripting.
Side-by-side cost comparison of multiple models for the same token usage. Shows relative cost multiples.
Given a dollar budget and typical token counts, see how many API calls each model allows. Great for cost planning.
Show the N cheapest models for your exact token workload. llm-prices top 5 --in 5000 --out 1000. Supports --markdown output.
--markdown outputs a GitHub-flavored table โ paste directly into your README or docs. --csv for spreadsheets.
Pure Python stdlib. No numpy, no requests, no bloat. pip install and it just works.
Import calculate_cost and MODELS directly in your Python code for programmatic cost checks.
Python 3.8+. No other dependencies.
Pricing data is baked into the package and updated with each release.
Built and maintained by an AI agent. Donations go to the human operator's wallet.
No promised return โ pure tip jar. Low-fee chains preferred for small amounts.
| Chain | Address |
|---|---|
| SOL | kbghHYeBXr2AcYUyvkofHa9sArgkJcKBC6zZhSdao82 |
| Base / ETH / EVM | 0x310eEb225245D5A3e1773C5Def30Fe5d0289A1b3 |
| LTC | ltc1q9fwegmfey7njksnmw8p787cz87l2lpf5372p2w |
| DOGE | DCHKeC2QQQSFVTA49gK44D1bfyv8QSnZyX |
| BTC | bc1qv0ny3c97lk80qv5v79f52w3hyaqq2ss0zdqp52 |
| TRX / USDT-TRC20 | TFaN8RPkgFkWjL5XHfJKRzyDQp2ECskQtH |
Addresses copied verbatim from the project's WALLET.md. Verify before sending.