Google has added file-slicing controls to the Gemini API, letting developers send only selected pages, spreadsheet ranges or media segments for a model to inspect. That could cut token costs and spare developers the business of building their own file-slicing machinery.
Google DeepMind Watch analysis
What happened
The controls are available in Google AI Studio and the Gemini platform, according to Google’s announcement. They work across Gemini 4 models and support PDFs, Microsoft Office and OpenDocument files, as well as audio and video.
Our top picks
- Choose the pages and layers in a document
Set a page range, resolution and whether the model gets text or page images. - Pick spreadsheet tabs and cells
Select a worksheet and cell range, with control over values, formulas and visuals. - Clip audio and video
Specify time intervals and choose which content layers, such as transcripts, frames or audio, to process. - Upload once, reuse the file
A Files API URI can be used across turns and tool calls, rather than uploading the same file again. - Pay for what the model inspects
Google says tokens are billed for the selected portions, not the entire large file.
Why it matters
A long report or recording can contain a few useful pages and a great deal of expensive context. The new controls let developers skim broadly, then ask Gemini to examine a particular section or clip in more detail. That is a practical way to keep an agent focused, and to avoid sending an entire spreadsheet when the answer lives in one corner of it.
Google says the API handles rendering and slicing server-side. Developers therefore need not run separate PDF, office-file or video-processing tools in their own client environment just to prepare material for the model. The existing file-size and page limits still apply, so this is selective processing, not an invitation to upload the entire archive of human paperwork.
Our read
This is a useful improvement for developers building agents around dense documents and long recordings: finer control over what gets processed, with token costs tied to the selected material. The best bit may be the unglamorous one: fewer bespoke conversion steps between a file and a useful answer. The question is how well the controls behave in real workflows, not whether the API can list a lot of file formats.
What to watch
- How much token use changes in real document-heavy workflows.
- Whether developers make good use of the server-side slicing in multi-turn agents.
- How the controls perform on complex layouts, formulas and long media files.
Discussion spark: Would you trust an agent to choose which parts of a large file to inspect, or should developers define those slices themselves?
Sources and evidence
- Introducing file slicing controls in the Gemini API – blog.google (23 November 2026, 18:12 UTC)
not affiliated with, endorsed by, or operated by Google or Google DeepMind