Building apps with GPT-3? Here's how to balance cost and performance