Gemini Interface calculates file input usage based on the read range
CoinMeta
15h ago
Ai Focus
Google On November 23, Gemini API file slicing will be launched. PDF allows for read-only access to selected pages, and tables allow for read-only access to a single cell. According to the instructions in Google, the portion of the file that is actually checked against the model will be counted towards the token usage.
Helpful
No.Help

Google On November 23, file slicing with Gemini API will be launched. PDF allows for read-only access to selected pages, and tables allow for read-only access to a single cell. According to the instructions in Google, the parts of the file that are actually checked against the model will be counted towards the token usage.

Control items now enter the API of the Google AI Studio and Gemini platforms, and come online with support for uploading native files in Microsoft's Office and OpenDocument formats. This applies to all Gemini 4 models. Developers still need to comply with the current limits on file size and number of pages; the change occurs at the step where the files are submitted for model inspection.

Besides the page number, there are other factors that can determine what the model reads.

In the past, in order to provide only a portion of the data to the model, tools might have to convert the entire Office file into another format, or they would have to split PDF and the video locally. Google listed the memory, disk, and isolation environment overheads incurred by local renderers and video processing tools. With this change, the selection of scope, rendering, and metatization are now handled within API. After being uploaded once via Files API, the returned file URI can be reused in subsequent rounds and by subsequent tools.

The scope and content layers can be selected separately. The PDF, Office, or OpenDocument documents and slides support starting pages, ending pages, as well as low, medium, and high resolutions. For the content layer, it is possible to extract text or page images. If only locating information is needed at the moment, the text layer may be sufficient. When it is necessary to identify legends, table layouts, and footnotes, then the affected pages can be read again separately, and the image layer can be used instead.

The way of slicing in spreadsheets is different. Requests can specify worksheet tabs and a visible cell range, and one can choose between the data layer, the formula layer, and the visual content layer. For example, when checking the total numbers, only the values are displayed in the data layer, while the formula layer retains the calculation notation. When searching for information across worksheets, the scope of one tab does not automatically replace that of other tabs. Google Note: When processing options are omitted in the request, the spreadsheet by default includes the calculated values of all tabs along with the worksheet names.

Long videos support extracting segments based on start and end times, as well as adjusting the frame rate. The resolution can be set to low or high, and it's also possible to separately extract transcripts, video frames, and audio. For audio, it's possible to specify start and end offsets, and one can choose to extract either just the transcript or the original sound. API Users can first use the transcript to identify the speeches they need to review again, and then extract the corresponding video or audio. The input options selected for each of these two requests will determine the materials that are sent to the model.

One upload can accommodate two different reads.

The example provided by Google demonstrates two rounds of calls using a Word quarterly report. In the first round, Gemini and Hydrogen are used to read the text layer, traversing each page to locate the income change chart. In the second round, the original file URI is continued, but Gemini and Neon are used instead, explicitly specifying the high-resolution image on page 3, and asking for the legend and footnotes. What is saved in this example is the number of pages that need to be processed by the visual model; the text reading used for positioning in the first round is also included in the processing flow.

File selection can also be placed within the return result of a function call. For proxies that have the capability to call tools, these tools can return references to the uploaded files and allow for the selection of the parts that need to be viewed subsequently. For example, if a business system first locates a certain worksheet, the proxy can then directly check the corresponding range after obtaining the reference. Parts of the process that were previously handled before model calls now have an entry point that changes with the content returned at that time.

This also provides the caller with a point for checking the bill. First, check if the request explicitly specifies a page number or worksheet, and then compare it with the content layer being used. Google states that documents or presentation files use the page images with retained formatting by default. When the file is connected to a new interface but the request still follows the default processing, one cannot expect the same reduction in metadata as in the example.

The number of tokens saved depends on how the document is read.

Google showcases the actual test results of partners. Vercel claims that its text extraction test usage is approximately one-fourteenth of rendering the entire PDF. LiteLLM reported in their respective PDF and workbook tests that the number of prompt words was reduced by 67% and 33% respectively. These ratios are based on disclosed task comparisons; there are differences in the input and reading targets for each case, and no guarantees were made in the announcement that all files would achieve the same reduction rate.

File uploads, input tokens, and the total cost of products should also be considered separately. Google reveals the charging standard for file inputs of the part that is being checked; no new unit token prices are provided in the text. If you scan the text first and then the images, both rounds of usage should be taken into account during verification. If the task requires the full text to retain its format at once, then the available space for a smaller scope is even more limited.

Google This time, the choice lies in each individual call. A previously uploaded document can first serve as a full-text indexing reference, and then the page that needs verification can be submitted for another round of high-resolution processing. The reference to the same file remains valid between the two rounds.

Tip
$0
Like
0
Save
0
Views 31
CoinMeta reminds readers to view blockchain rationally, stay aware of risks, and beware of virtual token issuance and speculation. All content on this site represents market information or related viewpoints only and does not constitute any form of investment advice. If you find sensitive content, please click“Report”,and we will handle it promptly。
Submit
Comment 0
Hot
Latest
No comments yet. Be the first!
Related
OpenAI is willing to pay up to $8,000 per month to promote ChatGPT to small businesses
OpenAI launches the OpenWorks project, recruiting individuals and small consulting teams who understand AI to provide free offline assistance to local small businesses in the United States. Selected partners can receive up to $8,000 in subsidies per month, but they are required to invest four days of face-to-face work per month and organize a community workshop; participating businesses can also get three months of ChatGPT Business for free.
Decrypt
·2026-11-24 21:39:39
3
BTCS Sells More Than Half of Its Ethereum to Repay a $43.8 Million Debt to Aave
Ethereum treasury company BTCS sold approximately 27,300 ETH to cash in $43.8 million for the repayment of Aave loans, reducing its Aave outstanding debt to about $10.5 million and lowering the remaining loan value ratio to around 32%. The company also temporarily withdrew funds from the Imperium liquidity pool, causing the BTCS stock price to fall by about 6.3% subsequently.
crypto.news
·2026-11-24 21:29:11
17
XRP Under pressure after breaking below $1, selling pressure puts $0.90 at risk
XRP hovers around $0.93 and still struggles to return above the $1 mark. US spot XRP ETF recorded a net outflow of $2.49 million on November 23, continuing the trend of institutional withdrawals; the article states that the demand range around $0.90 has become a key support level in the short term.
Coinpedia
·2026-11-24 21:22:19
20
How Instant Exchange Service Providers Handle Large Orders: Limits, Routing, and User Expectations
This article states that each exchange service provider sets a different limit for each individual transaction, so as the amount of currency being exchanged increases, the number of available quotes decreases. Taking the quote page on SwapSpace for exchanging BTC for USDT ( TRC20 ) as an example, the article explains the differences between fixed and floating exchange rates for large orders, several ways service providers can withdraw from the quote list, and what actions can be taken when no single quote covers the entire amount.
U.Today
·2026-11-24 21:20:34
21
Why a mathematical proof has experts in AI warning that humanity may soon lose control
Meta Chief AI Official Alexandr Wang Warns on Sunday: Artificial Superintelligence is Approaching, and Humans May Not Be Able to Control Systems That Are Much Smarter Than Themselves. He views the participation of Claude in proving the 167-year-old Riemann Hypothesis as an important signal and states that society should not be "handled over" to AI.
Decrypt
·2026-11-24 21:20:22
20
View More