Prompt order can cut your AI input costs by 85%
If you generate SEO pages or ads with AI, the order of your prompt can cut input costs by 85% or more.
Put what stays the same first:
- Instructions
- Brand guide
- Examples
Put what changes last:
- Keyword
- Product
- Date
Why? -> Prompt caching.
OpenAI and Claude can cache the beginning of a prompt. When you reuse those same instructions, you pay a fraction of the normal input price.
But the beginning has to match exactly. A keyword on line 1 makes every prompt different, so nothing gets reused.
Say you have a 4,000-token brand guide and 200 tokens of page-specific data.
With a 90% discount on cached tokens, your input cost drops by ~86% on each subsequent cache hit.
OpenAI handles caching automatically. On Claude’s API, enable caching and mark the end of your reusable instructions.
Keep the beginning identical.
Change only what’s at the end.
