Google is giving developers a way to ask Gemini to inspect a chart page or a short recording segment without processing the entire file. In its November 23 announcement, Google introduced file slicing in the Gemini API—the interface software uses to send requests to its AI models—alongside native uploads for Microsoft Office and OpenDocument files.
The practical change is control over which parts of an uploaded file the model reads. Google says only the parts Gemini inspects are billed as tokens, the units used to account for model input. For teams building tools around long reports, spreadsheets or recordings, this offers a way to keep requests focused and potentially reduce input costs; the announcement does not quantify savings.
What developers can select
Slicing happens on Google’s servers rather than requiring the application to cut files into pieces locally. The controls cover both ranges and content layers: different representations of the same material, such as document text versus a page image, or spreadsheet values versus formulas.
- Documents and slides: PDF, Office and OpenDocument files support page ranges, low/medium/high resolution, and text or page-image layers.
- Spreadsheets:
.xlsx,.xlsand.odsfiles support a chosen worksheet tab and cell range, low/medium/high resolution, and data, formula and visual layers. - Video: Developers can select time intervals, adjust frame rate—the number of frames processed per second—and low/high resolution, and choose transcripts, frames or audio.
- Audio: Developers can select time intervals.
This makes the selection more specific than simply attaching a file. A spreadsheet task can target cells on one tab, while a recording task can focus on a relevant interval rather than the full recording.
Upload once, then move from an overview to detail
Developers can upload a file once through the Files API, Google’s file-upload interface, and reuse its URI, the reference identifying that upload, across conversation turns and tool calls. Google also allows file references and slicing choices inside a function response, the result an application tool returns to the model. This lets an AI agent—a system that uses tools over multiple steps—choose what to inspect as work progresses.
Google’s example uploads a Word report, first requests extracted text to locate a revenue chart, and then reuses the file reference to inspect one page as a high-resolution image. It illustrates a useful design pattern: find the relevant section with a lighter representation, then request visual detail where needed. It is an example workflow, not a measured cost or accuracy comparison.
Google positions server-side processing as an alternative to maintaining local document converters, PDF rendering software and video extraction tools just to prepare files for models. For developers of document assistants and enterprise automation, the likely benefit is less file-preparation machinery in the application. That does not establish how much memory, time or money any particular deployment would save.
Availability, defaults and limits
Google says the controls are available through the API in Google AI Studio and the Gemini platform. Native file slicing works across all Gemini 4 models. Existing file size and page limits still apply to the uploaded file, so selecting a small slice does not bypass upload restrictions.
Leaving processing options out also matters. Documents and slides default to layout-preserving page images. Spreadsheets include evaluated values, formulas and sheet names across all tabs. Developers seeking narrowly scoped input should therefore specify their selections rather than assume that omission produces a text-only or single-tab request.
The announcement says gateway and software development kit partners validated the controls before launch and reduced prompt-token spending in production systems. It provides no named partners, numerical savings, detailed pricing or new free-use allowance. The supported conclusion is that developers now have more precise input controls—not that every file workflow will become cheaper by a predictable amount.
PlayAgit illustration.
