---
title: "Image token calculator: GPT, Claude, Gemini, Qwen, Gemma"
description: "How many tokens is an image? Enter a size or drop an image to see tokens and cost per image on GPT, Claude, Gemini and BroadNet vision models."
url: https://broadrouter.com/tools/image-token-calculator/
lang: en
updated: 2026-11-15
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Image token calculator

Updated 2026-11-15

**In short:** Image tokens depend on each model's rule, not the file size. A 1024 × 1024 image is 1,369 tokens on Claude Sonnet 5.5 (28-pixel patches), 1,229 on GPT-5.5 (32-pixel patches × 1.2), 765 on GPT-4.1 (512-pixel tiles) and 1,120 by default on Gemini 3 and 4. Drop an image or type its size to price it on 18 models.

Free, no sign-up, runs in your browser: nothing you type is sent anywhere.

Image size and volume

Drop an image here, or choose a file

Only the width and height are read, in your browser. Nothing is uploaded.

Width, pixelsHeight, pixelsNumber of imagesOpenAI detailauto (default)highlowGemini media resolutiondefault (1,120)low (280)medium (560)high (1,120)ultra\_high (2,240)ShowAll modelsBroadNet onlyBroadNet and OpenAIBroadNet and AnthropicBroadNet and Google

Image tokens and cost by model
| Model | Tokens per image | Per image | Per 1,000 images | Your images |
| --- | --- | --- | --- | --- |

[Measure your images with $5 free credit](https://inference.broadnet.ai/?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-image-token-calculator&utm_content=tool) ·

Image input only: your text prompt and the model's answer are billed on top. BroadNet prices are its published input prices, synced 2026-11-14; other prices are standard list prices checked 2026-11-14. Rows marked "upstream rule" use the base model's documented rule because BroadNet does not publish its image settings; "up to" rows show a documented maximum.

[Report a wrong price or number](mailto:info@broadnet.ai?subject=Wrong%20price%20or%20number%20on%20Image%20token%20calculator&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Ftools%2Fimage-token-calculator%2F%0A%0AWhat%20looks%20wrong%20(model%2C%20figure%20shown%2C%20correct%20figure%20and%20a%20source%20link%20if%20you%20have%20one)%3A%0A) (email to info@broadnet.ai, with this page's link and your inputs filled in).

## How it works

1.  Type the image width and height in pixels, or drop an image on the box (or choose a file). The page reads its dimensions in your browser; nothing is uploaded.
2.  Enter how many images you will send. Optionally set the OpenAI detail level and the Gemini media resolution.
3.  Read the table: tokens per image under each model's documented rule, the cost per image, per 1,000 images and for your volume, cheapest first.
4.  For BroadNet models, check the label: "upstream rule" means the base model's documented rule; confirm with usage.prompt\_tokens. Copy the link or download CSV.

## The formulas

```
cost per image = image tokens × input price per 1M tokens / 1,000,000

Claude          tokens = ⌈w / 28⌉ × ⌈h / 28⌉, after shrinking to fit
                2,576 px and 4,784 tokens (Claude 4.7 and later)
                or 1,568 px and 1,568 tokens (older models)
OpenAI patches  tokens = ⌈ ⌈w / 32⌉ × ⌈h / 32⌉ × multiplier ⌉, after fitting
                the detail level's size limit and patch budget
OpenAI tiles    tokens = base + tile tokens × number of 512 px tiles, after
                fitting 2048 × 2048 and scaling the short side to 768
Gemini 3 and 4  tokens = 1,120 per image (media_resolution default)
Qwen (upstream) tokens = w' × h' / (32 × 32) + 2, sides rounded to 32 px,
                at most 2,621,440 pixels
Gemma 4         tokens ≤ token budget: 70, 140, 280, 560 or 1,120
DeepSeek        tokens ≤ 1,024 (large images scaled to about 1300 × 1300)
```

Each rule is implemented from the provider's own documentation, and the page reproduces their worked examples: OpenAI's GPT-6 Astra high-detail examples (1024 × 1024 at 1,229 tokens, 2048 × 2048 at 3,000, 4096 × 512 at 2,458), and Anthropic's 1920 × 1080 screenshot at 1,560 tokens on the standard tier and 2,691 on the high-resolution tier. For GPT-4o and GPT-4.1, applying OpenAI's tile steps to a 1024 × 1024 image gives 768 × 768, 4 tiles and 765 tokens. See [vision language model](https://broadrouter.com/glossary/vision-language-model/) and [input and output tokens](https://broadrouter.com/glossary/input-and-output-tokens/) in the glossary.

## Which rule does each model use?

| Model | Input, per 1M tokens | Image token rule | 1024 × 1024 image | Source |
| --- | --- | --- | --- | --- |
| [DeepSeek V4.1 Flash](https://broadrouter.com/models/deepseek-v4.1-flash/) (BroadNet) | $0.175 | DeepSeek's documented cap: up to 1,024 tokens per image. Upstream rule, not published by BroadNet. Upstream rule from DeepSeek's own API docs for deepseek-flash (DeepSeek V4.1 Flash): large images are scaled to about 1300×1300 pixels' worth, small ones scaled up. No exact formula is published, so this is an upper bound. | up to 1,024 tokens | [Docs](https://api-docs.deepseek.com/guides/vision) |
| [Qwen3.8 27B](https://broadrouter.com/models/qwen3.8-27b/) (BroadNet) | $0.175 | 32×32 px per token + 2, at most 2,621,440 pixels (2,560 tokens). Upstream rule, not published by BroadNet. Upstream rule from Alibaba Cloud Model Studio for Qwen3.8 and Qwen3-VL (default max\_pixels). BroadNet's open-weight build may use other limits. | 1,026 tokens | [Docs](https://www.alibabacloud.com/help/en/model-studio/vision) |
| [BroadNet Gemma 4 VL 26B](https://broadrouter.com/models/gemma-4-vl-26b/) (BroadNet) | $0.10 | Gemma 4 token budget: 70, 140, 280, 560 or 1,120 per image. Upstream rule, not published by BroadNet. Upstream rule from Google's Gemma 4 docs: the budget is a hard limit per image, whatever its size. BroadNet does not state which budget its build uses, so the range is shown. | 70 to 1,120 tokens | [Docs](https://ai.google.dev/gemma/docs/capabilities/vision) |
| GPT-6 Astra (OpenAI) | USD 10.00 | 32 px patches × 1.2; high: 2,500-patch budget; auto: original size. Price for prompts up to 272K tokens. | 1,229 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-5.6 Terra (OpenAI) | USD 2.00 | 32 px patches × 1.2; high: 2048 px and 2,500 patches; auto: original size. Price for prompts up to 272K tokens. | 1,229 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-5.6 Luna (OpenAI) | USD 0.20 | 32 px patches × 1.2; high: 2048 px and 2,500 patches; auto: original size. Price for prompts up to 272K tokens. | 1,229 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-5.5 (OpenAI) | USD 5.00 | 32 px patches × 1.2; high: 2048 px and 2,500 patches; auto: 6000 px and 10,000 patches. Price for prompts under 272K tokens. | 1,229 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-5.4 mini (OpenAI) | USD 0.75 | 32 px patches × 1.2; auto and high: 2048 px and 2,500 patches; low: 6,144 patches. | 1,229 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-4.1 (OpenAI) | USD 2.00 | 85 + 170 per 512 px tile, after fitting 2048 px and a 768 px short side. | 765 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| GPT-4o (OpenAI) | USD 2.50 | 85 + 170 per 512 px tile, after fitting 2048 px and a 768 px short side. | 765 tokens | [Docs](https://developers.openai.com/api/docs/guides/images-vision), checked 2026-11-14 |
| Claude Opus 5.5 (Anthropic) | USD 4.00 | ⌈w/28⌉ × ⌈h/28⌉; high-resolution tier: up to 2,576 px and 4,784 tokens. | 1,369 tokens | [Docs](https://platform.claude.com/docs/en/build-with-claude/vision), checked 2026-11-14 |
| Claude Sonnet 5.5 (Anthropic) | USD 2.00 | ⌈w/28⌉ × ⌈h/28⌉; high-resolution tier: up to 2,576 px and 4,784 tokens. | 1,369 tokens | [Docs](https://platform.claude.com/docs/en/build-with-claude/vision), checked 2026-11-14 |
| Claude Haiku 5.5 (Anthropic) | USD 0.10 | ⌈w/28⌉ × ⌈h/28⌉; high-resolution tier: up to 2,576 px and 4,784 tokens. Price for prompts up to 100,000 tokens (USD 0.50 above). | 1,369 tokens | [Docs](https://platform.claude.com/docs/en/build-with-claude/vision), checked 2026-11-14 |
| Claude Haiku 4.5 (Anthropic) | USD 1.00 | ⌈w/28⌉ × ⌈h/28⌉; standard tier: up to 1,568 px and 1,568 tokens. | 1,369 tokens | [Docs](https://platform.claude.com/docs/en/build-with-claude/vision), checked 2026-11-14 |
| Gemini 4 Hydrogen (Google) | USD 1.50 | Fixed per image by media\_resolution (default 1,120). | 1,120 tokens | [Docs](https://aistudio.google.com/docs/media-resolution), checked 2026-11-14 |
| Gemini 3.1 Pro Preview (Google) | USD 2.00 | Fixed per image by media\_resolution (default 1,120). Price for prompts up to 200K tokens. | 1,120 tokens | [Docs](https://aistudio.google.com/docs/media-resolution), checked 2026-11-14 |
| Gemini 3.8 Flash (Google) | USD 0.75 | Fixed per image by media\_resolution (default 1,120). Price through 2026-12-31; Google lists USD 1.50 from 2027-01-01. | 1,120 tokens | [Docs](https://aistudio.google.com/docs/media-resolution), checked 2026-11-14 |
| Gemini 3.5 Flash-Lite (Google) | USD 0.30 | Fixed per image by media\_resolution (default 1,120). | 1,120 tokens | [Docs](https://aistudio.google.com/docs/media-resolution), checked 2026-11-14 |

Prices are standard per-token input prices; batch and cached prices are lower. On BroadNet Inference there is no separate image fee: image tokens bill at the input price shown on the [pricing page](https://inference.broadnet.ai/pricing?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-image-token-calculator&utm_content=rule-table).

## Worked example: 10,000 scanned invoices

A phone photo of an invoice at 2000 × 1500 pixels is 3,888 tokens on Claude Sonnet 5.5 and 3,554 on GPT-5.5 at auto detail. On Qwen3.8 27B, the upstream Qwen rule gives 2,496 tokens: USD 0.44 per 1,000 images at $0.175 per 1M input tokens. On BroadNet Gemma 4 VL 26B, even the largest Gemma 4 budget of 1,120 tokens costs USD 0.11 per 1,000 images. DeepSeek V4.1 Flash is capped at 1,024 tokens per image by DeepSeek's rule, at most USD 0.18 per 1,000 images. Add your prompt and the extracted JSON, which often cost more than the image. The [LLM API cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/) prices the full request.

## How to cut image token costs

-   Resize before you send. Above each model's cap you pay for pixels the model throws away anyway.
-   Crop to the region you need: a receipt total, a table, one form field.
-   Use a low detail level or low media resolution for classification and captions; keep high detail for small text.
-   Measure once: compare `usage.prompt_tokens` with and without the image on 20 real samples, and use the [token counter](https://broadrouter.com/tools/token-counter/) for the text part.

## Questions

### How many tokens is an image?

It depends on the model's rule and the image size, not the file size. A 1024 × 1024 image is 1,369 tokens on Claude Sonnet 5.5, 1,229 on GPT-5.5, 765 on GPT-4.1 and 1,120 by default on Gemini 3 and 4 models, using each provider's documented rule (checked 2026-11-14). Image tokens are billed at the model's normal input price.

### How many tokens is a 1024 × 1024 image in GPT?

On GPT-5.5 and the GPT-5.6 models, OpenAI counts 32 × 32-pixel patches and multiplies by 1.2: 1,024 patches, so 1,229 tokens. On GPT-4o and GPT-4.1 it uses 512-pixel tiles: the image is scaled to 768 × 768, which is 4 tiles, so 85 + 4 × 170 = 765 tokens. With detail set to low, GPT-4.1 charges only the 85 base tokens.

### How does Claude count image tokens?

Anthropic's vision docs (checked 2026-11-14) count 28 × 28-pixel patches: tokens = ⌈width ÷ 28⌉ × ⌈height ÷ 28⌉. Larger images are first shrunk to fit the model's limits: 2,576 pixels and 4,784 tokens on Claude 4.7 and later, 1,568 pixels and 1,568 tokens on older models. The older width × height ÷ 750 rule of thumb is only an approximation: it overestimates large images and underestimates small ones (a 200 × 200 image is 64 tokens, not 53).

### How many tokens does Gemini use per image?

On Gemini 3 and Gemini 4 models the count is set by the media\_resolution setting, whatever the image size. Google's table lists approximately 1,120 tokens by default and at high, 560 at medium, 280 at low and 2,240 at ultra\_high (per content item only). Google's token-counting page also gives a general rule: 258 tokens for images up to 384 pixels on both sides, and 258 per 768 × 768 tile above that.

### Does resizing an image reduce its token cost?

For patch-based models (Claude, GPT-5.x, Qwen), yes: fewer pixels means fewer patches, up to each model's cap. For fixed-budget models it does not: Gemini 3 and 4 use the media\_resolution count, Gemma 4 uses its token budget, and DeepSeek scales every large image to about the same size. Resize to the smallest size that still reads your text; very small text needs more pixels.

### How do I measure image tokens on BroadNet Inference?

BroadNet does not publish image-token settings for its builds, so this tool shows the upstream model's documented rule. To measure, send the same prompt once with and once without the image and subtract the two usage.prompt\_tokens values. On BroadNet, image tokens are billed as input tokens at the model's input price. [How to count tokens before sending](https://broadrouter.com/blog/count-tokens-before-sending/).

## Go deeper

-   [Cheapest vision LLM API: cost per image and per page](https://broadrouter.com/blog/cheapest-vision-llm-api/)
-   [Extract data from documents with a vision LLM](https://broadrouter.com/blog/extract-data-from-documents-with-vision-llm/)
-   [Read Arabic invoices with a vision model](https://broadrouter.com/guides/read-arabic-invoices-with-vision/)
-   [Glossary: vision language model](https://broadrouter.com/glossary/vision-language-model/)
-   [Glossary: multimodal](https://broadrouter.com/glossary/multimodal/)

## More free tools

-   [**LLM API cost calculator**Price a workload on every model at once, with cache hits, reasoning and a flat-plan check.](https://broadrouter.com/tools/llm-api-cost-calculator/)
-   [**Speech-to-text cost calculator**Hours, calls or voice notes to a monthly transcription bill, against your current provider.](https://broadrouter.com/tools/speech-to-text-cost-calculator/)
-   [**LLM token counter**Exact token counts with each model's real tokenizer, with a token view and cost.](https://broadrouter.com/tools/token-counter/)
-   [**Arabic token counter**Arabic vs English token counts per tokenizer: the "Arabic tax" in tokens and money.](https://broadrouter.com/tools/arabic-token-counter/)
-   [**Tokens to words converter**Tokens ↔ words ↔ characters ↔ pages, by language and content type.](https://broadrouter.com/tools/tokens-to-words/)
-   [**Context window calculator**Will it fit? Window used per model, room left for output, cost to send.](https://broadrouter.com/tools/context-window-calculator/)
-   [**Flat-rate vs per-token LLM cost calculator**Break-even between an unlimited plan and paying per token, per agent.](https://broadrouter.com/tools/flat-rate-vs-per-token-calculator/)
-   [**Prompt caching savings calculator**Bill with and without caching, by prefix share and hit rate.](https://broadrouter.com/tools/prompt-caching-calculator/)
-   [**Self-hosting vs API cost calculator**GPU rental against your current API and BroadNet per-token and flat-plan prices: cost per 1M tokens and break-even volume.](https://broadrouter.com/tools/self-hosting-vs-api-calculator/)
-   [**Embedding cost calculator**Index, update and query costs for a corpus at OpenAI, Google, Voyage, Mistral and Jina list prices.](https://broadrouter.com/tools/embedding-cost-calculator/)
-   [**LLM rate limit and concurrency calculator**Which limit binds first: RPM, TPM or concurrency, with Little's law.](https://broadrouter.com/tools/llm-rate-limit-calculator/)
-   [**JSON schema generator for LLM structured output**Sample JSON to strict schema, Pydantic, Zod and a ready request.](https://broadrouter.com/tools/json-schema-generator/)
-   [**OpenAI-compatible API request builder**One request, copied as curl, Python, Node or the OpenAI SDKs.](https://broadrouter.com/tools/api-request-builder/)
-   [**Audio file splitter for speech-to-text limits**Chunk count, overlap and copy-ready ffmpeg commands to fit a transcription file-size limit.](https://broadrouter.com/tools/audio-splitter-ffmpeg/)
-   [**Agent run cost estimator**Context growth per step, total tokens and cost of one agent run, with a DeepSeek session comparison.](https://broadrouter.com/tools/agent-run-cost-estimator/)
-   [**OpenAI to BroadNet migration helper**Paste OpenAI SDK code; get base URL, key and model edits, a diff and the checks that remain.](https://broadrouter.com/tools/openai-to-broadnet-migration/)
-   [**Arabic text normalizer**Tashkeel, tatweel, alef, ya, ta marbuta, digits and invisible characters, with a matching Python function.](https://broadrouter.com/tools/arabic-text-normalizer/)
-   [**RAG chunking calculator**Chunks, embedding tokens, input per query, context check and monthly LLM cost for a RAG pipeline.](https://broadrouter.com/tools/rag-chunking-calculator/)
-   [**max\_tokens calculator for reasoning models**Answer length + reasoning budget + margin = a max\_tokens that does not cut the answer off.](https://broadrouter.com/tools/reasoning-token-budget/)
-   [**LLM batch job planner**Run time, binding limit, cost per model and the flat sessions needed to finish a big job by a deadline.](https://broadrouter.com/tools/llm-batch-job-planner/)
-   [**LLM JSON output validator**Parse errors by line and column, safe repairs, cut-off detection and JSON Schema checks for model output.](https://broadrouter.com/tools/llm-json-output-validator/)
-   [**Prompt token diff**Two prompt versions side by side: changed lines, exact token delta and the monthly cost difference.](https://broadrouter.com/tools/prompt-token-diff/)

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-image-token-calculator&utm_content=page-cta) ·

**Sources**

-   [BroadNet Inference machine-readable prices (pricing.json)](https://inference.broadnet.ai/pricing.json?utm_source=broadrouter&utm_medium=referral&utm_campaign=tools-image-token-calculator&utm_content=sources)
-   [OpenAI vision guide: patch and tile image tokens, checked 2026-11-14](https://developers.openai.com/api/docs/guides/images-vision)
-   [OpenAI API pricing, standard tier, checked 2026-11-14](https://developers.openai.com/api/docs/pricing)
-   [Anthropic vision docs: resolution and token cost, checked 2026-11-14](https://platform.claude.com/docs/en/build-with-claude/vision)
-   [Anthropic: how Claude resizes images (reference implementation), checked 2026-11-14](https://platform.claude.com/docs/en/build-with-claude/vision-coordinates)
-   [Anthropic pricing, checked 2026-11-14](https://platform.claude.com/docs/en/about-claude/pricing)
-   [Google Gemini API media resolution, checked 2026-11-14](https://aistudio.google.com/docs/media-resolution)
-   [Google Gemini API token counting, checked 2026-11-14](https://aistudio.google.com/docs/tokens)
-   [Google Gemini API pricing, checked 2026-11-14](https://aistudio.google.com/docs/pricing)
-   [Google Gemma 4 vision docs: token budgets, checked 2026-11-14](https://ai.google.dev/gemma/docs/capabilities/vision)
-   [Alibaba Cloud Model Studio: Qwen image token rule, checked 2026-11-14](https://www.alibabacloud.com/help/en/model-studio/vision)
-   [DeepSeek API vision guide, checked 2026-11-14](https://api-docs.deepseek.com/guides/vision)
