BriefsToolAvailable now
Google adds native file slicing controls to the Gemini API
Developers can now specify targeted pages, spreadsheet ranges, and media segments to reduce token costs when using the Gemini API.
Summary
Google has introduced file slicing controls for the Gemini API, allowing developers to process specific parts of documents, spreadsheets, and media files server-side. This update supports Microsoft Office and OpenDocument formats, enabling more efficient token usage by only billing for the content the model inspects. Developers can now upload files once and reuse them across multiple turns or tool calls.
What changed
- Added native file slicing controls to specify pages, sheet ranges, and media segments.
- Added native file upload support for Microsoft Office and OpenDocument formats.
- Enabled server-side processing to reduce token costs for large files.
- Allowed agents to specify file parts to inspect directly within function responses.
Availability
Available now“Native file slicing, content-layer controls, and expanded files support are available today via the API in Google AI Studio and the Gemini platform.”
Founder takeaway
If you are building agents that process large documents or media, update your implementation to use server-side slicing to lower your token costs and reduce local processing overhead.
Source
Researched and drafted with AI from the official sources above, then checked automatically before publishing. Spotted a mistake? Tell us.
Related
More briefs
Google adds an AI training control for Search Services History
A new setting lets users keep Search Services History on while opting out of generative AI model training for future activity.
Google AI1 min read
Allen Institute for AI releases Olmicro open hybrid language models
Allen Institute for AI releases Olmicro, a suite of five open hybrid language models with 64K context support.
Hugging Face1 min read
Vercel lets AI agents investigate and manage Vercel Firewall from the CLI
Vercel added CLI commands for coding agents to inspect firewall traffic, review bot activity, and configure managed rulesets.
Vercel1 min read
One email, every Monday
Briefs are published here through the day. Monday Heist is the email: one useful AI workflow, the files to use it, and the catch. The first issue is being prepared; subscribers get it first. Free, and you can leave in one click.
One email. Every Monday.