Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Your team budgets vision spend for a product-photo feature on the Claude API. Claude estimates image tokens as (width in px times height in px) divided by 750, and only downscales images whose long edge exceeds 1568 px. A user uploads a 1092x1092 photo. Predict the approximate token count Claude charges for this image (round to the nearest 10).
Long edge is 1092 px which is below the 1568 px downscale threshold, so the formula applies directly: 1092 times 1092 divided by 750 equals about 1590 tokens.
Imagine a calculator with a simple rule: count the dots in your picture (width times height), then split that count into bundles of 750. Each bundle is one token. The calculator only shrinks the picture first if its longest side is bigger than 1568 dots wide. This picture is 1092 by 1092, so the calculator skips shrinking. Multiply: 1092 times 1092 gives about 1.19 million dots. Divide by 750: about 1590 bundles, which is about 1590 tokens. Knowing this number lets a team set a per-image budget instead of being surprised by the bill at the end of the month.
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.
4 minutes: check the downscale threshold, apply the area formula, contrast with OpenAI tile pricing, and tie the result to per-feature image budgets.
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.
Multiplying width and height in centimeters or guessing a round 1500 without doing the division by 750; or applying the downscale rule when the image is already below the threshold.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.