Google Ships Server-Side File Slicing for Gemini API
Google's November 23 Gemini API update adds server-side file slicing, native Office support, and resolution-based billing at roughly 280 to 1,120 tokens per page.

Why it matters
- Google launched native file-slicing controls and Office/OpenDocument uploads in the Gemini API on November 23, 2026.
- LiteLLM reported slicing cut prompt tokens by 67% for a PDF and 33% for a workbook; Vercel reported a 14x saving for text skimming.
- Page images cost roughly 280 tokens per page at low resolution, 560 at medium and 1,120 at high on Gemini 3 and Gemini 4.
- Upload limits hold at 50 MB per file, 1,000 pages per PDF, 2,000 pages or slides per Office file and 50,000 cells per sheet; Files API storage lasts 48 hours.
- Native slicing works across all Gemini 4 models; document, presentation and spreadsheet controls also support Gemini 3.
Google on November 23, 2026 launched native file-slicing controls in the Gemini API, letting developers request selected pages, spreadsheet ranges and media segments while paying tokens only for the content the model actually inspects. The same release adds native upload support for Microsoft Office and OpenDocument files, removing the client-side conversion step that previously forced developers to load entire documents into a prompt.
The economics are the story. LiteLLM, whose gateway routes traffic to Gemini models, reported that slicing cut prompt tokens by 67% for a PDF and 33% for a workbook in its testing. Vercel reported a steeper gap in its production test: extracting text to skim a document page used 14 times fewer tokens than rendering the whole PDF. Google's own token accounting reinforces the point — for Gemini 3 and Gemini 4 page images, the company estimates approximately 280 tokens per page at low resolution, 560 at medium and 1,120 at high.
Those figures matter because agent workflows, the fastest-growing category of API usage, routinely need one chart buried in a 500-page report, one worksheet in a multi-tab workbook, or a 30-second passage in a two-hour recording. Until now, targeting that content meant converting and uploading whole files, with the token meter running on everything the model saw.
What does the slicing API actually control?
For PDFs, documents and presentations, the document-processing controls accept an inclusive start and end page. Developers choose extracted page text, rendered page images, or both, and pick 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 among evaluated data, raw formulas, or a rendered visual that preserves charts and layout.
Video and audio get the same treatment through updated processing references. Static video mode, which samples frames at a fixed rate, supports start and end offsets, custom sampling up to 24 frames per second, and selection of transcript, frames or audio layers. Billing covers only the clipped interval and the selected layers. Audio accepts offsets in seconds, with an omitted start defaulting to zero and an omitted end running to the file's end. Only the selected duration is billed.
The architecture is server-side by design. Instead of converting and loading an entire file in the client, a developer sends a Files API URI and Google slices, renders and tokenizes the content in its own infrastructure. That reduces both prompt-token consumption and the local processing needed around the model.
How do agents use slicing across multiple turns?
A file can be uploaded once through the Files API and its URI reused across turns and tool calls. Tools can return sliced pages, spreadsheet ranges or media clips inside a function_result — the response a tool sends back to the model.
Google's function-calling reference says the model automatically receives page counts and worksheet names, so it can request narrower ranges in later turns. That enables a two-stage strategy the company frames as a cost lever: a cheap text or transcript skim first, followed by a high-resolution inspection of only the relevant page or clip. Resolution becomes a cost control, not just a detail setting — teams can use text for discovery and reserve rendered images for charts or dense layouts.
What are the limits and defaults?
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
- 50,000 cells per spreadsheet sheet
For supported Office and OpenDocument files, omitted processing options leave Gemini 4 and later models with a defined default: medium-resolution page or slide images for documents and presentations, and all sheets with values, formulas and sheet names for spreadsheets.
Files API uploads are stored for 48 hours, and the Files API itself is available at no cost in all regions where the Gemini API is offered.
Where is it available, and who has validated it?
Native slicing, the 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, while the document, presentation and spreadsheet controls also support Gemini 3.
Both named partners reported savings without extra plumbing. LiteLLM said the feature works through its Gemini routes without additional setup, which lowers the barrier for teams already routing through the gateway. Vercel's 14x figure came from a production test, not a benchmark.
For agent builders, the trade-off Google has drawn 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 — whether a keyword or transcript skim reliably surfaces the right page — is therefore central to whether the partner-reported savings carry over to other document and media workflows. A model that must re-render pages after a poor text skim will spend the savings it just saved. Google has priced the inspection tiers; how much developers actually save now depends on how well their agents search.
Source: unite.ai
More from Marcus Bennett
Show full bio
Senior reporter covering companies, deals and strategy in artificial intelligence and machine learning at AI In Context.
872 articles
Related articles
- Google Launches Gemini 3.1 Flash-Lite Starting at $0.25 Per Million Tokens
- Google Cuts Gemini Flash Pricing in Half With 3.7 Release
- Google Launches Gemini 3 Pro at $2/Million Input Tokens
- Google Ships Gemini 3.5 Flash, Promises Pro Model Next Month
- Google launches Gemini 4 Argon globally at $2 per million input tokens