What this is about
When an agent needs to know what is on a screen, it has two choices. It can take a picture of the screen, a screenshot, and look at the picture. Or it can read the words on the screen as text.
Both give the model the same information when the screen is mostly words. They do not cost the same. This article explains the gap, shows our one measured case, and says when a picture is still the right tool.
Why it matters
Agents often work with screens: a web page, an error window, a settings dialog. If every screen is sent as a picture, the bill grows fast, and the picture takes up room in the model's view that could hold your task.
Choosing text when text is enough is one of the simplest ways to cut cost. Choosing a picture when you need to see layout or colour is the right call. The skill is knowing which is which.
How it works
A picture is billed by size
A model that can look at images turns the picture into small pieces called vision tokens. The number of pieces depends on the picture's dimensions in pixels. It does not depend on how much of the picture is words, or on the file type.
So a tidy PNG and a small JPEG of the same screen cost the same number of tokens, if the dimensions are the same. A smaller file on disk is not a saving. Only fewer pixels, or no picture, changes the bill.
Our measurement
A 900 by 300 pixel screenshot of text cost 363 vision tokens as a picture. The words in it, recognised and sent as text, cost 27 tokens. The model can read the same words from either. The picture cost about 13 times more for nothing.
We have only one such screenshot. Text density, font size and language would all move the numbers, and we have not tested them. Treat 13 times as an example, not a law.
The oversized case is worse
Pictures that are too large are resized before the model sees them. In one case, a 2560 by 1107 picture billed 3,680 tokens. The encoder received it shrunk to 1568 by 678, which counts as 1,400 tokens. The gap is 2,280 tokens, 62 percent of the bill, spent on pixels the model never used.
How text gets off the screen
A program called OCR, short for optical character recognition, reads the words from a picture and returns them as text. Our rule: when an agent tries to read a picture that contains text, a hook denies the read and returns the recognised text instead. The words still reach the model.
For web pages there is an even better route. A page already is text underneath, called the HTML and the page structure. An agent can ask a browser tool for that text directly and skip the picture altogether.
When a picture is the right choice
Use a picture when what you need is not words.
- Layout. Is the button hidden behind a banner? Does the page overflow on a phone?
- Colour and style. Does the card match the design?
- Charts and images. The meaning is in the shape, not in text.
- When text is wrong or missing. If OCR returns nothing, a person may need to look.
For these, the picture is the evidence. We also keep an escape hatch for visual checks, so the gate that denies picture reads can be switched off for a deliberate look.
A simple decision
- Is the information words? Ask for text.
- Is it a web page? Ask for the page structure, not a screenshot.
- Does it depend on how it looks? Send a picture, at the smallest size that shows the problem.
- Is the picture huge? Shrink it first. The service will anyway, and you pay before it does.
A worked example
Say an agent must find out why a settings dialog shows an error. The error is one sentence of red text. As a picture, the agent pays for every pixel of the dialog, the buttons, the empty space and the border. As text, it pays for one sentence. If the agent then needs to know whether the red text overlaps a button, it should ask for a picture, once, cropped to that area. Text first, picture second, and small, is the cheap order.
Glossary
- Screenshot: a picture of what is on a screen.
- Vision token: a unit the model uses to measure an image. The count depends on pixel size.
- OCR: software that reads words from a picture and returns them as text.
- Pixel: one dot of a picture.
- Hook: a small program that runs before an action and can block or change it.
- Escape hatch: a deliberate way to switch a check off for one call.
Try it
- See the real numbers. Our blog has "A Screenshot Cost 363 Tokens as Pixels and 27 as Text," with the full story of the check and what we did not measure.
- Try your own comparison. Take a screenshot of a page of text on your computer and ask an assistant to read it, then paste the same text and ask the same question. Many assistants show a token count or a usage figure. Compare the two.
- Read before you look. Next time you debug a page with an assistant, try giving it the error text before the screenshot.

Commenti
Ancora nessun commento.
Accedi per commentare.