Why can a single high-res image cost more input tokens than a multi-paragraph prompt?
Explain how vision-language APIs price image inputs, what determines the per-image token count, and why a hi-res photo can outweigh several pages of text on the input-token bill.
Vision encoders tile each image into fixed patches and emit hundreds of tokens per tile, all billed at the standard input rate.
Picture a postcard rack at a store. Text prompts are like letters, the cashier counts each word. Images are not letters, so the store cuts each photo into small squares and counts the squares. A small photo is one or two squares; a giant printed poster is many dozens. You pay per square just like you pay per word. A poster can easily cost more than a long letter because it has so many squares. The store offers a thumbnail option: print a tiny version that is only one square, much cheaper, but you lose detail. The trick is matching the photo size to how much detail the cashier actually needs to do their job.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: image encoder turns the picture into a token sequence (tile-grid + overview), bill is image-tokens at standard input rate, hi-res images hit 1000-3000+ tokens, detail mode and client-side resizing are the levers.
| Image setup | Tiles | Approx tokens | Good for | Bad for |
|---|---|---|---|---|
| 512x512 low detail | 1 overview only | ~85 | scene classification, rough description | OCR, fine text, small icons |
| 512x512 high detail | 1 tile + overview | ~255 | small photos, simple icons | high-resolution sources downscaled and losing detail |
| 1024x1024 high detail | 4 tiles + overview | ~765 | typical product photos, charts | fast turnaround on bulk image jobs |
| 2048x2048 high detail | 16 tiles + overview | ~2805 | detailed documents, dense charts | any task where low detail suffices |
| 4K photo high detail | 32-48 tiles + overview | ~5000+ | rare cases needing full resolution | default uploads from phone clients |
Real products, models, and research that use this idea.
- OpenAI's vision pricing on GPT-5.5 uses 170 tokens per 512x512 high-detail tile plus an 85-token overview; a 1024x1024 image at high detail is 765 input tokens.
- Anthropic's Claude Opus 4.7 vision API charges per image with high-resolution and low-resolution modes; a single hi-res photo commonly lands at 1500-2500 input tokens.
- A SaaS app processing user-uploaded screenshots at native 4K resolution discovered its monthly bill tripled after adding the image feature, traced entirely to tile-count explosion.
- OCR-style features on receipts and invoices that must read fine print legitimately need high-detail mode; the cost is the price of the task, not waste.
- Video understanding pipelines like Gemini 2.5's video mode sample roughly 1 frame per second to keep frame-tokens bounded; raw 30 fps submission would multiply token cost 30x.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does aspect ratio interact with the tile grid to inflate token cost?
QWhy does Anthropic charge differently from OpenAI for the same image?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Assuming image inputs are free or flat-priced. Every image is decomposed into image tokens billed at the standard input rate; a hi-res photo can quietly outprice the entire surrounding text prompt.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.