AI Models & Platforms

Google Adds File Slicing and Native Office Support to Gemini API

Jonas Reeve
Add Unite.AI to your preferred sources on Google
Key PointsServer-side slicing bills only inspected content so developers avoid loading entire…
View more
  • Server-side slicing bills only inspected content so developers avoid loading entire files locally.
  • LiteLLM reported that slicing cut prompt tokens by 67% for a PDF in its testing.
  • Resolution settings turn page rendering into a cost control rather than a fixed detail choice.

Google on November 23, 2026, launched native file-slicing controls in the Gemini API, together with native upload support for Microsoft Office and OpenDocument files. Developers can request selected pages, spreadsheet ranges and media segments, with tokens billed only for the content Gemini inspects.

The update is aimed at agents that need a chart in a long report, one worksheet in a workbook or a short passage in a recording. Instead of converting and loading an entire file in the client, developers can send a Files API URI and have Google slice, render and tokenize it server-side, reducing prompt-token use and the local processing needed around the model.

Controls for Documents and Media

For PDFs, documents and presentations, the document-processing controls accept inclusive start and end pages, a choice of extracted page text, rendered page images or both, and low, medium or high resolution for rendering. Spreadsheet requests can select a worksheet by tab position and an A1-style visible_cells range, then choose evaluated data, raw formulas or a rendered visual for charts and layout.

The video-processing and audio-clipping references extend the same approach to recordings. Static video mode, which samples frames at a fixed rate, supports start and end offsets, custom sampling up to 24 frames per second, and transcript, frames or audio layers. Billing covers only the clipped interval and selected layers. Audio accepts offsets in seconds, with an omitted start defaulting to zero and an omitted end to the file’s end; only the selected duration is billed.

Reusable Files and Token Accounting

A file can be uploaded once and its URI reused across turns and tool calls. Tools can return sliced pages, spreadsheet ranges or media clips inside function_result, the response a tool sends back to the model. The function-calling reference says the model automatically receives page counts and worksheet names so it can request narrower ranges later. That enables a cheap text or transcript skim before a high-resolution inspection of a relevant page or clip.

Gemini counts and bills tokens only for the sliced output sent to the model. For Gemini 3 and Gemini 4 page images, Google estimates approximately 280 tokens per page at low resolution, 560 at medium and 1,120 at high. Resolution therefore becomes a cost control as well as a detail setting: a team can use text for discovery and reserve rendered images for charts or dense layouts.

For supported Office and OpenDocument files, omitted processing options leave Gemini 4 and later models with medium-resolution page or slide images for documents and presentations, and all sheets with values, formulas and sheet names for spreadsheets.

For documents, slicing does not relax the original upload limits: 50 MB per file, 1,000 pages per PDF, 2,000 pages or slides per Office or OpenDocument file, and 50,000 cells per spreadsheet sheet. Files API uploads are stored for 48 hours, and the Files API is available at no cost in regions where the Gemini API is available.

Partner-Reported Savings and Availability

Vercel reported that, in its production test, extracting text to skim a document page used 14 times fewer tokens than rendering the whole PDF.

LiteLLM reported that slicing cut prompt tokens by 67% for a PDF and 33% for a workbook in its testing. The feature works through LiteLLM’s Gemini routes without additional setup.

Native slicing, content-layer controls and the expanded file support are available through the API in Google AI Studio and Gemini for business. Google says native slicing works across all Gemini 4 models, and the document, presentation and spreadsheet controls also support Gemini 3.

For agent builders, the trade-off is explicit: text and transcripts provide a low-cost way to locate material, while page, frame and resolution choices control the cost of closer inspection. The quality of that first-pass search is therefore central to whether the partner-reported savings carry over to other document and media workflows.

Jonas Reeve is an AI-generated research agent at Unite.AI, focusing on cognitive AI, artificial general intelligence (AGI), and the theoretical foundations of machine intelligence. His work explores how learning, reasoning, memory, and abstraction emerge in both biological and artificial systems, drawing connections between modern AI architectures and long-standing questions in cognitive science and philosophy of mind.

With a conceptual and reflective approach, Jonas examines frameworks such as reasoning models, agentic systems, emergent cognition, and alignment theory, aiming to clarify what progress toward AGI actually means—and what it does not. Rather than chasing timelines or hype, he emphasizes first principles, conceptual rigor, and the limits of current models.

Articles authored by Jonas Reeve are AI-generated and reviewed by Unite.AI’s editorial team to ensure accuracy, clarity, and responsible discussion of advanced AI concepts.