Google has quietly changed the economics of feeding documents to Gemini. On November 23 - with the underlying change already in Google's release notes since November 18 - Google DeepMind senior product manager Rohan Doshi and principal engineer Ben Caine published details of new file-slicing controls in the Gemini API: developers can now tell the model to read specific pages of a PDF, specific cells of a spreadsheet and specific minutes of a video or audio recording, and token billing applies only to what the model inspects. The same release adds native uploads for Microsoft Office and OpenDocument files, which previously had to be converted first.
The controls separate two choices: which slice of a file to read, and in what form. Documents and slides accept page ranges plus a resolution setting and a layer choice between extracted page text and layout-preserving page images. Spreadsheets accept a worksheet index and a cell range such as A1:H50, with layers for data, formulas and visuals. Video requests can narrow the time window, adjust the frame rate and choose between transcript, frames and audio layers; audio can be clipped to an interval. If a call omits the processing options, the old behavior applies - documents default to page images and spreadsheets include evaluated values, formulas and sheet names across every tab.
The billing math is where this gets concrete. Google's documentation prices a page image at roughly 280 tokens on low resolution, 560 on medium - the default - and 1,120 on high for Gemini 3 and Gemini 4 models, while Gemini 2.5 charges a flat 258 tokens per page. Against those figures, a 100-page report read whole at the default costs about 56,000 input tokens; pages 3 through 7 at high resolution cost about 5,600 tokens, a tenth of the whole file. Converted at published list prices - Gemini 4 Hydrogen at $1.50 per million tokens and Gemini 4 Neon at $3 - that difference is roughly $0.08 versus $0.008 for input alone, though those dollar figures are arithmetic from list prices rather than a promise, and output and thinking tokens bill separately.
The workflow this enables matters as much as the pricing. A file uploaded through the Files API gets a reusable URI that works across conversation turns, so a developer can skim every page as extracted text to locate a revenue chart, then reuse the same reference to load just that page at high resolution - no second upload. The model is also automatically told the total page count and worksheet names, so it can request a different slice on the next turn by itself. Crucially, the controls work inside tool results: an agent can receive a Files API link from a tool and then choose what to read from it as function_result content in the Interactions API.
Google frames the change as removing a whole class of client-side scaffolding. When model APIs only accept whole files, agent frameworks end up running LibreOffice, PDF renderers and ffmpeg locally to slice large documents - bloating memory, filling disks with extracted frames and forcing enterprise platforms to maintain per-user sandboxes just to cut a file. With native slicing, the API renders and tokenizes each file server-side, in the same form the model saw during training.
The caveats are worth reading closely. Upload limits are unchanged - 50 MB, 1,000 PDF pages, 2,000 Office pages and 50,000 cells per sheet - and the whole file still goes to Google, so slicing narrows what the model reads but is not a redaction mechanism. Google also does not promise a fixed saving on any particular file, and defaults can silently send more content than a task requires: a developer who never sets the processing block pays for the entire document. Google says partner gateways and SDKs validated the controls before launch, reporting prompt-token reductions in production, though those are partner-reported figures.
Against the competition, third-party analysis notes that among Claude, Mistral OCR and Meta's document APIs, only Mistral offers page-level selection, and none of the three offers cell ranges or media time clips. For document-heavy agent workloads - contracts, financial reports, hours-long recordings - the feature turns context management from an engineering project into an API parameter, which is likely the point: Google is positioning cost-per-read, not raw capability, as the battleground for agentic document processing.
Comments (0)
Log in to join the discussion
Log InNo comments yet