Gemini API File Slicing: Pay Only for Pages You Inspect

Gemini API file slicing, launched on 23 November 2026, lets developers ask for only the pages, spreadsheet cells, video clips or audio segments they need from a file, and Google bills tokens only for the parts Gemini inspects.

Gemini API file slicing: what is new

  • The controls work in the API across Google AI Studio and the Gemini platform on Vertex AI, on all Gemini 4 models. Existing file size and page limits still apply.
  • Native upload now covers Microsoft Office and OpenDocument formats, alongside PDFs, audio and video.
  • A file can be uploaded once through the Files API and its URI reused across turns and tool calls. An agent can also name the slice inside a function response.

What you can slice

  • Documents and slides (PDF, Office and OpenDocument): page range, resolution (low, medium or high) and content layer (page text or page image).
  • Spreadsheets (.xlsx, .xls, .ods): worksheet tab, cell range, resolution, and layers for data, formulas and visuals.
  • Video: start and end offsets, frame rate, resolution (low or high), and layers for transcript, frames or audio.
  • Audio: start and end offsets to clip an interval.

What Google and its partners say it saves

  • Google describes a skim-then-zoom pattern: read every page cheaply as extracted text, then spend high-resolution tokens only on the page with the chart you need.
  • Vercel says skimming a page for text extraction used 14x fewer tokens than rendering the whole PDF.
  • LiteLLM says slicing cut prompt tokens by 67% for a PDF and 33% for a workbook in its own testing.

What to check before you rely on it

  • The announcement does not list a new price. Check the token rates for your chosen Gemini 4 model before estimating savings.
  • If you omit processing options, documents and slides default to layout-preserving page images, and spreadsheets include evaluated values, formulas and sheet names across all tabs. Savings depend on setting the slice.
  • The partner figures come from the partners’ own tests, not an independent benchmark.

What this means for you: Indian teams building agents over long PDFs, decks or multi-tab workbooks can now cut what each call sends without running their own page renderers or media tools. The gain depends on how well your agent picks the right slice.

Gemini API file slicing FAQ

What is Gemini API file slicing?

It is a set of controls that lets you request specific pages, cell ranges, video segments or audio intervals of an uploaded file, so Gemini loads and bills only those parts.

Which models and platforms support it?

Google says it works across all Gemini 4 models, in Google AI Studio and on the Gemini platform on Vertex AI.

Does it support Word, Excel and PowerPoint files?

Yes. Google added native upload for Microsoft Office and OpenDocument formats, including documents, slides and spreadsheets.

Sources

Related: Gemini Decisions API: Price, Speed and How It Works

Last updated: 25 November 2026