Image & PDF Token Calculator
Inspect exact pixel dimensions locally in your browser or test multi-page PDF workloads to compare vision token counts and per-call API spend across Claude, GPT-6.2, Gemini 4, and open-weight VLMs.
Reads naturalWidth × naturalHeight in your browser—never sent to any server.
1568px max edge · ~1,600 tok cap/img
High detail · 85 + 170 × 512px tiles
258 tok base (≤384px) · 768px tiles
| PDF Support | 1,000-Call Cost | |||||
|---|---|---|---|---|---|---|
GPT-6 Luna OpenAI · 1.05M ctx · $0.1/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0001 | $0.14 |
GPT-6 Luna Pro OpenAI · 1.05M ctx · $0.1/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0001 | $0.14 |
Claude Haiku 5.5 Anthropic · 1M ctx · $0.1/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0002 | $0.19 |
GPT-5.4 Nano OpenAI · 400K ctx · $0.2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0003 | $0.27 |
Llama 4 Scout Meta · 1.31M ctx · $0.1/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0003 | $0.33 |
DeepSeek V4.1 Flash DeepSeek · 1.05M ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
Qwen3.8 Flash Qwen · 1M ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
Mistral Small 4 Mistral · 262K ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
MiniMax M3.1 Flash MiniMax · 1.05M ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
Qwen3.8 Omni Flash Qwen · 1M ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
GLM 5.3 Flash Z.ai · 1.05M ctx · $0.15/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0005 | $0.50 |
Gemini 3.5 Flash Lite Google · 1.05M ctx · $0.3/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0005 | $0.54 |
GPT-5.4 Mini OpenAI · 400K ctx · $0.75/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0010 | $1.02 |
Llama 4 Maverick Meta · 524K ctx · $0.35/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0012 | $1.16 |
GLM 5.3 FlashX Legal Z.ai · 1.05M ctx · $0.37/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0012 | $1.23 |
GLM 5.3 FlashX Z.ai · 1.05M ctx · $0.37/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0012 | $1.23 |
GPT-6.1 Terra OpenAI · 1.05M ctx · $1/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0014 | $1.35 |
GPT-6.1 Terra Pro OpenAI · 1.05M ctx · $1/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0014 | $1.35 |
Gemini 3.8 Flash Google · 1.05M ctx · $0.825/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0015 | $1.48 |
Mistral Large 4 Mistral · 1.05M ctx · $0.7/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0023 | $2.33 |
Gemini 4 Hydrogen Google · 1.05M ctx · $1.5/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0027 | $2.70 |
GPT-6.2 Sol OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-6.2 Sol Pro OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-6.1 Sol Pro OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-6.1 Sol OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-6 Sol Pro OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-6 Sol OpenAI · 1.05M ctx · $2/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0027 | $2.71 |
GPT-5.4 OpenAI · 1.05M ctx · $2.5/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0034 | $3.39 |
Gemini 4 Argon Google · 1.05M ctx · $2/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0036 | $3.60 |
Gemini 4 Carbon Google · 1.05M ctx · $2/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0036 | $3.60 |
Claude Sonnet 5.5 Anthropic · 1M ctx · $2/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0037 | $3.70 |
Grok 4.20 xAI · 2M ctx · $1.25/1M in | Native PDF | 3,072 | 0 | 3,322 | $0.0042 | $4.15 |
Qwen4 Max Qwen · 1M ctx · $1.425/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0047 | $4.73 |
Gemini 4 Neon Google · 1.05M ctx · $3/1M in | Native PDF | 1,548 | 0 | 1,798 | $0.0054 | $5.39 |
GPT-5.6 Sol OpenAI · 1.05M ctx · $4/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0054 | $5.42 |
Claude Sonnet 4.6 Anthropic · 1M ctx · $3/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0056 | $5.55 |
Grok 4.7 xAI · 500K ctx · $2/1M in | Native PDF | 3,072 | 0 | 3,322 | $0.0066 | $6.64 |
Kimi K3.1 Pro Moonshot · 1.05M ctx · $2/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0066 | $6.64 |
Claude Opus 5.5 Anthropic · 1M ctx · $4/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0074 | $7.40 |
Claude Opus 4.8 Anthropic · 1M ctx · $5/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0093 | $9.25 |
GPT-6.2 Astra OpenAI · 1.05M ctx · $8/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0108 | $10.84 |
GPT-6.2 Astra Pro OpenAI · 1.05M ctx · $8/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0108 | $10.84 |
Qwen3.8 Max Prime Qwen · 1M ctx · $4/1M in | Image / OCR | 3,072 | 0 | 3,322 | $0.0133 | $13.29 |
GPT-6 Astra OpenAI · 1.05M ctx · $10/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0136 | $13.55 |
GPT-6 Astra Pro OpenAI · 1.05M ctx · $10/1M in | Native PDF | 1,105 | 0 | 1,355 | $0.0136 | $13.55 |
Claude Fable 5.2 Anthropic · 1M ctx · $8/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0148 | $14.80 |
Claude Fable 5.1 Anthropic · 1M ctx · $10/1M in | Native PDF | 1,600 | 0 | 1,850 | $0.0185 | $18.50 |
How it works
- 1Drop any local screenshot or scan into the inspector—your browser reads naturalWidth × naturalHeight via an object URL with zero server upload—or pick a standard resolution preset.
- 2Adjust image count, OpenAI detail mode (High 512px tiling vs Low flat 85 tokens), PDF page count, PDF layout density, and optional accompanying text prompt tokens.
- 3Compare Anthropic (1568px scaling), OpenAI (512px tile math), and Google (258-token base) side-by-side in the KPI cards.
- 4Filter the full vision catalog by vendor or Native PDF support to check 1-call and 1,000-call API costs before shipping.
Frequently asked questions
How does Claude scale images and count vision tokens?
Anthropic downscales any image whose longest edge exceeds 1,568 pixels while preserving aspect ratio, then bills roughly ceil((width × height) / 750) tokens—capped around 1,600 tokens per image. Sending 4K screenshots at native resolution wastes bandwidth without buying extra tokens.
How does OpenAI's 512px tile pricing work for High vs Low detail?
In Low detail mode, OpenAI charges a flat 85 tokens regardless of resolution. In High detail mode, images are first fit inside 2048×2048, scaled so the shortest side is at most 768px, and divided into 512×512 tiles billed at 85 base tokens plus 170 tokens per tile.
Why does Gemini charge 258 tokens per image or tile?
Google's Gemini vision pipeline encodes images up to 384×384 as a flat 258 tokens. Larger images are split into 768×768 tiles, each billed at 258 tokens, which makes Gemini especially cost-efficient for medium-resolution UI captures and multi-page documents.
How do native PDF models differ from image-only vision models?
Models advertising the 'file' input modality accept PDFs natively—for example, Claude rasterizes pages alongside extracted text (~1,600 tokens/page at mixed density), OpenAI averages ~900 tokens/page, and Gemini uses a ~258-token base per page. Image-only models require your pipeline to extract text via OCR or convert pages into PNGs first.
Related tools
View all tools →Project monthly API spend using request volume, input/output ratios, and cache hit rates.
Check 5-minute and 1-hour cache write break-even thresholds when reusing large multimodal prefixes.
Count text prompt tokens and 1M context headroom for Claude Fable 5.2 and Claude 5.5.