How do you improve the performance of a slow API?

Technical