Vision token counter

Image Token Counter

See what an image costs before you send it. This image token calculator applies each provider’s own published formula — OpenAI’s patches and tiles, Google’s tiles, Anthropic’s pixel divisor — so the count matches what you are actually billed. Type a width and height, or drop a file in; the pixels never leave your browser.

Calculated in your browser — no upload

Image size

Common sizes

Drop an image to read its size

or click to browse — the file is never uploaded

Detail

This model ignores the detail parameter.

How many images

Tokens per imagepatches
1,024
Total tokens
1,024
Input cost
$0.00205
Billed size
1,024×1,024

1,024 patches of 32px × 1

Counted at 1,024×1,024 — no provider resizing

A 1,024×1,024 image across every vision model

Billed image tokens and input cost for the selected image size on every vision model with a published image token formula
ModelMethodBilled sizeTokensPer imageTotal
GPT-5.6 SolOpenAIPatches1,024×1,0241,024$0.00410$0.00410
GPT-5.6 TerraOpenAIPatches1,024×1,0241,024$0.00205$0.00205
GPT-5.6 LunaOpenAIPatches1,024×1,0242,519$0.00050$0.00050
GPT-5.5OpenAIPatches1,024×1,0241,024$0.00512$0.00512
GPT-5.4OpenAIPatches1,024×1,0241,024$0.00256$0.00256
GPT-5.4 miniOpenAIPatches1,024×1,0241,659$0.00124$0.00124
GPT-5.4 nanoOpenAIPatches1,024×1,0242,519$0.00050$0.00050
GPT-5.1OpenAIPatches1,024×1,0241,024$0.00128$0.00128
GPT-4.1OpenAITiles768×768765$0.00153$0.00153
GPT-4oOpenAITiles768×768765$0.00191$0.00191
GPT-4o MiniOpenAITiles768×76825,501$0.00383$0.00383
Claude Fable 5AnthropicPixels ÷ 7501,024×1,0241,399$0.014$0.014
Claude Opus 5AnthropicPixels ÷ 7501,024×1,0241,399$0.00700$0.00700
Claude Opus 4.8AnthropicPixels ÷ 7501,024×1,0241,399$0.00700$0.00700
Claude Sonnet 5AnthropicPixels ÷ 7501,024×1,0241,399$0.00280$0.00280
Claude Sonnet 4.6AnthropicPixels ÷ 7501,024×1,0241,399$0.00420$0.00420
Claude Haiku 4.5AnthropicPixels ÷ 7501,024×1,0241,399$0.00140$0.00140
Gemini 3.1 ProGoogleTiles1,024×1,0241,032$0.00206$0.00206
Gemini 3.7 FlashGoogleTiles1,024×1,0241,032$0.00077$0.00077
Gemini 3.5 FlashGoogleTiles1,024×1,0241,032$0.00155$0.00155
Gemini 3.5 Flash-LiteGoogleTiles1,024×1,0241,032$0.00031$0.00031
Gemini 2.5 ProGoogleTiles1,024×1,0241,032$0.00129$0.00129

Counts apply each provider’s published formula to the dimensions you enter, so they match what the API bills for the image itself. Your prompt text, system message and the model’s reply are billed on top. Providers do change these formulas — figures were last checked against the source documentation in August 2026.

Step by step

How to calculate image tokens

  1. 1

    Enter the dimensions

    Type the width and height in pixels, or pick one of the presets. Only the dimensions matter — file size, format and compression have no effect on the token count.

  2. 2

    Or drop the image in

    Drag a PNG, JPG, WebP, GIF, AVIF or SVG onto the counter and its dimensions are read locally. The image is never uploaded; nothing but its width and height is used.

  3. 3

    Choose the model

    Each provider bills images differently, so the model matters more here than it does for text. The same 1,024×1,024 image is 1,024 tokens on GPT-5.6 Terra and 1,399 on Claude Sonnet 5.

  4. 4

    Read the tokens and the cost

    You get the billed token count, the input price for one image, the cost for a batch, and a table comparing every vision model at that size.

The four schemes

How each provider counts image tokens

Text tokenization is one algorithm shared by every model. Images are the opposite: four providers, four unrelated formulas, and differences far larger than rounding.

OpenAI · GPT-5.x

Patches

ceil(w / 32) × ceil(h / 32), capped at 1,536

The image is cut into 32×32 patches and each patch is one token, up to a hard ceiling of 1,536. Anything larger is scaled down to fit, which is why a 4K screenshot and a 1080p screenshot cost exactly the same. The mini and nano tiers multiply the patch count by 1.62 and 2.46 because they bill image tokens against a much cheaper text rate.

OpenAI · GPT-4o / 4.1

Tiles

85 + 170 × tiles of 512px

The 4-series never moved to patches. The image is fitted inside 2,048px, its shortest side reduced to 768px, then divided into 512px tiles. These are the only models that honour the <code>detail</code> parameter: <code>low</code> is a flat 85 tokens regardless of size.

Google · Gemini

Flat rate, then tiles

≤ 384px both sides → 258; else tiles of 768px × 258

Small images are a single flat-rate unit. Larger ones are tiled at 768px, each tile costing 258 tokens. Crucially there is no cap, so Gemini is the cheapest option for thumbnails and by far the most expensive for a full-resolution phone photo: 6,192 tokens against 1,452 on GPT-5.6 Terra.

Anthropic · Claude

Pixels ÷ 750

w × h / 750, after capping the long edge at 1,568px and the area at 1,150,000px

Claude ignores tiles entirely and divides total pixel area by 750. Two caps apply first — the long edge, then the total area — and together they produce a ceiling of about 1,534 tokens per image. Every Claude tier counts identically; only the price per token changes.

Azure OpenAI serves OpenAI’s models under OpenAI’s own image accounting, so an Azure image token calculator is the same arithmetic — pick the matching GPT model above and the count applies unchanged. Models whose providers publish no image formula are deliberately absent rather than guessed at.

Tokens and pricing

What an image costs, model by model

Input rates only. Output is billed separately, and a model that describes your image back to you charges three to five times more for the words it writes.

Image tokens by size

Billed image tokens for six common image sizes across thirteen vision models from OpenAI, Anthropic and Google
ModelMethodThumbnail256×256Small512×512Square1,024×1,024Screenshot1,920×1,0804K screen3,840×2,160Phone photo3,024×4,032
GPT-5.6 TerraOpenAIPatches642561,0241,5361,5361,452
GPT-5.6 LunaOpenAIPatches1576302,5193,7793,7793,572
GPT-5.5OpenAIPatches642561,0241,5361,5361,452
GPT-5.4 miniOpenAIPatches1044151,6592,4882,4882,352
GPT-4.1OpenAITiles2552557651,1051,105765
GPT-4oOpenAITiles2552557651,1051,105765
GPT-4o MiniOpenAITiles8,5008,50025,50136,83536,83525,501
Claude Opus 5AnthropicPixels ÷ 750883501,3991,5341,5341,534
Claude Sonnet 5AnthropicPixels ÷ 750883501,3991,5341,5341,534
Claude Haiku 4.5AnthropicPixels ÷ 750883501,3991,5341,5341,534
Gemini 3.1 ProGoogleTiles2582581,0321,5483,8706,192
Gemini 3.7 FlashGoogleTiles2582581,0321,5483,8706,192
Gemini 3.5 Flash-LiteGoogleTiles2582581,0321,5483,8706,192

Cost of one 1,024×1,024 image

Input token cost of a single 1,024×1,024 image per model, with the cost of 1,000 images and the number of images one US dollar buys
ModelMethodTokensPer image1,000 imagesImages per $1
GPT-5.6 TerraOpenAIPatches1,024$0.00205$2.05488
GPT-5.6 LunaOpenAIPatches2,519$0.00050$0.5041,985
GPT-5.5OpenAIPatches1,024$0.00512$5.12195
GPT-5.4 miniOpenAIPatches1,659$0.00124$1.24804
GPT-4.1OpenAITiles765$0.00153$1.53654
GPT-4oOpenAITiles765$0.00191$1.91523
GPT-4o MiniOpenAITiles25,501$0.00383$3.83261
Claude Opus 5AnthropicPixels ÷ 7501,399$0.00700$7.00143
Claude Sonnet 5AnthropicPixels ÷ 7501,399$0.00280$2.80357
Claude Haiku 4.5AnthropicPixels ÷ 7501,399$0.00140$1.40715
Gemini 3.1 ProGoogleTiles1,032$0.00206$2.06484
Gemini 3.7 FlashGoogleTiles1,032$0.00077$0.7741,292
Gemini 3.5 Flash-LiteGoogleTiles1,032$0.00031$0.3103,230

Counts are for OpenAI’s <code>detail: high</code> where the parameter applies. Prices are current published input rates; Claude Sonnet 5 and Gemini 3.1 Pro bill the same $2.00 per million input tokens, so the gap between them is entirely down to how each counts pixels.

About this tool

Counting image tokens: what actually gets billed

Every vision request is metered in tokens, but an image is not text and there is no tokenizer to run it through. Instead each provider converts pixels to a token count with its own published formula — and those formulas disagree badly enough that the same picture can cost four times as much on one API as on another.

Why an image costs tokens at all

A language model has no way to read a picture directly. Before it reaches the model, an image is divided into regions, each region is encoded as a vector, and those vectors enter the context window in the same slots that text tokens would. That is why images are billed in tokens: they genuinely occupy context, and they consume the same compute per unit that words do.

What differs from text is how the count is produced. A sentence goes through a byte-pair tokenizer, so its token count can be computed exactly by anyone with the vocabulary file. An image’s count comes from arithmetic on its dimensions — and nothing else. File size is irrelevant. So is format, colour depth, and how heavily the JPEG was compressed. A 40 KB screenshot and a 12 MB PNG of identical dimensions cost exactly the same. This is the single most useful thing to know about image billing, because it means the only lever you have is resolution.

OpenAI, ChatGPT and Azure OpenAI

OpenAI uses two schemes, and which one applies depends on the model generation rather than anything you control. The GPT-5.x family counts patches: the image is cut into a grid of 32×32 squares and each square costs one token, up to a hard cap of 1,536 patches. A 1,024×1,024 image is 1,024 tokens on GPT-5.6 Terra — $0.00205 of input, or $2.05 for a thousand of them.

The cap is what makes the patch scheme forgiving at the top end. A 1080p screenshot and a 4K screenshot both bill 1,536 tokens, because the 4K frame is scaled down to the patch budget before counting. Sending the larger file buys you nothing and costs you nothing.

GPT-4o and GPT-4.1 predate patches and use tiles instead: a base charge of 85 tokens plus 170 per 512px tile after two resize passes. The same square image is 765 tokens there. These are also the only OpenAI models that read the detail parameter — setting it to low fixes the charge at 85 tokens no matter how large the image, which is a real optimisation when you only need the gist of a picture. On the GPT-5.x models the parameter is accepted and ignored, so the counter above greys the control out and says why.

If you call through Azure OpenAI, use the matching OpenAI row. Azure hosts the same models under the same image accounting, so an Azure OpenAI image token calculator and an OpenAI one return the same number; only your contract rate might differ. ChatGPT itself is not billed per token at all on a consumer plan, but the model behind it counts images exactly as the API does, which is what makes these figures useful for estimating what a ChatGPT-style feature will cost to build.

Gemini counts tiles, and never stops

Google’s scheme has two branches. An image measuring 384px or less on both sides is a single flat-rate unit worth 258 tokens. Anything larger is divided into 768px tiles, each also worth 258 tokens.

The consequence is worth planning around: Gemini applies no ceiling. Where OpenAI caps at 1,536 patches and Anthropic caps at roughly 1,534 tokens, Gemini keeps adding tiles for as long as you keep adding pixels. A 1,024×1,024 image is a competitive 1,032 tokens; a 3,024×4,032 photo straight off a phone is 6,192, against 1,452 on GPT-5.6 Terra and 1,534 on Claude Sonnet 5. Gemini goes from the cheapest option to the most expensive one purely because of the resolution you handed it.

The flip side is that Gemini is unbeatable on small images. At 256×256, Gemini 3.7 Flash costs $0.00019 per image, and the flat rate covers everything up to 768px on both sides — so a thumbnail pipeline that resizes to 768px or below pays one tile, once.

Claude divides pixels by 750

Anthropic skips grids altogether: tokens are total pixel area divided by 750. Two caps run first — the long edge is brought down to 1,568px, then the total area to about 1,150,000 pixels — and it is the area cap, not the edge cap, that produces Claude’s effective ceiling of roughly 1,534 tokens per image.

