ON THE RADAR

Gemini API adds server-side file slicing controls

The Gemini API now supports native file slicing: developers request only the pages, spreadsheet ranges or media segments a task needs, with tokens billed only for the parts the model inspects, alongside native Office and OpenDocument upload support.

Official source published Nov 23, 2026

Google has launched file slicing controls in the Gemini API, available across Google AI Studio and the Gemini platform, together with native file upload support for Microsoft Office and OpenDocument formats. Developers can pass PDFs, Office documents, spreadsheets, audio and video directly and request only the pages, cells, segments, layers, resolution or frame rate a task needs; billing applies to the parts Gemini actually inspects.

The workflow the API enables

Files are uploaded once through the Files API and their URI reused across turns and tool calls. Agents can specify which parts of a file to inspect directly inside a function response, which Google highlights for multi-turn efficiency, and the recommended pattern is skim-then-zoom: cheap extracted text, low-resolution previews or transcripts first, high-resolution tokens only for the charts, dense layouts and frames that matter.

Why it matters

The post names the practical pain directly: when model APIs only ingest whole files, agent harnesses end up running LibreOffice, PDF renderers and ffmpeg client-side to slice content, bloating memory and forcing enterprise platforms to maintain per-user sandboxes. Moving slicing, rendering and tokenization server-side removes that harness machinery. Together with Tool Retrieval, launched four days earlier for tool schemas, the API is consolidating the context-cost problem: only the bytes a task needs enter the window.

Editorial note

The billing model is the part that changes budgets: paying for inspected slices rather than whole documents makes dense-file workloads (decks, multi-tab workbooks, long recordings) predictable. The fine print to check in practice is how slicing granularity maps to token minimums, since a per-slice floor would erode the savings on small extractions.

Original sourceRead the official source