Maximizing AI Efficiency: Cost-Effective Token Management