Google Launches Native File Slicing Controls in Gemini API to Reduce Token Costs
Google's new file slicing controls allow developers to inspect targeted pages, cells, and media segments server-side, reducing token costs for large files.
On November 23, 2026, Google announced the launch of native file slicing controls in the Gemini API across Google AI Studio and the Gemini platform. This update introduces support for Microsoft Office and OpenDocument formats alongside PDFs, audio, and video. Developers can now request specific parts of a file—such as page ranges, spreadsheet cells, or media segments—and the API processes these slices server-side. This mechanism ensures that context remains focused on relevant content while billing tokens only for the portions the model actually inspects.
The feature addresses inefficiencies in agent workflows where large files previously required local rendering tools like LibreOffice or ffmpeg, which bloated memory and cluttered local disk. With the new controls, agents can upload a file once via the Files API and reuse its URI across multiple turns. For documents and slides, users can select start and end pages, set resolution levels (low, medium, high), and choose between text or image layers. Spreadsheets allow selection of worksheet tabs and cell ranges, while video and audio support time-interval clipping and frame-rate adjustments.
This capability is available today for all Gemini 4 models. By enabling a "skim then zoom" workflow, developers can first process extracted text at low cost to locate relevant sections, then spend higher-resolution tokens only on specific charts or dense layouts. This reduces the need for per-user sandboxes in enterprise platforms and lowers overall prompt token spend in production harnesses.