Artificial intelligence

Google Launches 'File Slicing' Feature in Gemini API to Reduce Processing Costs and Improve Developer Efficiency

Google has launched a new control feature in the Gemini API that allows developers to specify particular parts of files (such as specific pages or video clips) for programmatic processing, reducing token consumption and easing the technical burden on local devices.

2026-11-23
3 min read
4 views
certi.news Editorial Team
Google Launches 'File Slicing' Feature in Gemini API to Reduce Processing Costs and Improve Developer Efficiency

Precise Control Over Big Data Processing

Google has announced the launch of File Slicing Controls via the Gemini API, now available through Google AI Studio and the Gemini platform. This feature allows developers to specify targeted parts of files—such as specific pages of a PDF document, specific cell ranges in spreadsheets, or specific time segments of a video—for the model to load and process directly on the server-side.

This move addresses the challenges of handling large and complex files, as developers are no longer required to upload the entire file or convert it into plain text before sending it to the model, ensuring that the context remains focused on the parts most relevant to the required task without wasting resources.

What Changes Practically for Developers?

This feature represents a shift in how AI Agents and artificial intelligence applications are built, through three main pillars:

  • Reducing Token Costs: Instead of paying the cost of processing an entire file containing unnecessary information, developers are billed only for the parts the model is chosen to examine, which directly reduces operational expenses.
  • Easing the Burden on Local Infrastructure: Previously, developers had to run processing tools such as ffmpeg for video or LibreOffice for documents within the application environment to slice files before sending them, which consumed memory and space. Now, the Gemini API handles the slicing, rendering, and tokenization entirely on the server-side.
  • "Browse then Focus" Strategy: Developers can build intelligent workflows that start with a quick and cheap "browse" of the file (using text or low-resolution images), then move to a deep "focus" on specific details (such as charts or complex tables) using high resolution only when needed.

Available Processing Options

The feature supports all Gemini 4 models and provides precise customizations for each media type:

  • Documents and Presentations (PDF, Office, OpenDocument): Ability to specify page ranges, adjust resolution (low, medium, or high), and choose content layers (page text or image).
  • Spreadsheets (.xlsx, .xls, .ods): Selection of the worksheet tab (Sheet), defining the visible cell range, and adjusting resolution, with the ability to choose data layers, formulas, or visuals.
  • Video: Specifying time intervals (start and end), adjusting frame rate (FPS) and resolution, and choosing whether to focus on the transcript, frames, or audio.
  • Audio: Easily trimming the required time intervals to reduce the volume of processed data.
News source
Google Official News
Open original source ↗
c
Author

certi.news Editorial Team

In the same category

You may also like

View all news