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:
- Upload once via the Files API, slice across turns
- Skim cheap (pagetext / transcripts), then zoom in at high resolution
- Pay tokens only for the slices Gemini inspects; zero local ffmpeg or PDF-rendering bloat
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.
More from coding & agent
- Study: as AI absorbs entry-level work, how do junior engineers become seniors? — rseroter · 2026-11-24
- Yacine shares RL training trick: top-p sampling with Keep Sampling Mask replay — yacinelearning · 2026-11-24
- Download your LinkedIn connections data now — it's useful for your Claude — brezina · 2026-11-24
- Nous Portal launches with 200+ models, 20% off Anthropic and OpenAI for a week — NousResearch · 2026-11-24
- Founder shows AI coding setup 'Viktor Code' shipping 228 PRs in 2 hours — tobowers · 2026-11-24
- Intent's new notch lets you record and annotate screen issues for AI agents — LukeW · 2026-11-24