How to Optimize AI-Generated Content with Better Prompts