Skip to content
digitalizando.

The Gemini API lets developers choose which pages, cells and video segments to process

Google announced on November 23rd, native controls for selecting pages, cells, and ranges before processing. See in what situations cropping can save tokens and where it can impact context.

Michael Burrows / Pexels

What changes before sending a question.

On November 23, 2026, Google announced file cropping controls within the Gemini API. This integration allows you to specify which pages, cells, or media ranges the model should process. The company has also begun accepting the native sending of Microsoft Office and OpenDocument formats within the API. This announcement applies to developers using the API in Google AI Studio and the Gemini platform.

This is a change for developers who previously needed to export the spreadsheet, generate images of pages, or send the entire content to achieve a specific section. With the Files API, developers can now send the file once and reuse its reference for questions about different sections. Cropping occurs on the server. The documentation maintains the page and size limits that apply to the uploaded file.

When the file layer changes the response.

According to the announcement, native cropping works with Gemini 4 models. For documents and presentations, developers can select the pages, resolution, or text/image layer. In a spreadsheet, you can also indicate the sheet and cells, and select values, formulas, or visual elements. Videos accept time ranges, image options, and layers like transcription, frames, and audio. Audio files accept cropping by time.

The selection should align with the question. Searching for a paragraph that mentions a policy requires a different crop than reading totals within a chart. The default option for documents and presentations preserves pagination in images, according to Google. In a spreadsheet without cropping, the API includes evaluated values, formulas, and sheet names. Check what the integration selects in the test request.

The number you need to retrieve should follow a specific rule.

Imagine a fictitious 32-page report. Page 12 shows 418 shipped orders, and page 13 indicates 38 pending orders. Page 14 indicates that canceled orders are excluded from the totals. On page 31, a glossary explains that the report groups shipments by date of dispatch. If the integration sends only pages 12 and 13, the model can repeat both numbers and assign them to the purchase date.

Create a response with four key points. Record the two totals, the exclusion of canceled orders, and the date rule. Perform an initial read to find the methodology and repeat the question using pages 12 through 14 plus page 31. Separate the two crops if the integration configuration allows for a single range at a time. When a table’s text is incomplete, compare it with the page image and confirm the value in the original file.

How to measure the test and interpret the cost.

Use a fictitious or authorized copy of a document and repeat the same question with the same model. Record the input tokens and the correct points in the response for each attempt. Consider cropping suitable for repetition when preserving the four key points, including the two rules that give meaning to the numbers. If a rule disappears, expand the selection and verify the difference. The Digitalizing test helps to review this plan with example data.

Google indicates that the token cost for the file considers the processed portions. The cost of the complete request depends on what the integration also sends and the generated response. The editorial team verified the controls and scope described by the provider. The 32-page case is a simulation. Since the entire file is sent to the Files API, check what data can exit your environment before testing.

Source blog.google ·