Official share image from Google's post introducing file slicing controls in the Gemini API.
Official share image from the Google post., Google

On 23 November 2026, Google DeepMind published a product post by Rohan Doshi, a senior product manager, and Ben Caine, a principal engineer, introducing file slicing controls in the Gemini API. The change is server-side. Developers can upload PDFs, Office files, OpenDocument files, audio, and video, then ask the API to load only selected pages, sheet ranges, media segments, and content layers. Native slicing, the post says, works across all Gemini 4 models. Existing file size and page limits still apply to the uploaded file.

The claim that matters is not that Gemini can read documents. It is that the service, rather than the client, now cuts the file, and that Google says tokens are billed only for the parts Gemini inspects. The implied bet is that agent software can stop running local LibreOffice, PDF renderers, and ffmpeg just to prepare a file for the model.

[1]

The post says the controls are available today through the API in Google AI Studio and on the Gemini platform, alongside native upload support for Microsoft Office and OpenDocument formats. A file can be uploaded once with the Files API, then reused by its URI across turns and tool calls. An agent can also specify which parts of a file to inspect inside a function response, which the post also calls function_result. The suggested pattern is to skim first with extracted text, low-resolution previews, or transcripts, then spend higher-resolution tokens only on the charts, dense layouts, or frames that matter.

The processing options are broken out by media type. For documents and slides, including PDF, Office, and OpenDocument formats, a caller can set a page range with start_page and end_page, choose a resolution of low, medium, or high, and select content layers of page_text or page_image. For spreadsheets in .xlsx, .xls, and .ods formats, a caller can select a worksheet with sheet_index, a cell range with visible_cells, a resolution, and content layers of data, formulas, and visuals. For video, a caller can clip a time interval with start_offset and end_offset, adjust frames per second and resolution (low or high), and choose transcript, frames, or audio layers. For audio, the post describes clipping by the same time offsets.

Defaults apply when those options are omitted. Documents and slides default to layout-preserving page images. Spreadsheets include evaluated values, formulas, and sheet names across all tabs. That default is worth reading twice. A caller who uploads a workbook and says nothing will, according to the post, send more than the visible numbers on the first tab.

The worked example uses two models in sequence on the same uploaded Word document. First, gemini-4-hydrogen skims the file as extracted text, with content_layers set to page_text, and is asked which page has a revenue-bridge chart. Then gemini-4-neon reuses the same URI, sets resolution to high, limits the range to page 3, and inspects that page as page_image. The example illustrates the "skim, then zoom" pattern. It is not a benchmark.

The post also says that gateway and SDK partners "validated these controls ahead of launch, cutting prompt token spend directly in production harnesses." The fetched text does not quantify those savings, and it does not name the partners or the workloads. This desk is not filling in numbers that the post does not provide.

[1]

When a model API will only accept a whole file, the client has to do the cutting. That usually means rendering a PDF to images, converting an Office document with LibreOffice, or running ffmpeg to extract a clip or a set of frames. Those tools consume memory, leave files on disk, and often require a per-user sandbox. Server-side slicing moves that work behind the Files API URI. The same stored file can be skimmed cheaply on one turn and inspected at high resolution on the next, including from inside a tool result.

Billing only for inspected parts is what makes that pattern economically different from uploading a 200-page PDF and paying for every page on every turn. If the billing claim holds, an agent can keep the original file in place and ask narrower questions. If it does not hold, or if defaults send more layers than the caller expected, the cost advantage shrinks.

The two-model example makes the same point in practice. A cheaper or faster model can read text across the document. A more capable model can then look at a single page as an image, which is the form needed for a chart or a complex layout. Both calls can point at one uploaded URI.

[1]

The billing claim is a vendor claim. The post does not publish a rate card, a worked token count for the example, or a comparison against whole-file ingestion. "Early adoption" savings are asserted and not measured in the text that was fetched. Existing file size and page limits still apply, and those limits are not restated in the blog post itself. This desk has not checked them in the current API documentation, and it has not run the example against a live project to confirm what is billed.

The post also does not say how overlapping slices are charged, how a failed slice is retried, or what happens when a requested page range exceeds the uploaded file. Audio and video options are listed, but there is no worked media example. Local renderers are not made obsolete in every setting. Offline systems, non-Gemini model stacks, and workflows that must keep a reproducible local artifact will still need them. The announcement is a feature launch, not a study of how many agent harnesses have actually removed LibreOffice or ffmpeg.

[1]

A fair reading is that this is a reasonable API shape for the problem it names. Agents that work on large PDFs and workbooks do waste context, and they do accumulate local rendering machinery. If a caller can upload once, slice by page or sheet or time range, and pay only for the inspected slice, then some of that machinery can move off the client.

It is also fair to insist that invoices and current documentation, not the launch post, will decide whether the billing claim is true in practice. Defaults that send layout-preserving images, or entire workbooks with formulas, could offset the savings from a later narrow slice. Until those details are checked in a real project, the feature should be described as a new set of request options with a cost promise attached, not as a demonstrated reduction in token spend.

[1]

The next six months should be about whether production agents actually stop rendering files locally, and whether billed token counts for sliced requests match the "inspect only what you need" promise. Watch the defaults as closely as the explicit options, especially for multi-tab spreadsheets, and whether file size and page limits become the binding constraint once slicing is in use.

If a 200-page document can be uploaded once, skimmed as text, and billed in a later call only for a high-resolution page 3, the launch will have done what Google says. If invoices still reflect whole-file tokenization, or if teams keep local PDF and ffmpeg pipelines because the limits or the defaults get in the way, the implied bet will not have landed.

[1]