Google announced server-side file-slicing controls for the Gemini API on November 23, 2026, saying developers could use them through Google AI Studio and the Gemini platform. The announcement also added native Microsoft Office and OpenDocument uploads. With the controls, developers can target parts of documents, spreadsheets, audio and video instead of requesting every part of a file. Google’s announcement
What can Gemini API file slicing select?
Google describes different controls for each kind of input:
| File or content type | Controls Google describes |
| Documents and slides, including PDFs, Office and OpenDocument files | start_page and end_page; low, medium or high resolution; page_text or page_image layers |
Spreadsheets (.xlsx, .xls, .ods) | sheet_index; visible_cells; low, medium or high resolution; data, formula or visual layers |
| Video | start_offset and end_offset; frame rate; low or high resolution; transcript, frame or audio layers |
| Audio | start_offset and end_offset to select an interval |
Google says file slicing works across all Gemini 4 models. Its document and spreadsheet controls let a developer choose both the portion to inspect and the kind of content to send, such as page text instead of a page image, or spreadsheet formulas instead of visual elements.
What happens when processing options are omitted?
Without processing options, documents and slides default to page images that preserve the layout. Spreadsheets include evaluated values, formulas and sheet names across all tabs. Leaving the options out therefore does not itself request a narrower slice.
If you need Gemini to inspect a narrow slice, specify it: the defaults Google describes use page images for documents and include every spreadsheet tab.
Google says the existing uploaded-file size and page limits still apply.
How can developers reuse an uploaded file?
A file uploaded through the Files API can be reused by its URI across turns and tool calls, including in a function response. That means a workflow can refer back to the uploaded file when requesting a different slice, rather than uploading it again for each step.
Google’s example first requests text extraction from a Word document with gemini-4-hydrogen, then reuses the URI to inspect page 3 as a high-resolution image with gemini-4-neon.
What token savings did partners report?
Google’s announcement cites partner-reported results, not a general savings estimate for every file. Vercel reported using 14× fewer tokens to extract text from a document page than to render the entire PDF. LiteLLM reported 67% fewer prompt tokens for a PDF and 33% fewer for a workbook in its tests. Google’s announcement