Google

Google adds file slicing and native Office support to the Gemini API

Google launched native file slicing controls in the Gemini API on November 23, letting developers send PDFs, Office and OpenDocument files, audio and video directly to Gemini 4 models and pay only for the pages, cells or media segments the model inspects.

Google announced on November 23, 2026 that the Gemini API now has native file slicing controls, available in Google AI Studio and on the Gemini platform, alongside native file upload support for Microsoft Office and OpenDocument formats. Developers can pass PDFs, Office files — documents, slides and spreadsheets — audio and video directly to the API and request only the pages, spreadsheet cells, media segments and layers they need, instead of converting and loading entire files on the client.

For documents and slides (PDF, Office and OpenDocument), requests can select a page range, set resolution to low, medium or high, and choose content layers of extracted page text, rendered page images, or both. For spreadsheets (.xlsx, .xls, .ods), requests can select a worksheet tab and a cell range, and choose evaluated data, raw formulas or a rendered visual. Video can be sliced by time interval and frame rate, and audio by time interval, with transcripts available as a layer. The API slices, renders and tokenizes each file server-side, and Google bills tokens only for the sliced output the model inspects — Google estimates about 280 tokens per page at low resolution, 560 at medium and 1,120 at high for page images.

The controls are aimed at agents: an agent can specify what parts of a file to inspect directly inside a function response, enabling faster multi-turn workflows without re-uploading — a file uploaded once to the Files API can be reused across turns with different slices. Native file slicing works across all Gemini 4 models, and the document, presentation and spreadsheet controls also support Gemini 3. Original upload limits still apply: 50 MB per file, 1,000 pages per PDF, 2,000 pages or slides per Office or OpenDocument file, and 50,000 cells per spreadsheet sheet; Files API uploads are stored for 48 hours.

Read the original · Google

Share