What's the actual price difference?
Opus 4.8 costs $5 per million input tokens and $25 per million output tokens. Sonnet 4.6 costs $3 input and $15 output. Output is where the gap bites: at $25 vs $15 per million, a chatty, long-output workload on Opus can cost roughly 67% more per generated token than on Sonnet.
Both models include a 1M-token context window at standard pricing (Opus 4.6+ and Sonnet 4.6), so you're not paying a premium just to use long context. Both also support the same cost levers: the Batch API gives 50% off input and output for non-urgent jobs, and prompt caching drops cache-read (hit) tokens to roughly 10% of the base input price. Exact figures are on the Claude API pricing detail page.
Because the levers are identical, the decision comes down to one question: does the extra per-token cost of Opus buy you enough additional capability on this specific task to be worth it? For a lot of everyday work, it doesn't.