At this time, we’re introducing vital updates to the way you ingest information into the Gemini API: help for Google Cloud Storage (GCS) object registration, HTTPS/Signed URLs and increased inline file size limits. These adjustments are designed that can assist you deliver your individual information — wherever it lives — straight into Gemini API. There’s not a have to re-upload information from current storage, permitting you to scale your AI functions to manufacturing sooner.
Convey your individual information: GCS and exterior URLs
Beforehand, utilizing massive information (video, lengthy audio, large paperwork) required importing them to the Gemini Files API, the place they persevered for less than 48 hours. Whereas ample for prototyping, this ephemeral storage turned a bottleneck for manufacturing apps counting on persistent information in cloud storage platforms.
We’re eradicating this friction with two new enter strategies.
1. Exterior URLs (public / signed):
We now help each information saved in public domains, in addition to non-public storage (through signed URLs)
- You possibly can cross any publicly accessible URL (like a PDF or picture on the net) straight in your technology request.
- We help pre-signed URLs for accessing information from AWS S3, Azure Blob Storage or different cloud suppliers.
The Gemini API securely fetches the content material throughout processing, eliminating the necessity to obtain content material to your backend simply to ahead it to the API.
2. Register GCS information: In case your information is already in Google Cloud Storage (GCS), you not want to maneuver bytes. Now you can register your GCS information straight with the Recordsdata API.
Elevated inline limits
For builders preferring utilizing inline information for pace and ease, we’re growing the utmost payload dimension for inline information from 20MB to 100MB (base64 encoded, with various limits based mostly on information varieties). That is preferrred for prototyping, real-time functions, and dealing with bigger pictures or brief audio clips while not having any intermediate storage.
With these updates, you now have a strong toolkit for information ingestion tailor-made to your particular wants:
