managing token costs in AI products