VisionSqueezer
Providers

Gemini (Large Tiles)

How Google Gemini tiles images and why snapping to 768px boundaries halves the cost.

How Gemini bills images

Google Gemini uses large tiles:

  • Images ≤ 384×384 cost a flat 258 tokens.
  • Larger images are tiled on a 768×768 grid at 258 tokens per tile.

The doubling trap

Because tiles are huge, a tiny overlap is brutally expensive. Crossing a 768px boundary by even one pixel adds a whole tile:

ImageTilesTokens
768×7681258
800×7682×1516

An 800px-wide image costs double a 768px one for 32 extra pixels of width.

Optimization strategy

Aggressively snap dimensions down to the nearest 768px boundary. Squeezer trims to the largest size that still fits inside the current tile count.

Terminal
vision-squeezer image.png --model gemini
If your content fits within 384×384, Squeezer will keep it under that threshold to hit the flat 258-token rate — the cheapest possible image on Gemini.