
Quick start
Install the free package and quote a request. No license step.
1. Download and install
Get the zip from the download page, then:
# Windows: double-click install.bat
# macOS/Linux: ./install.sh2. Print the catalog
llm-cost-opt prices3. Quote a token count
llm-cost-opt quote --input-tokens 1500 --output-tokens 300The JSON lists every model, cheapest first. Amounts are USD list prices.
4. Redact a string
llm-cost-opt anonymize --text "Email me at me@example.com"
echo "Contact: me@example.com" | llm-cost-opt anonymize --json5. Optional local API
llm-cost-apiThen open http://localhost:8000/docs. POST /quote returns the same table.