The Pulse
Gemini API lets developers select file sections for processing
Google's Gemini API can process selected pages, spreadsheet cells and media segments rather than entire files. The update also supports direct uploads of Microsoft Office and OpenDocument files.

Developers using the Gemini API can now select pages, spreadsheet cells and media segments for processing instead of having the model inspect an entire file. Google says the API bills tokens only for the portions Gemini inspects, and now accepts Microsoft Office and OpenDocument files directly.
The controls are available through the API in Google AI Studio and the Gemini platform. They work across all Gemini 4 models, although existing file size and page limits still apply to the uploaded file.
Choosing what to process
For documents and slides, including PDFs and Office and OpenDocument formats, developers can specify a page range and choose low, medium or high resolution. They can also select extracted page text or page images as content layers.
For spreadsheets, the controls cover worksheet tabs and cell ranges, with the same resolution choices and layers for data, formulas and visuals. The supported spreadsheet formats include.xlsx,.xls and.ods.
Video controls cover time intervals, frame rate and low or high resolution, as well as transcript, frame and audio layers. Audio files can also be clipped by time interval.
Without processing options in an API call, documents and slides default to page images that preserve layout. Spreadsheets default to evaluated values, formulas and sheet names across all tabs.
Reusing an uploaded file
A developer can upload a file once through the Files API and reuse its URI across turns and tool calls. The file URI can be passed in a user turn or directly in a function response, where an agent can specify which parts to inspect.
The API slices, renders and tokenizes the file on the server side. Google says this avoids having to run tools such as LibreOffice, PDF renderers and ffmpeg inside a client harness to render and slice large files.
The controls also allow a workflow that starts with extracted text, low-resolution previews or transcripts and then uses higher resolution for selected material. Google's example uses a Word document: an initial pass over extracted text locates a section, after which the same URI is used to inspect a single page at high resolution.
Partner tests
Gateway and software development kit partners validated the controls before launch, according to Google.
Sources
- Original source · Blog post Google blog.google