Skip to main content

Command menu

Jump to a page or search the catalog

Analytics & Reporting Tools

LLM Cost Diff — Catch Cost Regressions Before You Deploy

Compare two LLM runs, see cost per task change in one number, and get the biggest driver named in the first line of the report.

$19.00

What you get: 1 file · 151.55 KB · ZIP

See purchase options

Product description

Your prompt change looked harmless. Three weeks later the API bill says otherwise.

LLM Cost Diff is a local tool + agent skill that compares two recorded runs of the same workload — before and after a prompt, model, or code change — and tells you exactly what the change did to your cost:

  • Total cost and cost per completed task, before vs after, with % change

  • The single biggest driver, named in one sentence at the top of the report (retries, output tokens, input tokens, or call volume)

  • Estimated retry cost and retry share — the silent bill-killer

  • Top cost contributors by task and by model, so you fix the right thing

It runs entirely on your machine: no account, no hosted dashboard, nothing phones home. Traces are simple JSONL files — one aggregated line per task. If your logs are per-request (the shape most tools export), the included importer aggregates them into per-task traces in one command. Prices live in an editable pricing.json, so it works with any provider — and with local models you price yourself.

Includes a synthetic sample (before/after traces + generated report) so you can see the exact output before wiring up your own traces: a realistic regression where cost per completed task jumps +85.2% and the report correctly fingers retries, not the longer prompt.

What's inside:

  • llm_cost_diff/ — the CLI tool (Python 3.12, standard library only), including the per-request log importer

  • SKILL.md — agent skill: when to run it, how to read the report, pre-deploy cost checklist

  • pricing.json — editable model prices (USD per 1M tokens)

  • sample_data/ — synthetic before/after traces, clearly labeled

  • sample-report.md / sample-report.html — generated sample reports

  • tests/ — pytest suite proving the cost math

  • README.md, LICENSE.txt

Who it's for: indie devs and small teams shipping LLM features who change prompts or models and want a cost check in the loop — the way they already have a test check.

What you get

1 file · 151.55 KB

  • llm-cost-diff.zipZIP · 151.55 KB
LicenseCommercial use allowed
Package checkPassed

Getly opened the uploaded files and found nothing that would stop them opening. It is not a virus scan or a quality rating.

PublishedNov 25, 2026
File size151.55 KB
File formatZIP
Versionv1.0

Tags

llm costai cost trackingprompt optimizationpythonapi cost
w
wyze0077

Frequently asked questions

Do I get access instantly?

Yes. This is a digital product - you can download it right after checkout, straight from your library.

Can I use it for commercial projects?

Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.

What's your refund policy?

You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.

What file formats and sizes will I get?

You'll download 1 file - ZIP - 151.55 KB in total.

Do I get free updates?

Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.

Price

$19.00