Skip to main content
What's new. Why it matters.
Apps & Products•Product Update

Google Launches Server-Side File Slicing Controls and Native Office Support in the Gemini API

Developers building AI agents on Google AI Studio and Vertex AI can now upload PDFs, Microsoft Office files, OpenDocument workbooks, audio, and video once—then inspect only targeted page ranges, spreadsheet cells, or time offsets while paying tokens exclusively for what the model reads.

By TrendyFlash Editorial Desk (Editorial Desk)
Published: • 6 min read
Authentic 35mm editorial documentary photograph on Kodak Portra 400 of two software engineers walking along a sunlit brutalist limestone campus terrace discussing a printed multi-page report and tablet
Google DeepMind’s new Gemini API file slicing controls let developers upload large Office documents, PDFs, and media files once and inspect targeted ranges server-side.Credit: TrendyFlash Editorial Photography

At a Glance

  • What changed: Google introduced native server-side file slicing controls and direct Microsoft Office (.docx, .pptx, .xlsx) and OpenDocument support in the Gemini API across Google AI Studio and Vertex AI.
  • Who can use it: All developers building with Gemini 4 models (including gemini-4-hydrogen and gemini-4-neon) through Google AI Studio, the Gemini platform, and Vertex AI.
  • What it costs: No separate slicing fee; developers are billed tokens strictly for the specific pages, cell ranges, resolution levels, or media offsets inspected rather than the entire uploaded file.
  • Why should I care: Agents no longer need client-side LibreOffice, PDF renderers, or ffmpeg sandboxes to chunk files—enabling low-cost skim-then-zoom workflows that cut prompt token spend on dense enterprise documents.

Google has introduced native server-side file slicing controls in the Gemini API alongside direct upload support for Microsoft Office and OpenDocument formats across Google AI Studio and Vertex AI. Instead of ingesting entire multi-hundred-page PDFs, sprawling Excel workbooks, or hour-long recordings upfront, developers and autonomous agents can now upload a file once and request only the exact pages, spreadsheet ranges, media segments, and content layers needed for each step—paying tokens strictly for the inspected slices.

Authored by Google DeepMind Senior Product Manager Rohan Doshi and Principal Engineer Ben Caine, the release directly targets one of the largest sources of latency and wasted spend in production agent harnesses (Model Pricing & Inference). When model APIs only accept whole-file payloads, teams are forced to run local LibreOffice, PDF rasterizers, and ffmpeg inside client containers just to split documents before inference—bloating disk usage and forcing enterprise platforms to maintain per-user sandboxes.

Upload Once, Slice Across Turns—and Inside Tool Responses

With the updated Files API, a developer uploads a document, deck, workbook, or media asset a single time and receives a reusable URI. That URI can be referenced across multiple conversation turns or passed directly inside a function_result payload during tool execution. Because Gemini handles slicing, rendering, and tokenization server-side, the model receives pixels and text in the exact native representation it was trained on without client-side preprocessing.

This unlocks a two-stage “skim cheap, then zoom in” pattern for agentic workflows. In Google’s reference example, an agent first passes a Word report (quarterly_report.docx) to gemini-4-hydrogen using content_layers: ["page_text"] to locate the page containing a revenue bridge chart at minimal token cost. Once the model identifies page 3, a follow-up call to gemini-4-neon reuses the exact same URI with start_page: 3, end_page: 3, resolution: "high", and content_layers: ["page_image"] to read the chart graphics and footnotes accurately.

Supported Formats & Server-Side Slicing Parameters

Native file slicing is available across all Gemini 4 models, with existing uploaded file size and page limits still in effect. When processing options are omitted, documents and slide decks default to layout-preserving page images, while spreadsheets include evaluated values, formulas, and sheet names across all tabs.

