Google DeepMind has introduced native file slicing controls within its Gemini API, aiming to streamline how developers interact with large files in AI applications. Announced on November 23, 2026, this advancement enables users to specify precise ranges within files—such as page subsets of PDFs, cell ranges in spreadsheets, or time intervals in audio and video—allowing the model to process only relevant portions server-side.
The technology supports various modern file formats including PDF, Microsoft Office and OpenDocument for documents and slides, as well as conventional spreadsheet (.xlsx, .xls, .ods), audio, and video files. Developers can instruct the API to select particular pages, worksheet tabs with visible cells, or media segments by defining start and end points, resolution quality, and content layers like text or images.
This capability addresses a common challenge in AI-powered knowledge work where large, multifaceted files often contain extensive irrelevant data. Traditionally, developers had to flatten or fully ingest entire files locally, often resorting to bulky client-side tools like LibreOffice or ffmpeg to parse and slice data. Gemini’s server-side slicing removes the need for such local bloat, offloading processing to the AI infrastructure and minimizing memory usage and disk clutter on client machines.
The Gemini API allows a file to be uploaded once with a persistent URI, which can be reused across multiple requests and turns, facilitating efficient multi-step interactions. For example, developers might 'skim' a document via low-cost extracted text before zooming in on specific pages with high-resolution images, managing token consumption more effectively.
File slicing controls work seamlessly across all Gemini 4 models, although existing limits on file size and pages still apply. The API offers adjustable parameters such as resolution (low, medium, high), content layers (text, images, formulas, visuals), and time or frame rate adjustments in media files, granting developers granular command over processing scope.
Early adopters from partner SDKs and agent frameworks have reported direct reductions in prompt token spend when integrating these slicing features into production environments, highlighting both cost savings and improved responsiveness in AI-driven workflows.
While this feature enhances operational efficiency, limitations include adherence to maximum supported file sizes and page counts, and the API currently applies predefined defaults if slicing parameters are omitted. Further, the effectiveness of slicing relies on the underlying model’s training to interpret data layers appropriately, which may vary by file type and content complexity.
The Gemini API's new file slicing features are immediately available through Google AI Studio and the Gemini platform, inviting developers to explore more cost-effective and precise content analysis in their AI applications.
Source & further reading
Introducing file slicing controls in the Gemini API ↗Source published 2026-11-23. Claims and limitations should be checked against the original announcement or research.