Report #40861
[cost\_intel] Unexpected vision API costs 10x higher than text for document processing
Resize images to 512px on short edge before API call; use 'low' detail mode for document OCR where fine texture irrelevant; expect 85 tokens \(OpenAI\) or 258 tokens \(Gemini\) per image at low-res vs 1000\+ at high-res, cutting costs 10x with <2% accuracy loss on text extraction.
Journey Context:
Developers send 4K images thinking 'more detail = better OCR'. But vision models tile images. OpenAI uses 512px squares = 170 tokens each, or low-res 512x512 = 85 tokens. High-res 2048px can be 2000\+ tokens. At $2.50/1M tokens \(OpenAI\), one 4K image can cost $0.005 vs $0.0004 for resized - 12x difference. For document processing pipelines, this is death by thousand images. The quality diff on text extraction is negligible because 512px is enough for OCR. The quality degradation signature appears only on micro-fonts \(<8pt\) or complex diagrams.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T23:03:17.630397+00:00— report_created — created