What’s new. Google added file slicing controls to the Gemini API. Developers can hand the API a PDF, an Office or OpenDocument file, audio or video, then ask for only certain pages, spreadsheet cells, clips or layers. Google says tokens are billed only for the parts Gemini inspects.
Where it works. The company says the feature runs on all Gemini 4 models in Google AI Studio and the Gemini platform. It also added native upload support for Microsoft Office and OpenDocument formats.
How agents use it. A developer uploads a file once and reuses its address across turns. An agent can then request a slice from inside a function response. Google’s example skims a whole Word document as cheap extracted text, finds the right page, and then looks at that one page as a high resolution image.
The controls. For documents and slides you pick a page range, a resolution and whether to read text or page images. Spreadsheets can be narrowed to a tab and a cell range. Video can be clipped by time, with frame rate and resolution set, and limited to the transcript, frames or audio.
Why it matters. Many agent builders now run tools such as PDF renderers and video converters on their own machines just to chop up files before sending them. Moving the work to the server could make agent setups simpler, and cheaper when only a small part of a big file matters.
What’s real here: The controls are live today, per Google. The savings depend on how much of each file your agent skips, and Google’s post gives no figures for that, so measure your own token use before and after.
Sources
By Willa Ravenwire · The AI Bandwagon
