Image Token Calculator – Vision Tokens and Cost per Image

Last updated

This calculator applies each provider's published image rule to your width and height. Claude covers the image in 28-pixel patches after shrinking it to fit 2,576 pixels and 4,784 tokens. GPT-6 Astra counts 32-pixel patches, times 1.2, after its detail setting's resize. Gemini 4 and 3 models use an approximate fixed allowance per media resolution. Tokens are then billed at the model's normal input price, per image and per 1,000 images.

Tokens per image –
Size the model sees –
Cost per image –
Cost per 1,000 images –
Tokens for all your images –
Cost for all your images –
The same image on every model

Prices last verified November 2, 2026. Figures are estimates in US dollars; confirm with each provider before committing.

Pick a model and enter the image's width and height in pixels. The calculator applies that provider's published resize and token rule, shows the size the model actually works with and what one image, 1,000 images and your whole batch cost at the model's input price. The table runs the same image through every vision model priced on this site and highlights the one you picked. GPT-6 Astra has a detail setting and Gemini models a media resolution; those choices appear when you pick one of those models, and the table uses them for the other models from the same provider.

The defaults are a 1920 × 1080 screenshot on Claude Opus 5.5, sent 250 times. It is not resized and costs 2,691 tokens, which at $4 per million input tokens is $0.010764 an image, $10.764 per 1,000 images and $2.691 for all 250, or 672,750 tokens.

How each provider counts an image

All three providers now cut an image into small squares and charge per square, but each uses a different square, a different resize and a different cap.

Anthropic's vision guide says Claude "processes images in patches instead of pixels. Each patch is a 28×28-pixel block of the image". An image costs one token per patch:

tokens = ⌈width ÷ 28⌉ × ⌈height ÷ 28⌉

Before counting, Claude finds "the largest aspect-preserving size" in which neither side exceeds the maximum edge and the token count stays within the model's budget. Claude 4.7 and later models, which covers every Claude model on this site, use a 2,576-pixel edge and a 4,784-token budget. The calculator follows Anthropic's reference implementation, a binary search along the long edge. For the default screenshot, 1920 ÷ 28 rounds up to 69 and 1080 ÷ 28 to 39, so it costs 69 × 39 = 2,691 tokens and fits without resizing. A 3840 × 2160 4K frame does not fit and is shrunk to 2,576 × 1,449, which costs exactly 4,784 tokens, the most any image can cost on these models. Images with a side over 8,000 pixels are rejected outright.

OpenAI's guide describes a similar scheme for its newer models with 32-pixel patches. The image is fitted within the detail level's size limit, scaled down further if it exceeds the level's patch budget, then counted:

tokens = ⌈⌈width ÷ 32⌉ × ⌈height ÷ 32⌉ × multiplier⌉

For GPT-6 Astra the multiplier is 1.2. Low detail fits the image within 512 × 512 pixels. High detail allows "up to 2,500 patches". Original keeps the image's size up to 65,535 pixels a side, and auto, the default, "uses the same sizing behavior as original". At auto, the default screenshot needs 60 × 34 = 2,040 patches and bills 2,448 tokens; at low it becomes 512 × 288 and bills 173. There is also a hard ceiling: OpenAI rejects any image that still needs more than 30,000 patches after resizing. A 6000 × 6000 photo at original detail needs 35,344 patches and fails, while at high detail it is scaled to 1,600 × 1,600 and costs 3,000 tokens.

Google's media resolution guide takes a different approach for Gemini 4 and Gemini 3 models. It lists approximate token counts per setting rather than per size: 280 at low, 560 at medium, 1,120 at high and at the default, and 2,240 at ultra high, which can only be set per image. The guide calls these figures approximate and describes the setting as the maximum number of tokens allocated per image, so the calculator marks Gemini counts as approximate and shows no resized size, because Google does not publish one.

Whatever the rule, the cost is the token count times the model's input price per million tokens. OpenAI states that the multiplier changes the token count, not the price, and Anthropic says to "multiply the token count by the per-token price of the model you're using". Google's pricing page lists one input price for each of these models, and for Gemini 3.5 Flash-Lite says it covers text, image, video and audio. The LLM API cost calculator uses the same per-million rates for text.

Where image tokens came from

OpenAI's deprecations page records its gpt-4-vision-preview model at $10 per million input tokens and $30 per million output, and that developers were told on 6 June 2024 it would shut down on 6 December 2024, with gpt-4o as the replacement. OpenAI's guide still documents the older tile rule for gpt-4o and gpt-4.1. The image is scaled to fit 2048 × 2048, then its shortest side is cut to 768 pixels if it is longer. Each 512-pixel tile costs 170 tokens on top of an 85-token base, and low detail costs just the base. Patch counting replaced tiles on the newer models.

Anthropic announced the Claude 3 family on 4 March 2024 with what it called "sophisticated vision capabilities", able to read "photos, charts, graphs and technical diagrams". Its release notes record that Claude Opus 4.7, launched on 16 April 2026, raised the maximum image resolution "from 1,568 to 2,576 pixels on the long edge", and warned that images "might use up to approximately 3x more image tokens than on prior models". Older models still use the 1,568-pixel, 1,568-token standard tier.

