Google On November 23, file slicing with Gemini API will be launched. PDF allows for read-only access to selected pages, and tables allow for read-only access to a single cell. According to the instructions in Google, the parts of the file that are actually checked against the model will be counted towards the token usage.
Control items now enter the API of the Google AI Studio and Gemini platforms, and come online with support for uploading native files in Microsoft's Office and OpenDocument formats. This applies to all Gemini 4 models. Developers still need to comply with the current limits on file size and number of pages; the change occurs at the step where the files are submitted for model inspection.
Besides the page number, there are other factors that can determine what the model reads.
In the past, in order to provide only a portion of the data to the model, tools might have to convert the entire Office file into another format, or they would have to split PDF and the video locally. Google listed the memory, disk, and isolation environment overheads incurred by local renderers and video processing tools. With this change, the selection of scope, rendering, and metatization are now handled within API. After being uploaded once via Files API, the returned file URI can be reused in subsequent rounds and by subsequent tools.
The scope and content layers can be selected separately. The PDF, Office, or OpenDocument documents and slides support starting pages, ending pages, as well as low, medium, and high resolutions. For the content layer, it is possible to extract text or page images. If only locating information is needed at the moment, the text layer may be sufficient. When it is necessary to identify legends, table layouts, and footnotes, then the affected pages can be read again separately, and the image layer can be used instead.
The way of slicing in spreadsheets is different. Requests can specify worksheet tabs and a visible cell range, and one can choose between the data layer, the formula layer, and the visual content layer. For example, when checking the total numbers, only the values are displayed in the data layer, while the formula layer retains the calculation notation. When searching for information across worksheets, the scope of one tab does not automatically replace that of other tabs. Google Note: When processing options are omitted in the request, the spreadsheet by default includes the calculated values of all tabs along with the worksheet names.
Long videos support extracting segments based on start and end times, as well as adjusting the frame rate. The resolution can be set to low or high, and it's also possible to separately extract transcripts, video frames, and audio. For audio, it's possible to specify start and end offsets, and one can choose to extract either just the transcript or the original sound. API Users can first use the transcript to identify the speeches they need to review again, and then extract the corresponding video or audio. The input options selected for each of these two requests will determine the materials that are sent to the model.
One upload can accommodate two different reads.
The example provided by Google demonstrates two rounds of calls using a Word quarterly report. In the first round, Gemini and Hydrogen are used to read the text layer, traversing each page to locate the income change chart. In the second round, the original file URI is continued, but Gemini and Neon are used instead, explicitly specifying the high-resolution image on page 3, and asking for the legend and footnotes. What is saved in this example is the number of pages that need to be processed by the visual model; the text reading used for positioning in the first round is also included in the processing flow.
File selection can also be placed within the return result of a function call. For proxies that have the capability to call tools, these tools can return references to the uploaded files and allow for the selection of the parts that need to be viewed subsequently. For example, if a business system first locates a certain worksheet, the proxy can then directly check the corresponding range after obtaining the reference. Parts of the process that were previously handled before model calls now have an entry point that changes with the content returned at that time.
This also provides the caller with a point for checking the bill. First, check if the request explicitly specifies a page number or worksheet, and then compare it with the content layer being used. Google states that documents or presentation files use the page images with retained formatting by default. When the file is connected to a new interface but the request still follows the default processing, one cannot expect the same reduction in metadata as in the example.
The number of tokens saved depends on how the document is read.
Google showcases the actual test results of partners. Vercel claims that its text extraction test usage is approximately one-fourteenth of rendering the entire PDF. LiteLLM reported in their respective PDF and workbook tests that the number of prompt words was reduced by 67% and 33% respectively. These ratios are based on disclosed task comparisons; there are differences in the input and reading targets for each case, and no guarantees were made in the announcement that all files would achieve the same reduction rate.
File uploads, input tokens, and the total cost of products should also be considered separately. Google reveals the charging standard for file inputs of the part that is being checked; no new unit token prices are provided in the text. If you scan the text first and then the images, both rounds of usage should be taken into account during verification. If the task requires the full text to retain its format at once, then the available space for a smaller scope is even more limited.
Google This time, the choice lies in each individual call. A previously uploaded document can first serve as a full-text indexing reference, and then the page that needs verification can be submitted for another round of high-resolution processing. The reference to the same file remains valid between the two rounds.












