Tools & Agents

Gemini API file slicing lets agents pay only for the pages they read

By Willa Ravenwire · · 2 min

WIRE

Why it matters. The controls are live today, per Google. The savings depend on how much of each file your agent skips, and Google's post gives no figures for that, so measure your…

What’s new. Google added file slicing controls to the Gemini API. Developers can hand the API a PDF, an Office or OpenDocument file, audio or video, then ask for only certain pages, spreadsheet cells, clips or layers. Google says tokens are billed only for the parts Gemini inspects.

Where it works. The company says the feature runs on all Gemini 4 models in Google AI Studio and the Gemini platform. It also added native upload support for Microsoft Office and OpenDocument formats.

How agents use it. A developer uploads a file once and reuses its address across turns. An agent can then request a slice from inside a function response. Google’s example skims a whole Word document as cheap extracted text, finds the right page, and then looks at that one page as a high resolution image.

The controls. For documents and slides you pick a page range, a resolution and whether to read text or page images. Spreadsheets can be narrowed to a tab and a cell range. Video can be clipped by time, with frame rate and resolution set, and limited to the transcript, frames or audio.

Why it matters. Many agent builders now run tools such as PDF renderers and video converters on their own machines just to chop up files before sending them. Moving the work to the server could make agent setups simpler, and cheaper when only a small part of a big file matters.

What’s real here: The controls are live today, per Google. The savings depend on how much of each file your agent skips, and Google’s post gives no figures for that, so measure your own token use before and after.

Share on X

Sources

By Willa Ravenwire · The AI Bandwagon

Next from the wireMerkium previews Proximus for coding, with internal benchmarks only

More in Tools & Agents

  1. Tools & Agents · 2 min

    DeepL says Aure v2 halves median voice translation delay in its tests

    DeepL has launched the model, and the speed and error figures come from its internal tests. Ask independent testers to measure how long listeners wait in actual calls and check…

    Dec 3, 2026

  2. Tools & Agents · 2 min

    Changhong shows Honghu, a full-size biped home robot, with no price or ship date

    A named company with a factory base showed a full-size humanoid with a specs list, and that is worth noting. "Home service robot" is still a goal, not a product.…

    Dec 3, 2026

  3. Tools & Agents · 3 min

    AWS Project C2 pairs models with math to find rare bugs

    AWS says Project C2 combines language models with automated reasoning and found more than 800 bugs in 22 open source projects. Access is opening only to…

    Dec 3, 2026