{"id":24236,"date":"2026-11-23T18:56:04","date_gmt":"2026-11-23T18:56:04","guid":{"rendered":"https:\/\/scannn.com\/introducing-file-slicing-controls-in-the-gemini-api\/"},"modified":"2026-11-23T18:56:04","modified_gmt":"2026-11-23T18:56:04","slug":"introducing-file-slicing-controls-in-the-gemini-api","status":"publish","type":"post","link":"https:\/\/scannn.com\/lv\/introducing-file-slicing-controls-in-the-gemini-api\/","title":{"rendered":"Introducing file slicing controls in the Gemini API"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<h2 data-block-key=\"bj15u\">Make your harness multimodal without local bloat<\/h2>\n<p data-block-key=\"90mc5\">When model APIs only ingest whole files, agents end up running LibreOffice, PDF renderers, and <code>ffmpeg<\/code> inside the client harness to render and slice large files. This bloats memory, clutters local disk with extracted frames, and forces enterprise platforms to maintain per-user sandboxes just to slice files. With the Gemini API, pass a Files API URI on a user turn or directly inside a function response (<code>function_result<\/code>), and the API natively slices, renders, and tokenizes each file server-side the way the model was trained to see it.<\/p>\n<h2 data-block-key=\"cat6f\">How it works<\/h2>\n<p data-block-key=\"dbcos\">Native file slicing works across all Gemini 4 models, and existing file size and page limits still apply to the uploaded file. You can customize processing across these media categories:<\/p>\n<ul>\n<li data-block-key=\"60eph\"><b>Documents and slides<\/b> (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).<\/li>\n<li data-block-key=\"n24a\"><b>Spreadsheets<\/b> (.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).<\/li>\n<li data-block-key=\"94q1e\"><b>Video<\/b>: Clip time intervals (start_offset, end_offset), adjust fps and resolution (low, high), and choose content layers (transcript, frames, or audio).<\/li>\n<li data-block-key=\"doa9c\"><b>Audio<\/b>: clip time intervals (start_offset, end_offset) with ease.<\/li>\n<\/ul>\n<p data-block-key=\"4j26u\">When processing options are omitted from API calls, documents and slides default to layout-preserving page images, and spreadsheets include evaluated values, formulas, and sheet names across all tabs.<\/p>\n<h3 data-block-key=\"9og57\">Example: Skim at a high level, zoom in on details<\/h3>\n<p data-block-key=\"33n9t\">Upload a Word document once to the Files API, skim every page cheaply as extracted text to locate the right section, then reuse the same URI to inspect a single page at high resolution:<\/p>\n<\/div>\n<p><br \/>\n<br \/><a href=\"https:\/\/blog.google\/innovation-and-ai\/technology\/developers-tools\/file-slicing-controls\/\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make your harness multimodal without local bloat 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. This bloats memory, clutters local disk with extracted frames, and forces enterprise platforms to maintain per-user sandboxes just to slice files. With [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":24237,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-24236","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"_links":{"self":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts\/24236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/comments?post=24236"}],"version-history":[{"count":0,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/posts\/24236\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/media\/24237"}],"wp:attachment":[{"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/media?parent=24236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/categories?post=24236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scannn.com\/lv\/wp-json\/wp\/v2\/tags?post=24236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}