Gemini API adds file slicing controls to load only the pages, cells and segments you need
On November 23, 2026 (UTC), Google launched file slicing controls in the Gemini API, along with native upload support for Office and OpenDocument files. Developers can pass PDFs, Office files, audio and video directly and request only specific pages, spreadsheet cells, media segments and layers, with tokens billed only for the parts Gemini inspects.
At 16:12 UTC on November 23, 2026, Google announced on its official blog that the Gemini API now offers file slicing controls across Google AI Studio and the Gemini platform, alongside native upload support for Microsoft Office and OpenDocument formats. Google AI Studio lead Logan Kilpatrick later shared the update on X.
What it does
Developers can now pass PDFs, Office files (docs, slides, spreadsheets), audio and video directly to the Gemini API and request only the pages, spreadsheet cells, media segments and layers they need. Slicing happens server-side, so the model loads only the relevant parts and tokens are billed only for what Gemini inspects. Google says this reduces token costs for large files.
- Upload a file once with the Files API and reuse its URI across turns and tool calls;
- Agents can specify which parts of a file to inspect directly inside a function response;
- Skim first with extracted text, low-res previews or transcripts, then spend high-resolution tokens only on the charts, dense layouts and frames that matter.
Controls
- Documents and slides (PDF, Office, OpenDocument): page range, resolution (low, medium or high), and content layers (page text or page image);
- Spreadsheets (.xlsx, .xls, .ods): worksheet tab and cell range, resolution, and content layers (data, formulas and visuals);
- Video: time intervals, fps and resolution (low or high), and content layers (transcript, frames or audio);
- Audio: time intervals.
When processing options are omitted, documents and slides default to layout-preserving page images, and spreadsheets include evaluated values, formulas and sheet names across all tabs.
Availability
The feature works across all Gemini 4 models, and existing file size and page limits still apply. It is available today via the API in Google AI Studio and the Gemini platform.