Google Adds File Slicing to Gemini API, Making Document and Video Analysis More Efficient

Google Gemini API file slicing feature for processing selected document pages, spreadsheet ranges, audio and video segments.

Generated by ChatGPT

Google has introduced new file processing capabilities in its Gemini API, giving developers more control over how artificial intelligence models analyze large documents, spreadsheets, presentations, audio recordings and videos.

Announced on November 23, 2026, the update introduces native file slicing controls that allow developers to select specific pages, spreadsheet ranges and media segments instead of processing entire files.

The change addresses a common challenge in AI application development: analyzing large files can consume substantial context and token resources, even when developers only need information from a small section.

With the new capabilities, developers can upload files and instruct Gemini to inspect only the relevant portions. This can help reduce unnecessary token consumption while making document-based AI applications more practical.

What Has Google Changed in the Gemini API?

Previously, developers building document analysis applications often needed additional processing workflows to extract relevant information from large files.

This could involve converting documents, extracting text or rendering individual pages before sending the required information to an AI model.

Google’s new file slicing controls bring these capabilities directly into the Gemini API.

Developers can now specify which parts of a file should be processed. For example, an application analyzing a lengthy business report can request selected pages instead of submitting the entire document for detailed inspection.

The update supports several file categories, including:

  • PDF documents and presentations.
  • Microsoft Word documents.
  • PowerPoint presentations.
  • Excel spreadsheets.
  • OpenDocument files.
  • Audio recordings.
  • Video content.

Google has also introduced native support for Microsoft Office and OpenDocument file formats, reducing the need for developers to convert these files before uploading them.

According to Google’s official announcement about Gemini API file slicing, these capabilities are available through Google AI Studio and the Gemini platform.

Developers Can Select Specific Pages and Spreadsheet Ranges

One of the most useful additions is the ability to control which sections of a document or spreadsheet an AI model examines.

For documents and presentations, developers can specify page ranges and choose between extracted text and rendered page images.

This distinction matters because some documents contain information that cannot be understood through plain text alone.

Charts, diagrams, tables and complex page layouts may require visual processing to preserve their original context.

Spreadsheet processing also receives more granular controls.

Developers can select individual worksheet tabs and specific cell ranges rather than asking Gemini to analyze an entire workbook.

For example, a financial analysis application could inspect revenue figures from a particular worksheet without processing every sheet in a large spreadsheet.

The API also provides options for handling spreadsheet data, formulas and visual information.

Developers can explore the Gemini API developer documentation for implementation details and supported capabilities.

Audio and Video Processing Gets More Flexible

Google has extended file slicing beyond traditional documents.

Developers can now select specific time intervals from audio and video files, allowing applications to focus on relevant sections of longer recordings.

For example, a meeting intelligence application could analyze a particular discussion segment instead of processing an entire two-hour recording.

Similarly, video analysis applications can focus on selected clips and adjust frame rates and resolution.

The available controls include options for processing transcripts, video frames and audio information.

This creates opportunities for developers building applications for:

  • Meeting transcription and analysis.
  • Video content summarization.
  • Educational recording analysis.
  • Media monitoring.
  • Business intelligence.
  • Customer support recordings.

Rather than processing every second of a recording, applications can direct the model toward the information that matters.

How File Slicing Could Reduce AI Processing Costs

Token consumption remains an important consideration for developers building applications around large language models.

When an AI application processes an entire document unnecessarily, it may consume resources that provide little additional value.

Google’s file slicing approach allows developers to limit processing to selected content. The company says token billing covers the portions that Gemini actually inspects.

Google also shared early feedback from ecosystem partners.

Vercel reported that skimming a document page for text extraction used 14 times fewer tokens than rendering the entire PDF in its testing.

LiteLLM reported reductions in prompt token usage during its own testing, including 67% for a PDF and 33% for a workbook.

These figures represent partner testing results rather than guaranteed savings for every application.

Independent technology publication Unite.AI’s coverage of Google’s file slicing announcement also examines how developers can use page selection, spreadsheet ranges and resolution settings to control token consumption.

Actual reductions will depend on file size, content complexity, processing settings and the amount of information an application needs.

The important change is that developers can now control how much of an uploaded file enters the model’s processing context.

What This Means for AI Agents and Business Applications

The update could be particularly useful for AI agents that work with documents and other business information.

Many enterprise applications require AI systems to inspect contracts, spreadsheets, presentations, reports and recorded meetings before completing a task.

Without selective processing, developers may need additional infrastructure to extract and prepare relevant information.

Native file slicing gives these applications a more direct way to control what enters the model’s context.

For example, an AI-powered financial assistant could first identify the relevant worksheet and then inspect only the cells needed to answer a question.

A legal document assistant could focus on selected pages of a contract, while an enterprise research agent could examine particular sections of a lengthy report.

This approach also creates opportunities for more advanced multi-agent workflows.

For example, one agent could identify relevant information in a document, while another analyzes the extracted information and prepares a report.

Businesses exploring these developments can also read about AI agents and their role in enterprise operations to understand how intelligent automation is expanding across business environments.

However, developers still need to manage file limits, access permissions, document quality and processing accuracy.

Selective processing does not automatically guarantee that an AI system will interpret the selected information correctly.

What Developers Should Know Before Using the Feature

Although the update reduces the need for additional file-processing infrastructure, developers should evaluate how it fits into their existing applications.

Important considerations include:

File compatibility: Check whether the required document and media formats are supported.

Processing configuration: Choose appropriate page ranges, spreadsheet cells, resolution and content layers.

Token management: Compare processing costs before and after introducing selective file inspection.

Output accuracy: Validate extracted information, especially when dealing with financial records, contracts or technical documentation.

Application security: Ensure uploaded files and their contents are handled according to the application’s data protection requirements.

Developers should also remember that selecting only a portion of a file for model processing does not necessarily mean the remaining content is excluded from the original upload or protected from access. File handling and security requirements still need to be considered.

Organizations working with autonomous systems should also understand the cybersecurity risks associated with AI agents accessing business systems.

Conclusion

Google’s new file slicing capabilities give Gemini API developers more control over how AI models process documents and multimedia content.

By allowing applications to select specific pages, spreadsheet ranges and media segments, the update addresses unnecessary processing in workflows involving large files.

The addition of native Microsoft Office and OpenDocument support also makes the API more practical for business applications that rely on everyday productivity documents.

As AI agents become more involved in document analysis and enterprise workflows, efficient access to relevant information will become increasingly important.

Google’s latest update represents another step toward making multimodal AI applications more flexible and resource-efficient.

Leave a Reply

Your email address will not be published. Required fields are marked *