Gemini API ships server-side file slicing: pay tokens only for the pages your agent reads

zacharynado · x · 2026-11-24

Google announced native file slicing controls in the Gemini API: pass dense PDFs, Office/OpenDocument files, audio, and video directly to Gemini 4 models and slice just the pages, cells, or timestamps you need server-side.

Key points:

Developer bcaine notes his Harness product already uses it, so agents upload files once and only pay for what they look at. Available today in AI Studio and the Gemini platform across all Gemini 4 models.

Original post →

More from coding & agent

coding & agent channel →