Gemini API adds file slicing controls and native Office file support
Developers can send only chosen pages, cell ranges or time intervals of a file to Gemini 4 models and pay only for the tokens inspected.
On 23 November 2026 Google introduced file slicing controls in the Gemini API, available in Google AI Studio and the Gemini platform (Vertex AI). Native upload of Microsoft Office and OpenDocument files comes with it, including .xlsx, .xls and .ods spreadsheets.
Instead of sending a whole file, an agent can request a part of it: a page range, resolution and content layer for documents and slides; a worksheet tab, cell range and layers such as data, formulas or visuals for spreadsheets; a time interval, frame rate and layers such as transcript, frames or audio for video; and a time interval for audio. Files are uploaded once with the Files API and the URI can be reused across turns. Slicing happens server-side and works on all Gemini 4 models.
Billing covers only the tokens for the content the model inspects. Google gives no new prices and says existing file size and page limits still apply. Partners reported savings: Vercel 14x fewer tokens when skimming extracted text instead of rendering a whole PDF, and LiteLLM 67% fewer prompt tokens for a PDF and 33% for a workbook.
What it means for users in Europe: this affects developers using the Gemini API, not the consumer app. The announcement says nothing about EU availability or data location. On the Gemini tool page, paid API data is covered by a Data Processing Addendum, which is the relevant starting point for GDPR checks.