Google introduced Gemini on 6 December 2023 as a model "built from the ground up to be multimodal", with Gemini Pro open to developers from 13 December. Google's image guide still prints the earlier counting rule: 258 tokens for an image no larger than 384 pixels on either side, and otherwise 258 tokens for each 768 × 768 tile. The media resolution guide says the default count "varies significantly between Gemini 4/3 and earlier Gemini models", so this calculator uses the newer table for the three Gemini models it lists.

Comparing the models on one image

At the defaults, the same screenshot costs 2,448 tokens on GPT-6 Astra, 2,691 on every Claude model and about 1,120 on each Gemini model. At list prices that is $24.48 per 1,000 images on GPT-6 Astra, $26.91 on Claude Fable 5.1, $10.764 on Claude Opus 5.5, $5.382 on Claude Sonnet 5.5 and $0.2691 on Claude Haiku 5.5. Image tokens are only part of the bill: your text prompt and the model's answer are counted separately, and the token calculator estimates those from word counts.

Sending many large images in one request has two side effects. Anthropic applies a stricter size limit per image once a request holds more than 20 images, and suggests keeping each side to 3,000 pixels or less, or the request to 20 or fewer images. Claude Haiku 5.5's listed rate applies to prompts up to 100,000 tokens: 20 maximum-size images use 95,680 tokens, and a 21st takes the prompt to 100,464, where the higher long-prompt rate applies. If the same images go out with every request, prompt caching can bill repeated input at the cache read rate.

Limits of the estimate

These are estimates. OpenAI notes that rounding in billing can make the count "differ from the estimate by one token", and Gemini's counts are approximate by Google's own description. Two OpenAI models priced on this site, GPT-6.1 Sol and GPT-6 Luna, are left out because OpenAI's vision guide gives no sizing rule or multiplier for them. Batch, cache and regional processing discounts or premiums are not applied, and the input prices of Gemini 4 Argon and Gemini 3.8 Flash are temporary rates that rise on the dates noted in the price data.

Prices and token rules change without notice and figures here are estimates, not quotes; this site is not affiliated with any provider named above. See the site disclaimer.

Frequently asked questions

How many tokens is an image on Claude?

Claude covers the image in 28 by 28 pixel patches and counts one token per patch. On the Claude models listed here it first shrinks the image, if needed, to fit 2,576 pixels on the long edge and 4,784 tokens. A 1920 by 1080 screenshot is not resized and costs 69 times 39, or 2,691 tokens. A 4K frame is shrunk to 2,576 by 1,449 and costs the 4,784-token maximum.

How many tokens does an image use on GPT-6 Astra?

GPT-6 Astra counts 32-pixel patches and multiplies by 1.2. At the default auto detail, which sizes like original, a 1920 by 1080 image needs 60 by 34, or 2,040 patches, and bills 2,448 tokens. Low detail shrinks it to 512 by 288 for 173 tokens. High detail caps the image at 2,500 patches, so a 4K frame drops from 9,792 tokens to 2,931.

Does image size change the token count on Gemini?

Not on Gemini 4 and Gemini 3 models, according to Google's media resolution guide. It lists approximate image allowances by setting rather than by size: 280 tokens at low, 560 at medium, 1,120 at high and at the default, and 2,240 at ultra high. Google's image guide still describes an older rule of 258 tokens per 768-pixel tile, which the media resolution page says differs from Gemini 4 and 3.

Are image tokens cheaper than text tokens?

No. All three providers bill image tokens as ordinary input tokens at the model's input price. OpenAI applies the 1.2 multiplier to the image's patch count, not to the price. So on Claude Opus 5.5 at $4 per million input tokens, a 2,691-token screenshot costs $0.010764, or $10.764 per 1,000 images.

Why does the calculator not list GPT-6.1 Sol or GPT-6 Luna?

OpenAI's vision guide and its own image cost calculator give sizing rules and multipliers for GPT-6 Astra and the GPT-5.6 models, but not for GPT-6.1 Sol or GPT-6 Luna. Both accept image input, but without a published rule any count would be a guess, so they are left out until OpenAI documents them.

Sources

  1. Images and vision (OpenAI API docs), OpenAI, 2026
  2. Image input token and cost calculator (OpenAI API docs), OpenAI, 2026
  3. Vision (Claude API docs), Anthropic, 2026
  4. Coordinates and bounding boxes (Claude API docs), Anthropic, 2026
  5. Media resolution (Gemini API docs), Google AI for Developers, 2026
  6. Image understanding (Gemini API docs), Google AI for Developers, 2026
  7. Release notes (Claude API docs), Anthropic, 2026
  8. Introducing the next generation of Claude, Anthropic, 2024
  9. Deprecations (OpenAI API docs), OpenAI
  10. Introducing Gemini: our largest and most capable AI model, Google, 2023