A compact Flask app that estimates per-task and monthly costs for capped-retry LLM workflows.
pip install -r requirements.txt # or `pip install flask`
FLASK_APP=t001_unit_cost_pin.app flask runOpen http://localhost:5000 and adjust the form inputs. The defaults show the golden-path example from the spec.
Inputs:
pr_in_1k = 0.003pr_out_1k = 0.015tok_in = 1500tok_out = 1000p = 0.8r = 1overhead = 1.15volume = 2000vps = 2.00
Outputs rendered on the page:
- Cost / Attempt —
$0.01950 - Expected Attempts / Task —
1.20 - Success probability within cap —
96.00% - Cost / Task —
$0.02691 - Monthly Cost —
$53.82 - Breakeven $ / Success —
$0.02803 - ROI / Task —
$1.893