Part 2 of 4 in Token reduction. Previous: The Cache Is Not the Only Token Budget · Next: Our Panel Said Enforced for Six Days
A 900 by 300 text screenshot cost 363 vision tokens when we sent it as a picture. Its recognised text cost 27. The model reads the same words from either, so the picture cost about 13 times more for nothing.
We found this while working through a panel of token cuts. Of the 22 cuts active on 26 July, one was written with a measurement behind it. It is the only one that a hook now enforces.
Pixels are billed by size, not by content
Vision input is priced by pixel dimension. The panel records a check on the format question: converting a PNG to JPEG or WebP saves disk and bandwidth, but it does not change the vision token count. Only resolution or dropping the image changes the count. We left that line unticked on purpose, because it is information, not a cut.
So the lever is not the file type. It is whether the picture needs to be sent at all.
A hook that denies the pixel read
The cut is a PreToolUse hook, image_read_gate.py, that denies a read of a picture containing text. The denial carries the recognised text instead, so the words still reach the model. A picture with no text but a size above the cap is denied too, and the hook hands back a copy fitted to the cap. The escape hatch is IMG_READ_ALLOW=1, meant for visual checks only. If the recogniser fails, the hook fails open and the read goes through.
We did not open the hook source for this post. The claims about its behaviour come from the panel line that describes it.
The oversized case is the expensive one
A 2560 by 1107 send billed 3,680 tokens. The encoder received the picture resized to 1568 by 678, which the panel counts as 1,400 tokens. The gap is 2,280 tokens, which is 62 percent of the bill, spent on pixels the encoder never used.
The receipt records this as measured. It does not separate the resize step from the upload step, so the cause is inferred from the numbers, not isolated.
What counts as a saving
- The input token count from the usage field, for the same picture sent two ways.
- A count of how many text images were denied and replaced by their text.
What does not count: a smaller file on disk. A file that is 40 percent smaller can cost the same number of tokens if its pixel dimensions do not change.
What we did not measure
We have one screenshot. Text density, font size and language will move the 363 and the 27, and we have not tested any of them. We also do not know how many image reads a working day contains that carry text, nor how many the gate denies. Without those two counts, the gate's total saving is unknown.

Comentários
Sem comentários ainda.