Tony Lee
Tony Lee
Index
2 min read 2026

Sending Code as Images Cut Token Cost About 60%

Dense pixel fonts pack ~40k characters into one Anthropic image bill. pxpipe production logs show ~59% savings, with caveats: Fable 5 only, and keep IDs as text.

While people were pushing hard to use Fable before a cutoff window, someone tried a joke: send a screenshot of code instead of the code. Token usage dropped by more than half. Three things explain it.

Image tokens can be cheaper than text tokens

Anthropic bills a 1568px image as a fixed cost regardless of how many characters sit inside. Render dense pixel fonts and one image can hold on the order of 40,000 characters. As text that might be about 10,000 tokens; as an image it can land near 3,279. That is optical compression in the same spirit as DeepSeek-OCR demos, applied to billable context. (analysis, background)

Production logs: about 59% lower cost

pxpipe reported production numbers over 13,709 requests. A bill that would have been about $100 landed near $41. On compressed requests alone the saving reached about 72%.

Quality did not collapse in their SWE-bench Lite sample of 10 tasks: full marks before and after the setting.

Still Fable 5 only

On 100 random-number tasks that cannot be memorized, Fable 5 scored 100 on both text and image renders. Opus dropped to 93 on images. On 12-digit hex recovery from images, Fable 5 hit 13/15 and Opus 0/15. That is why the approach is blocked on Opus in their tooling.

When extraction fails, models often invent a plausible wrong answer instead of erroring cleanly. Keep IDs, hashes, and other brittle strings as text.

Cost control used to mean prompt compression. Pixel compression is now another lever. npx pxpipe-proxy is enough to try the path today. Treat it as a measured experiment on Fable-class models, not a universal default for every stack.

Join the newsletter

Get insights on the latest AI.