Report #92507
[cost\_intel] Vision API high-res mode calculating tokens by 512px tiles not pixel count causing 5-10x cost vs expectation
Pre-resize images to exact multiples of 512px \(512, 1024, 2048\) before sending; use 'low' detail mode for images under 512px or when text legibility isn't critical
Journey Context:
OpenAI's Vision API charges by 'tile' \(512x512 pixel squares\), not by total pixels. A 513x513 image requires 4 tiles \(2x2 grid\), costing 4x the tokens of a 512x512 image. High detail mode forces the model to look at all tiles. Developers often send 4K images \(4096x4096 = 64 tiles\) thinking cost scales with resolution linearly, but it's step-function by tiles. The fix is resizing images to exactly 512px boundaries before upload and using low detail mode \(which uses a single 512px thumbnail\) unless high detail is absolutely necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:51:51.269927+00:00— report_created — created