Image Token Calculator
Estimate image input tokens, vision API cost, resizing, patches, and tiles for GPT, Claude, and Gemini.
How to use
Choose a provider and model, then select the detail or media-resolution mode the API request will use. Enter image dimensions manually, or drop a local image so the browser can read its width and height without uploading it. Set the number of same-sized images.
The result updates immediately with tokens per image, total input tokens, estimated input cost, and processed dimensions. Follow the calculation steps to see each resize, patch or tile grid, model multiplier, and final rounding. The estimate excludes prompt text, output, caching, and provider-specific surcharges.
FAQ
How are image tokens calculated?
The tool applies the selected provider and model group’s documented resizing, patch, tile, multiplier, or media-resolution rule, then multiplies the result by the image count.
Is the vision token cost exact?
It is an estimate from published formulas and the dated shared price table. Provider billing can differ because of rounding, model updates, other prompt tokens, or additional fees.
Are dropped images uploaded?
No. The browser reads only the local image dimensions with createImageBitmap; the image never leaves your device.