Because the formula is purely geometric, every Claude tier reports the same count. A 1,024×1,024 image is 1,399 tokens on Opus, Sonnet and Haiku alike — the models differ only in what a token costs. That makes tier choice unusually clean for vision work: the same image is $0.00700 on Claude Opus 5 and $0.00140 on Claude Haiku 4.5, a five-fold difference with no change in how much of the picture the model receives.

How to spend less on images

Resize before you send. Since only dimensions matter, downscaling is the whole optimisation. On the capped schemes anything above the cap is free to discard — the provider is going to shrink it anyway, and doing it yourself also saves upload time. On Gemini, where nothing is capped, resizing is the difference between 6,192 tokens and 1,032.

Match resolution to the task. Reading dense text in a screenshot needs pixels. Deciding whether a photo shows a cat does not. On GPT-4o and GPT-4.1, detail: low settles that at a flat 85 tokens; on other models, resizing to 512×512 achieves the same thing.

Count the conversation, not the request. An image stays in the context window for as long as the thread does, and most chat implementations resend the whole history on every turn. An image costing $0.00205 once costs $0.041 across a twenty-turn conversation, before a single word of text is counted. Check whether cached input pricing applies to your prefix — it is typically a fraction of the standard rate.

How accurate these counts are

Image token counts are more reliable than text estimates for models whose tokenizers are private, because the formulas here are published arithmetic rather than a reconstruction. Feed OpenAI’s tile scheme a 512×512 image and it returns 255 tokens, which is the figure in OpenAI’s own documentation; 1,024×1,024 returns 765, likewise.

Two caveats. Providers change these formulas without much notice, so figures are dated to when they were last checked against the source documentation. And the token count for the image is not the whole request — your prompt text, any system message, and the model’s reply are all billed on top. Use the file token counter for documents and the main text calculator for prompts; this page covers the pixels.

FAQ

Frequently asked questions

Image tokens

How do I calculate the tokens in an image?

Apply the formula for the provider you are billing against — the counter at the top of this page does it for all of them. OpenAI's GPT-5.x models cut the image into 32×32 patches and charge one token each up to 1,536; GPT-4o and GPT-4.1 charge 85 tokens plus 170 per 512px tile; Gemini charges 258 tokens per 768px tile; Claude divides total pixels by 750. All four depend only on width and height.

Does the file size of an image affect its token count?

No. Only the pixel dimensions matter. A 40 KB JPEG and a 12 MB PNG with identical width and height cost exactly the same number of tokens, and compression, colour depth and format make no difference. The only way to reduce image tokens is to reduce resolution.

How many tokens is a 1024x1024 image?

1,024 tokens on GPT-5.6 Terra and the other GPT-5.x flagship tiers, 765 on GPT-4o and GPT-4.1, 1,032 on every Gemini model, and 1,399 on every Claude model. At those models' input rates a single image costs between $0.00031 and $0.00700.

Is the Azure OpenAI image token calculator different from the OpenAI one?

No. Azure OpenAI serves OpenAI’s models under OpenAI’s image accounting, so the token count for a given image and model is identical on both. Select the matching GPT model in the counter above and the figure applies to your Azure deployment unchanged. Only your negotiated price per token may differ.

Why does Gemini charge so much more for a large photo?

Because Gemini applies no ceiling. OpenAI caps images at 1,536 patches and Anthropic caps them at roughly 1,534 tokens, so oversized images are scaled down before counting. Gemini keeps adding 768px tiles indefinitely, which is why a 3,024×4,032 phone photo is 6,192 tokens against 1,452 on GPT-5.6 Terra. Resize before sending and Gemini becomes one of the cheapest options again.

What does OpenAI’s detail parameter do?

On GPT-4o and GPT-4.1 it controls the whole charge: detail: low is a flat 85 tokens regardless of image size, and skips resizing entirely, while detail: high runs the full tile calculation. On the GPT-5.x patch models the parameter is accepted but has no effect on the count, so the counter above greys the control out rather than letting you set something inert.

Do all Claude models count images the same way?

Yes. Anthropic's formula is pixels ÷ 750, which is purely geometric, so Opus, Sonnet and Haiku all report 1,399 tokens for a 1,024×1,024 image. Only the price per token differs — that same image is $0.00700 on Claude Opus 5 and $0.00140 on Claude Haiku 4.5.

Is my image uploaded when I use this counter?

