Why can a single high-res image cost more input tokens than a multi-paragraph prompt?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
What an interviewer would ask next. Try answering before peeking at the approach.
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.