A range instead of a whole workbook
On 23 November Google announced file slicing for Gemini 4 models through its API in Google AI Studio and the Gemini platform. A developer can upload an Office or OpenDocument file and specify what the model should inspect. For a spreadsheet, that means choosing a worksheet by position, then naming cells such as B5:D9. The number matters: the first tab is 1, so reordering tabs can change what an unchanged request reads.
A number and its formula answer different questions
A finance analyst checking a reported total could request the cell values first, then inspect the formula if the total looks wrong. For a PDF, the equivalent choice is between reading text and examining a page image: the wording of a footnote may survive text extraction while the line it qualifies in a chart does not. Google says it bills input tokens for the parts inspected.
That is a billing rule, not a forecast of what a repeated, multi-step job will cost.
An unselected tab is still in the upload
Slicing takes place on Google’s servers. If the workbook contains a payroll tab that must not leave the company, selecting a different tab is too late. Make a separate, approved extract before uploading anything. Google’s Files API documentation gives uploaded files a 48-hour lifetime and offers earlier deletion; that clock describes the file object, not every record of a request. The original upload also remains subject to file limits.
What changes for UK developers
This is a developer release, not a promise that a paid Gemini chat subscription includes API usage. Google’s API terms require Paid Services when making API clients available to users in the UK, the EEA or Switzerland. A team deciding whether to use the feature therefore has two separate questions: is the service approved for this file, and will the selected cells give the reviewer enough evidence to sign off the answer?
Practical checks
1Identify the tab by position and name before processing.
2Remove material not cleared for upload.
Sources
Reporting and image notes
Independent, not sponsored. AI-assisted reporting based on the linked sources, not a hands-on product review. Editorial process.
Terms in this article
Application programming interface
A defined way for software systems to exchange requests and responses. An AI API lets an application call a service; it is not the same thing as a consumer chatbot subscription.
Meaning and examples
Products
Products