No. Dropping a file in only lets your browser read its width and height locally; the pixels are never transmitted, logged or stored. You can also skip the file entirely and type the dimensions, which is all the calculation ever uses.

Why are some vision models missing from the list?

Because their providers publish no image token formula. xAI, DeepSeek, Meta and Alibaba document text pricing but not how they convert pixels to tokens, and a row that silently guessed would be worse than no row. The thirteen models here all have published arithmetic behind them.

Token cost & pricing

How much do 1000 tokens cost?

1,000 input tokens costs $0.00200 on GPT-5.6 Terra, $0.00020 on GPT-5.6 Luna, $0.00200 on Claude Sonnet 5 and $0.00200 on Gemini 3.1 Pro. Providers quote rates per million tokens, so divide the headline figure by 1,000 for the per-1,000 price. Output tokens are billed separately and cost three to five times more. In image terms, 1,000 tokens is roughly one 1,024×1,024 picture on the GPT-5.x models.

How many words are 1000 tokens?

About 750 words of ordinary English prose, or roughly 4,000 characters — a little over 1.5 pages at 500 words per page. The ratio averages 0.75 words per token for English, but code, JSON, and non-Latin scripts are far denser, sometimes approaching one token per character. Images do not follow the ratio at all: their token count comes from pixel dimensions, not from any text equivalent.

How much is 1,000,000 tokens?

About 750,000 words, or roughly 1,500 pages — five or six full-length novels. The price depends entirely on the model: 1,000,000 input tokens is $2.00 on GPT-5.6 Terra, $0.200 on GPT-5.6 Luna and $5.00 on GPT-5.5. As images, a million tokens buys about 976 1,024×1,024 pictures on GPT-5.6 Terra.

How can I calculate tokens?

For text, run it through the same tokenizer the model uses — OpenAI publishes theirs, so GPT counts are exact, while Anthropic, Google and others keep theirs private and are estimated. For images there is no tokenizer: you apply the provider's published formula to the width and height, which is what the calculator on this page does. A rough manual check for English text is characters ÷ 4; for an image on the GPT-5.x models it is (width ÷ 32) × (height ÷ 32), rounded up and capped at 1,536.

How much is 200,000 tokens?

About 150,000 words, or roughly 300 pages — one full-length novel. It costs $0.400 of input on GPT-5.6 Terra and $0.200 on Claude Haiku 4.5. It was the standard context-window ceiling for years and Claude Haiku 4.5 still stops there, but the current flagships hold far more — GPT-5.6 Terra takes about 1,050,000 tokens. In images, 200,000 tokens is around 195 1,024×1,024 pictures.

How to calculate token price?

Price = (input tokens ÷ 1,000,000) × input rate + (output tokens ÷ 1,000,000) × output rate. Count the two directions separately, because every provider charges more for what the model writes than for what you send it. Image tokens are input tokens, so they go in the first term — convert the image to a token count first, add your prompt text, then multiply. If you reuse the same prefix across requests, check whether a cached input rate applies; it is typically 10% to 50% of the standard rate.

How is cost per token calculated?

Divide the published per-million rate by 1,000,000. GPT-5.6 Terra at $2.00 per million works out to $0.00000200 per input token; GPT-5.6 Luna at $0.200 per million is $0.00000020. Providers quote per million precisely because the per-token figure has too many leading zeros to be useful. Note that input and output have separate rates, and cached input a third — so a single model can have three different costs per token.

What is a token rate?

A token rate is the price a provider charges per unit of tokens, almost always quoted per million. GPT-5.6 Terra lists $2.00 per million input tokens and $12.00 per million output tokens. The term is also used for throughput — tokens per second, meaning how fast a model generates text — so it is worth checking which sense is meant. On this page it always means price.

What is the cost of one token?

Fractions of a cent. One input token is $0.00000200 on GPT-5.6 Terra, $0.00000020 on GPT-5.6 Luna and $0.00000500 on GPT-5.5. Put the other way round, one US dollar of input buys about 500,000 tokens on GPT-5.6 Terra or 5,000,000 on GPT-5.6 Luna — or 488 1,024×1,024 images.

Counting text or documents instead?

The main calculator tokenizes pasted text as you type, with a colour-coded breakdown and a price comparison across every model. Separate counters handle files and OpenAI-specific tokenizers.