Google added file slicing controls to the Gemini API. Developers can reference selected pages or media intervals when sending files for analysis, leaving the service to handle the selection. Google says the feature is available across Gemini 4 models.
The release also describes native support for Office files. For a request about one part of a long file, selecting that portion can reduce the amount of material Gemini needs to process and simplify client-side file handling.
Google says input usage is billed for the portions actually inspected. Developers still need to test whether the slices preserve enough context for the task, especially when relevant information spans several pages or media intervals.
