KPI builder API fine tuning