Artificial Intelligence Optimizing API Efficiency: How Perplexity AI’s Context Pruning Enhances Performance