Hot AI News

Vision tokens: How AI models turn pages, images and video into billable units

AI models do not read pictures as pictures. They cut them into small pieces called tokens, and the number of pieces sets the bill, the speed and how much detail the model sees.

Vision tokens: How AI models turn pages, images and video into billable units
Photo illustration: Aiholics

A vision token is a small chunk of an image that a multimodal AI model reads the way it reads a word. A page, photo or video frame is converted into a set of these chunks, and the model’s cost, speed and level of detail all depend on how many chunks there are. Settings called media resolution decide that number.

A 100-page report, read two ways

Picture a 100-page PDF with one chart on page 41. If the model looks at every page as a picture, you pay for 100 pictures. If it first skims the text, finds the chart page, and then looks only at that page, you pay for far less.

The arithmetic is simple. Google’s documentation lists 560 tokens per PDF page at medium resolution for Gemini 4 and Gemini 3 models, plus the page’s native text. A hundred pages at that setting is about 56,000 image tokens. Three pages is about 1,680. The text layer comes on top in both cases.

This is the idea behind Google’s new slicing controls, which we covered in Gemini API now bills only the pages and frames it reads. Slicing chooses which pages to load. Media resolution, the subject here, decides how many tokens each chosen page costs.

Advertisements

Cutting a picture into a grid of patches

Language models read text as tokens, pieces of words. Images have no words, so the model needs another way to chop them up. The common answer is a grid. The picture is divided into equal squares called patches, and each patch becomes one unit in the sequence the model processes.

Think of a mosaic. Each tile is small and simple, but laid out in order the tiles carry the whole picture. Each patch is turned into a list of numbers, and the model also receives a marker for where the patch sat in the image, so it knows which tile came from the top left.

The number of patches follows a plain rule. Smaller squares mean more patches, and a bigger image means more patches. A 224 by 224 pixel image cut into 16 by 16 pixel squares gives 14 by 14, or 196 patches. Halve the square’s side and the count quadruples.

Where the patch idea came from

The grid approach was popularized by the Vision Transformer, or ViT, from Google Research’s Brain team. Alexey Dosovitskiy and eleven co-authors first posted the paper, titled “An Image is Worth 16×16 Words,” in October 2020, and it appeared at ICLR 2021. Before it, image models mostly used convolutional networks, which scan a picture with small sliding filters.

The authors reshaped an image into a sequence of flattened patches, projected each one to a fixed width, added learnable position embeddings, and fed the sequence to a standard Transformer, the same architecture used for text. They wrote that the sequence length is inversely proportional to the square of the patch size, so smaller patches are computationally more expensive.

The paper also reported that, when pretrained on large datasets, ViT matched or beat leading convolutional networks while needing fewer compute resources to train. It gave later multimodal models a shared design: images and text can both become sequences of tokens in one model.

Advertisements

The dial that sets the price per page

Commercial APIs expose this trade-off as a dial. In the Gemini API it is the media_resolution parameter, which sets the maximum number of tokens allotted to a media input. Google’s documentation gives these figures for Gemini 4 and Gemini 3 models:

SettingImageVideo, per framePDF, per page
low28070280 + native text
medium56070560 + native text
high11202801120 + native text
ultra_high2240not availablenot available

Audio does not scale: the page lists 25 tokens per second at every level. The documentation also says the token counts for the default setting differ significantly between Gemini 4/3 and earlier Gemini models, so figures from older guides may not carry over.

Google’s own recommendations are specific. For most image analysis it suggests high. For PDFs it says quality typically saturates at medium and that high rarely improves OCR (text recognition) on standard documents. For video it suggests low, and high only for text-heavy footage where small details matter. It also notes that ultra_high is meant for cases such as computer use, where an agent reads a screen.

You can set the level per content item on these models, so a dense diagram can get high while a decorative photo in the same request gets low. The slicing controls, with options such as start_page, end_page and the content layers page_text and page_image, work alongside this setting. Per Google’s docs, the two are independent: one chooses what is loaded, the other how finely it is seen.

What is lost when the grid gets coarse

Fewer tokens means less detail, and the loss is not always obvious. A low setting can blur small print, thin lines in a chart, or the tiny text in a screenshot. The model may then answer confidently from a partial view. Google’s documentation says to test the effect of different resolution settings on your own material, and that advice is sound.

There are other limits. A token budget is a maximum, not a measure of understanding, so more tokens do not guarantee a better reading. Patch grids also cut across objects at arbitrary lines. A letter or a table border can be split between two patches, which is one reason a text layer is useful. Native text avoids the image step for words that already exist as text, and the page-text option exists for that case.

Cost savings need care too. The early numbers Google cites come from partners such as Vercel and LiteLLM and describe their own workloads. They are not benchmarks, and your savings depend on your files, page counts and settings.

Advertisements

What to watch as models read more than text

Three things are worth following. First, token budgets are becoming per-item choices rather than one global setting, which lets agents spend detail only where needed. Second, the pattern of looking cheaply first and zooming in later, which Google’s own example shows by reusing one file reference across turns, is likely to spread to other providers. Third, token counts for the same image vary by model generation, so any cost estimate should be re-checked after a model upgrade.

For developers, the practical habit is to treat a page or frame as something with a price. Ask which pages are needed, which layer carries the answer, and what the lowest setting is that still reads the content correctly. For everyone else, the takeaway is that when an AI “looks” at a document, it is counting tiles, and the tile count is a choice that someone, often a developer, makes.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Daniel ReedAI Research, Safety & Ethics Analyst

Daniel Reed currently works as an AI Research, Safety & Ethics Analyst at Aiholics, writing about how changes in artificial intelligence are affecting and will affect scholarship,…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like