Media Category Supported Formats Targeting & Range Controls Resolution & Content Layers
Documents & Slides PDF, Microsoft Word (.docx), PowerPoint (.pptx), OpenDocument equivalents page_options with start_page and end_page ranges low, medium, or high resolution; page_text or page_image layers
Spreadsheets Excel (.xlsx, .xls) and OpenDocument (.ods) Worksheet tab (sheet_index) and cell range (visible_cells) low, medium, or high resolution; data, formulas, and visuals layers
Video Standard video formats via Files API URI Time intervals via start_offset and end_offset, plus adjustable fps low or high resolution; transcript, frames, or audio layers
Audio Standard audio recordings via Files API URI Targeted time-interval clipping via start_offset and end_offset Server-side segment extraction billed only for the inspected clip duration

Eliminating Client Sandbox Bloat for Enterprise Agents

For infrastructure and developer-platform teams, the biggest operational win is removing heavyweight document-conversion dependencies from agent runtimes (Cloud & Developer Infrastructure). Rather than maintaining containerized LibreOffice workers to convert Office files into PDFs and PNGs before calling an LLM, engineering teams can delegate format parsing and visual rasterization to Google’s managed pipeline.

Combined with granular layer selection—such as pulling raw formulas from an Excel tab without rendering full-sheet visuals, or reading a video transcript before fetching high-resolution frames—the new controls give gateway and SDK builders a straightforward lever to cut prompt token overhead in production.

Why It Matters

Enterprise AI agents routinely stall on the last mile of document engineering: real-world knowledge lives in 200-page PDFs, multi-tab Excel workbooks, PowerPoint decks, and long recordings. Previously, sending whole files inflated prompt token bills and blew through context budgets, forcing engineering teams to maintain brittle client-side LibreOffice, PDF, and ffmpeg pipelines inside per-user sandboxes. Moving slicing, rendering, and layer selection server-side into the Gemini Files API eliminates that local infrastructure bloat while aligning token billing with what an agent actually needs to inspect.

What Is Confirmed

Confirmed via Google DeepMind’s official developer announcement: server-side file slicing across all Gemini 4 models, native upload support for Microsoft Office (.docx, .pptx, .xlsx) and OpenDocument formats, reusable Files API URIs across user turns and function_result tool responses, page_options (start_page, end_page, content_layers: page_text or page_image), spreadsheet slicing (sheet_index, visible_cells, data/formulas/visuals), and audio/video interval clipping (start_offset, end_offset, fps, resolution).

What Remains Unclear

Google has noted that existing file size and total page limits still apply to uploaded files, and has not yet published granular per-partner token-savings benchmarks from early gateway and SDK adopters.

Sources & Underlying Evidence (2)

We link directly to the primary documents supporting our reporting and distinguish company claims from independently checked facts.

Related Coverage

Institutional equity analyst standing beside a floor-to-ceiling glass corridor window in Manhattan at blue-hour twilight reviewing a bound printed SEC Form S-1 prospectus and slate tablet against illuminated city skyline bokeh
Business Behind the Buzz•Business Analysis

Anthropic Debuts on Nasdaq as ANT in Record $81.3B IPO, Revealing $81B ARR, Positive Cash Flow, and Non-Voting AWS and Google Stakes

Anthropic closed its first day on the Nasdaq Global Select Market up 17.1% at $97.17 per share after pricing the largest U.S. IPO in history at $83—opening its Form S-1 books to reveal $33.24 billion in nine-month 2026 revenue, $6.57 billion in operating cash flow, a $104 billion paper GAAP loss, and a Public Benefit Corporation governance shield.

8 min read
Two AI infrastructure engineers walking outdoors along a sunlit brutalist limestone campus terrace balustrade under crisp morning daylight while reviewing printed latency benchmarks and a slate tablet
AI & Tech•Model & Runtime Release

Google Launches Gemini 4 Neon and Stitch Loop as Cloudflare Open-Sources Clairic and Vercel Debuts Multi-Agent Board

Production AI infrastructure pivoted toward lower-cost steerability, specialized extraction, and swarm coordination on November 18 as Google rolled out $3/M Gemini 4 Neon alongside 24/7 Stitch Loop agents, Cloudflare’s Workers AI Superintelligence neolab released open-weight Clairic and Clairic-flash with zero output fees, and Vercel shipped Board for multi-agent software factories.

8 min read