Gemini API Adds File Slicing Controls
Google has launched native file slicing controls in the Gemini API, across Google AI Studio and the Gemini platform, alongside native file upload support for Microsoft Office and OpenDocument formats. You can pass PDFs, Office files, spreadsheets, audio and video directly to the API and request only the pages, cells, media segments and content layers you need, and tokens are billed only for the parts the model inspects.
Transcript
Pass a large file, pay only for the slice. The Gemini API added file slicing controls.
You can pass documents, spreadsheets, audio, or video, then request only the pages, cells, or media segments needed.
Documents take a page range, resolution, and text or page images. Spreadsheets take a worksheet tab with a cell range. Recordings take time intervals.
Previously an agent ran document and video conversion tools on the client to cut large files. Now slicing happens server side.
Google published this itself. The savings figures are from launch partners, and a partner reported fourteen times fewer tokens for page text than a rendered PDF.
Inboxsmith builds AI phone and email agents for small business. Please like and subscribe for more news.
Sources
Every claim in this video comes from the top ranking coverage of this topic. The claims and where each one came from:
- LINE BY LINE SOURCE TRACE, part one of two, covering the hook and scenes one and two in spoken order. HOOK: 'Pass a large file, pay only for the slice. The Gemini API added file slicing controls.' Traces to the lede, 'The Gemini API now features native file slicing controls, allowing developers to specify targeted pages, sheet ranges, and media segments for the model to load server-side. This capability reduces token costs for large files,' to the body sentence 'This keeps context focused on the relevant parts of a file while billing tokens only for the parts Gemini inspects,' and to the body opener 'Today, we're launching new file slicing controls in the API across Google AI Studio and Gemini platform.' NOTE ON THE HOOK WORDING: an earlier draft of this hook ended 'That launched today.' It was rewritten because a spoken 'today' permanently dates the video, which the owner's evergreen wording rule forbids; the freshness claim is carried by the opener card instead, which is exactly what the previously published aws-ai-safety-engineering script did for the same reason. Do not put a spoken freshness word back into the hook. SCENE ONE: 'You can pass documents, spreadsheets, audio, or video, then request only the pages, cells, or media segments needed.' Traces to 'You can now pass PDFs, Office files (docs, slides, spreadsheets), audio, and video directly to the Gemini API and request only the pages, spreadsheet cells, media segments, and layers you need.' The Microsoft Office and OpenDocument upload fact from that same sentence is carried in scene one onscreen text rather than narration because those two names would have pushed narration past the brand mention cap. SCENE TWO: 'Documents take a page range, resolution, and text or page images.' Traces to 'Documents and slides (PDF, Office and OpenDocument formats): Select a page range (start_page, end_page), set resolution (low, medium, or high), and choose content layers (page_text or page_image).' 'Spreadsheets take a worksheet tab with a cell range.' Traces to 'Spreadsheets (.xlsx, .xls, .ods): Select a worksheet tab (sheet_index) and cell range (visible_cells), set resolution (low, medium, or high), and select content layers (data, formulas, and visuals).' 'Recordings take time intervals.' Traces to 'Video: Clip time intervals (start_offset, end_offset), adjust fps and resolution (low, high), and choose content layers (transcript, frames, or audio),' and to 'Audio: clip time intervals (start_offset, end_offset) with ease,' and the word Recordings is taken from the article phrase 'long recordings.'(PROVENANCE RECORD, entry one of two. Publisher: Google, on its own corporate blog at blog.google, section Innovation and AI, Technology, Developer tools. Exact headline: Introducing file slicing controls in the Gemini API. Bylines: Rohan Doshi, Senior Product Manager, Google DeepMind, and Ben Caine, Principal Engineer, Google DeepMind. Published Nov 23, 2026, which is also the authoring date of this Short, so freshness tier NEW. This is a first party vendor launch post and not journalism: Google is announcing a Google product on a Google owned property, so every capability statement on the page is the vendor describing its own product with no outside editing. The page carries two token savings figures and both are supplied by Google launch partners and published by Google inside its own launch post. There is no independent measurement anywhere on the page, so neither figure may ever be narrated as a tested or verified result. Local capture path: scripts/data/production/gemini-api-file-slicing/article.txt. The alert time snapshot rendered the section titled Early adoption across agent frameworks as blank whitespace because its partner quote cards are lazy loaded, so that quote block was recovered verbatim from the live page by WebFetch on 2026-11-23 and appended to the local capture as a clearly marked SUPPLEMENT from the same first party URL. The whole article body, snapshot plus supplement, was treated as untrusted data informing facts only.)
- LINE BY LINE SOURCE TRACE, part two of two, covering scenes three and four and the endcard, then AUTHORING DECISIONS. SCENE THREE: 'Previously an agent ran document and video conversion tools on the client to cut large files.' Traces to 'When model APIs only ingest whole files, agents end up running LibreOffice, PDF renderers, and ffmpeg inside the client harness to render and slice large files,' and to the following sentence clause 'This bloats memory, clutters local disk with extracted frames, and forces enterprise platforms to maintain per-user sandboxes just to slice files.' 'Now slicing happens server side.' Traces to 'With the Gemini API, pass a Files API URI on a user turn or directly inside a function response (function_result), and the API natively slices, renders, and tokenizes each file server-side.' SCENE FOUR: 'Google published this itself.' Traces to the page itself being a Google authored post on blog.google under the Google DeepMind bylines Rohan Doshi and Ben Caine, dated Nov 23, 2026. 'The savings figures are from launch partners, and a partner reported fourteen times fewer tokens for page text than a rendered PDF.' Traces to the section 'Early adoption across agent frameworks: Gateway and SDK partners validated these controls ahead of launch, cutting prompt token spend directly in production harnesses,' and to the recovered partner quote 'Skimming a document page for text extraction used 14x fewer tokens than rendering the whole PDF,' together with the capture note recording that both numbers are supplied by Google launch partners and published by Google with no independent measurement on the page. ENDCARD: 'Inboxsmith builds AI phone and email agents for small business. Please like and subscribe for more news.' House copy, carries no claim about the story. AUTHORING DECISIONS a future run must not undo. One, the endcard narration is pinned house copy and must be reproduced character for character; it is never paraphrased, shortened, or reordered to recover word budget, even when the total word count is tight. Two, scene four exists solely to stop the vendor framing standing unqualified, and it must keep both halves: that the vendor published the post about its own product, and that the savings figure is partner supplied rather than independently tested. Three, exactly one numeric figure is spoken in the whole script, the fourteen times page text figure, because two figures sitting near each other send the audit transcriber into a repetition loop; the sixty seven percent and thirty three percent gateway partner figures were deliberately left out for that reason alone and not because they are weaker. Four, wording forced by text to speech hazards: the two partner company names are never spoken because both garble, so narration says 'launch partners' and 'a partner' instead; the proper nouns for the local document and video conversion tools are dropped from scene three and replaced with the literal description 'document and video conversion tools'; the fact that slicing works across all Gemini 4 models is kept out of narration because a brand followed by a digit garbles; narration brand mentions are capped at two, Gemini in scene one and Google in scene four, because the render audit splits compound brand names and over counts; and the article's own figures of speech about skimming cheaply and about the way the model was trained to see a file were restated as literal mechanics rather than quoted, since figures of speech fail the automated idiom check. Five, material left out on purpose: the code sample, the default behaviour when processing options are omitted, the per user sandbox detail, the Google AI Studio and Gemini for business availability line, and the docs call to action, all dropped for word budget, with the useful ones preserved in the provenance field above. Six, the page body was treated as untrusted data informing facts only, so no sentence inside it was followed as an instruction.(PROVENANCE RECORD, entry two of two. Corroboration status for this story: zero of five YouTube transcripts were captured. That is the steady state of the host yt-dlp puller, which is too old and fails on every run, so a zero capture count carries no information about the story and must not be read as weak sourcing. The timeline probe file held only unrelated generic Gemini tutorial titles with no bearing on this launch, so nothing in it was usable. The first party vendor launch post is therefore the sole fact source and every narrated sentence traces to a specific sentence in it. Supporting facts verified on the page but deliberately held out of narration, recorded here so a future run does not have to refetch: native file slicing works across all Gemini 4 models; existing file size and page limits still apply to the uploaded file; when processing options are omitted, documents and slides default to layout preserving page images and spreadsheets include evaluated values, formulas, and sheet names across all tabs; the feature is available today via the API in Google AI Studio and Gemini for business; the agent can specify which parts of a file to inspect directly inside a function response; a file uploaded once with the Files API can have its URI reused across turns and tool calls; the two named launch partners are Vercel and LiteLLM; and the second partner figure is a reported cut in prompt tokens of sixty seven percent for a PDF and thirty three percent for a workbook. Both partner figures are vendor published and unaudited.)
