Skip to content
Product Launch

Google Adds File Slicing Controls to Gemini API

November 24, 2026
Google Adds File Slicing Controls to Gemini API

Image: blog.google

Google has added native file slicing controls to the Gemini API, allowing developers to target specific pages, spreadsheet cell ranges, and media segments server-side. The controls launched in Google AI Studio and the Gemini platform alongside file upload support for Microsoft Office and OpenDocument formats.

Developers can pass PDFs, Word documents, slide decks, spreadsheets, audio, and video directly into the API and request only the specific sections required for processing. This server-side slicing avoids flattening files locally or sending whole files across turns, reducing token costs by billing tokens only for the file parts Gemini inspects.

The native file slicing capability works across Gemini 4 models while retaining existing file size and page limits for uploaded files. Uploaded files can be stored using the Files API, allowing developers to reuse a single file URI across multiple turns and function responses.

For documents and slides in PDF, Office, or OpenDocument formats, developers can select page ranges using parameters such as start_page and end_page, choose resolution settings of low, medium, or high, and specify content layers including page_text or page_image.

Spreadsheet formats including .xlsx, .xls, and .ods allow selecting specific tabs via sheet_index, specifying cell ranges using visible_cells, setting low, medium, or high resolution, and choosing content layers for data, formulas, and visuals. If processing options are omitted, documents and slides default to layout-preserving page images, while spreadsheets evaluate values, formulas, and sheet names across all tabs.

For video, developers can adjust frame rates, select low or high resolutions, clip time intervals with start_offset and end_offset, and extract specific layers such as transcript, frames, or audio. Audio files can also be clipped using start_offset and end_offset parameters.

Google noted that these features are available immediately via the API in Google AI Studio and the Gemini platform.

Related AI News

Enjoyed this? Get more in your inbox.

Up to ten of the week's AI news stories, by email once a week.