Background
AI models can read documents, spreadsheets, audio and video, but a single file often holds far more than a given task needs. Google said that developers no longer have to flatten files to plain text or ingest whole files up front in order to let an agent inspect part of a file. On 23 November 2026, Google introduced file slicing controls in the Gemini API to make that possible [1].
What happened
Google introduced native file slicing controls in the Gemini API. The controls let developers specify targeted pages, sheet ranges and media segments, which the model then loads server-side [1]. Google said the controls are available today through the API in Google AI Studio and the Gemini platform [1].
Key details
Slicing options are organized by range, layer, resolution and frame rate, and they cover documents, spreadsheets, audio and video [1].
The same release adds native upload support for Microsoft Office and OpenDocument formats, alongside PDFs, audio and video [1].
When processing options are omitted, documents and slides default to layout-preserving page images. Spreadsheets include evaluated values, formulas and sheet names across all tabs [1].
Developers are billed only for the tokens of the parts of a file that Gemini inspects [1]. A token is the unit of text or media that a model processes, and it is the basis for billing here.
Native file slicing works across all Gemini 4 models. Existing file size and page limits still apply [1].
Files uploaded to the Files API can be referenced by URI on a user turn or inside a function response, which is a result that a tool returns to the model [1].
Why it matters
Before this change, the usual way to let an agent check part of a file was to convert the file to plain text or to load all of it first. Google's controls let the model work with the specific pages, sheet ranges or media segments it needs. Because billing covers only the parts that Gemini inspects, the amount of processed content and the amount billed both follow what the model actually reads [1].
Sources
- 1
Cite this page: Google adds file slicing controls and Office file support to the Gemini API. TellWorld, https://www.tellworld.net/news/gemini-api-file-slicing-2026. Updated 2026-11-24