OFICIAL Google Blog

Introducing file slicing controls in the Gemini API

What happened
Based on Google Blog · Nov 23, 2026

Google’s Gemini API introduces native file slicing controls to let developers load only specific parts of large files, reducing token costs and streamlining server-side processing across formats like PDFs, Office files, audio, and video.

Introducing file slicing controls in the Gemini API
Google Blog — Google
Key points
·
Gemini API now supports native file slicing for targeted pages, sheet ranges, and media segments to reduce token costs
·
Server-side slicing eliminates need for client-side tools like LibreOffice or ffmpeg in enterprise workflows
·
Native file slicing is available across all Gemini 4 models with existing file size and page limits still enforced
Key numbers
·
Native file slicing is supported across all Gemini 4 models, with existing file size and page limits still applying.

The Gemini API now supports native file slicing controls, enabling developers to specify targeted pages, sheet ranges, or media segments for server-side processing. This feature reduces token costs by billing only for the parts of a file that the model inspects. The controls are available across Google AI Studio and the Gemini platform, supporting formats such as PDFs, Microsoft Office files, OpenDocument formats, audio, and video. Developers can pass file URIs directly in API calls or function responses, allowing the API to handle slicing, rendering, and tokenization server-side.

Real-world workflows often involve dense documents like PDFs, slide decks, multi-tab spreadsheets, and long recordings. Previously, developers had to flatten entire files to plain text or pre-process them locally, which increased complexity and resource usage. With server-side slicing, developers no longer need to rely on client-side tools like LibreOffice, PDF renderers, or ffmpeg to render and slice files. This reduces memory bloat, eliminates the need for local disk storage of extracted frames, and removes the requirement for enterprise platforms to maintain per-user sandboxes for file processing.

Native file slicing is supported across all Gemini 4 models, with existing file size and page limits still applying. When processing options are omitted, documents and slides default to layout-preserving page images, while spreadsheets include evaluated values, formulas, and sheet names across all tabs. Developers can upload a file once to the Files API, skim pages as extracted text to locate sections, and reuse the same URI to inspect a single page at high resolution, optimizing both cost and efficiency.

Gateway and SDK partners tested the new controls ahead of launch and reported direct reductions in prompt token spend within production environments. Native file slicing, content-layer controls, and expanded file support are now available via the API in Google AI Studio and the Gemini platform. Developers are directed to the documentation to begin implementation, alongside the introduction of the Gemini Decisions API, which leverages the Gemini Decision model for fast, calibrated multimodal decisions.

Original source → Deals on Clipraptor.com →