Gemini API adds file slicing controls and native Office file uploads
Google launched file slicing controls in the Gemini API on November 23, 2026, letting developers request only specific pages, sheet ranges or media segments of an uploaded file and pay tokens only for the parts the model inspects, plus native upload of Microsoft Office and OpenDocument files.
What happened
- Documents and slides can be limited to a page range, a resolution (low, medium or high) and content layers (page text or page image).
- Spreadsheets can be limited to a worksheet tab and cell range, with data, formulas and visuals as separate layers; video and audio can be clipped by time, and video by frame rate and resolution.
- An agent can request a slice from inside a function response, and a file uploaded once through the Files API can be reused across turns.
- Google says slicing works across all Gemini 4 models and is available now in Google AI Studio and the Gemini platform; existing file size and page limits still apply.
Why it matters: Apps and agents that read long PDFs, decks, workbooks or recordings can skim cheaply and zoom in only where needed, which cuts token costs. It also removes the need to run tools like LibreOffice or ffmpeg locally just to split files.
Sources
Checked November 24, 2026 against the sources above. Claims about performance or benchmarks are the company's own unless stated otherwise.