Vision Image Token Calculator and Resize Budget

Enter image dimensions and a model preset to count image tokens. Choose Compare resize to add minimum upload dimensions and compare a proportional resize.

Inputs
px
px
USD / million tokens

Results

Estimated image input tokens
765
Image-only cost at your rate
$0.000765
Per-image accounting
ImageSubmitted pixelsProcessed pixelsTiles / patchesTokens
Original1024 × 1024768 × 7684765
  • Dated model preset is active.
  • Presets checked 2026-11-14. Enter your actual input rate. Text, output, caching and Batch discounts are excluded.

Results update as you type. The share link stores your inputs after the # in the address, which is not sent to our server, but anyone you send it to can read them.

How it works

Presets are dated 2026-11-14. GPT-4o, GPT-4.1 and GPT-4o-mini use base-plus-tile accounting. High/auto detail fits within 2048 pixels, then reduces a shortest side above 768 pixels. Coverage uses 512-pixel tiles; low detail uses only the base. GPT-4.1-mini (2025-04-14 snapshot) uses 32-pixel patches, a 2048-pixel dimension limit, a 6,144-patch budget and a 1.62 multiplier for all three offered detail levels.

tile tokens = base + ceil(width / 512) × ceil(height / 512) × tile rate patch tokens = ceil(patch coverage × multiplier) resize scale = max(minimum width / width, minimum height / height) cost = tokens per image × image count × input rate / 1,000,000

Original image mode ignores minimum dimensions. In Compare resize mode, integer cross-products select the controlling minimum exactly and integer ceiling division rounds the other dimension up; provider processing dimensions round down. Coverage and patch tokens round up. Intermediate ratios stay unrounded. Select a model’s override-rules option to show only its tile or patch controls and replace the preset accounting coefficients and resizing caps; custom results are labelled. No image file is changed. The editable $1 rate is an example assumption, not provider pricing. The tool accepts dimensions up to 1,000,000 pixels and counts up to 1,000,000 as local arithmetic limits.

Worked examples

Square tile resize

GPT-4o at high detail uses 4 tiles for a 1024 × 1024 upload: 85 + 4 × 170 = 765 tokens. A 512 × 512 minimum-size upload uses 255 tokens, saving 510. At an example $1 per million input tokens, one resized image costs $0.000255.

Patch accounting

A 1024 × 1024 GPT-4.1-mini image uses 32 × 32 = 1,024 patches. Rounding 1,024 × 1.62 up gives 1,659 tokens. Two such images use 3,318 tokens.

Frequently asked questions

Are the pixel minimums guaranteed after model processing?
No. They describe the upload you prepare. The provider may resize it again. The result table shows both dimensions.
Does low detail always save tokens?
No. The GPT-4.1-mini preset uses the same sizing limits for low, high and auto. The tile presets use a fixed low-detail base.
Can I enter my own price?
Yes. Replace the clearly labelled example USD-per-million input rate. Enter an effective rate if your agreement differs. No discount is automatically applied.
What costs are excluded?
Prompt text, model output, image generation, image editing and other fees. This estimates vision image inputs only.
Why can shrinking an image leave the token count unchanged?
Tiles and patches cover discrete areas. A small dimension change may still require the same coverage. Low-detail tile presets have a fixed base regardless of dimensions.

Sources

Last reviewed 2026-11-14; next review due by 2026-12-14. The method is written out above so you can check our math.