Subscribe to Our Newsletter

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Gemini API expands file input options and raises upload limits

The update direct ingestion from cloud storage and URLs while increasing inline file sizes to support production-scale workloads.

Defused News Writer profile image
by Defused News Writer
Gemini API expands file input options and raises upload limits
Photo by appshunter.io / Unsplash

Google said the Gemini API now accepts file input directly from Google Cloud Storage (GCS) buckets as well as from any HTTP or signed URL, alongside a significant increase in the maximum inline file size.

Under the update, the maximum size for inline file uploads has been raised to 100MB from 20MB. Google said the change removes a long-standing constraint for developers building production applications that rely on large documents, media files or datasets.

Previously, files exceeding the inline limit had to be uploaded to the Gemini Files API, where they were retained for only 48 hours. Google said this created operational friction and bottlenecks, particularly for applications requiring persistent or repeat access to the same assets.

The API can now fetch content directly from publicly accessible URLs and from pre-signed URLs hosted on third-party cloud services. This includes signed URLs for AWS S3, Azure Blob Storage and other compatible providers. Google said the change eliminates the need for developers to download files to their own back-end infrastructure before forwarding them to Gemini, reducing latency and simplifying system architecture.

For content already stored in GCS, developers can register files with the Files API and reuse them across multiple requests without moving or duplicating data. Google noted that registering GCS URIs requires authentication using OAuth credentials as an Identity and Access Management user or service account with read permissions on the relevant bucket.

Inline uploads now support base64-encoded payloads of up to 100MB, although Google said size limits may vary slightly depending on data type. The company added that all new file input methods are supported in the latest Gemini SDKs and are accompanied by updated documentation and a demonstration applet.

The changes are aimed at making Gemini easier to integrate into enterprise and production environments, particularly where large files and multi-cloud storage are part of standard workflows.

The Recap

  • Gemini API supports GCS and external URL file inputs.
  • Inline file size limit raised from 20MB to 100MB.
  • New file input methods available in latest SDKs now.
Defused News Writer profile image
by Defused News Writer

Read More