Tools
Gemini API now supports larger files and more input sources
![]()
Google is making it much easier to bring your own data into the Gemini API. A new update increases the inline file size limit and adds support for files stored in Google Cloud Storage and on external URLs.
What it does
This release focuses on how you get data into Gemini:
- External URLs (public or signed): You can now pass any publicly accessible URL directly in a generation request, including signed URLs for private storage such as AWS S3 or Azure Blob Storage. Gemini fetches the content securely at request time.
- Registered GCS objects: If your data already lives in Google Cloud Storage (GCS), you can register those object URIs once with the Files API and reuse them across requests instead of re-uploading bytes.
- Higher inline limits: For quick prototyping and real-time use cases, the maximum payload size for inline data has been increased from 20MB to 100MB, so you can send larger images, short audio, or longer documents directly in the request body.
Why it matters
Previously, large files had to be uploaded to the Gemini Files API, where they only persisted for 48 hours, which was fine for demos but awkward for production apps. With URL and GCS support, you can now keep data in your existing storage and let Gemini read it on demand, cutting out duplicate uploads and extra plumbing.
The higher inline limit also means you can move faster during development. You can work with bigger samples or richer multimodal prompts without having to set up separate storage first, then switch to URLs or GCS when you’re ready to scale.
How to try it
Use the latest Gemini SDKs or REST API to:
- Pass public or signed URLs as file inputs in your requests.
- Register GCS object URIs with the Files API and reference them by name.
- Send base64 inline data up to 100MB for supported file types.
Check the Gemini API docs for details on file inputs, size limits, and authentication for GCS.
Try it: Increased file limits and inputs in Gemini API — then follow the Gemini API docs to plug your own data into Gemini.