OutYet reporting

Gemini API can now inspect selected file sections

Google’s new server-side controls let developers target pages, spreadsheet cells, and media segments. The potential savings depend on what an agent selects and still need testing against real workloads.

OutYet Editorial Desk

Google added server-side file slicing controls to the Gemini API on November 23. Developers can upload a file, then ask the API to inspect selected pages, spreadsheet cells, or audio and video segments instead of processing the whole file. The update also adds native support for Microsoft Office and OpenDocument uploads. Google says tokens are billed for the parts Gemini inspects, and that the controls work across Gemini 4 models. This gives document and media agents a way to focus requests and manage input use through API parameters.

The workflow is designed for staged inspection. A file can be uploaded once through the Files API and reused across turns or tool calls. An agent might first scan extracted page text to find a relevant section, then ask for a high-resolution image of one page. Google’s example uses this pattern to locate and inspect a chart in a Word report. Developers can set page ranges, resolution, and content layers for documents; choose a worksheet and cell range for spreadsheets; and select time intervals and layers for video. Existing file-size and page limits still apply.

This changes how developers can prepare inputs, not what a model can infer from them. Google’s documentation already described using Gemini to process whole PDFs and recommended the Files API when reusing larger files across requests. The new controls add a way to request specific pages, sheets, or content layers, while Google’s launch post also describes selection inside a function response. Google cites early partner tests: Vercel reported 14 times fewer tokens for text skimming than rendering a whole PDF, while LiteLLM reported reductions of 67% for a PDF and 33% for a workbook. Those figures come from partner testing and do not establish typical savings across other files or tasks.

For teams building document-heavy agents, the practical value is reduced input processing and less need to run local renderers or media tools just to prepare slices. But selection becomes part of the system that needs evaluation: a text-only skim could miss a chart, a cell range could omit context, and staged inspection may require extra calls. Google’s announcement does not report accuracy comparisons or production-wide savings, and it says uploaded-file limits remain. Developers should measure token use and whether the agent retrieves the evidence needed for a correct answer before making selective inspection the default.

Related models

Sources