This query returns Gemini's analysis of a document or image at the URL you provide, based on the prompt you specify.
Developer info
API endpoint slug
gemini.analyze_file
Runtime method
performQuery("gemini.analyze_file"}
Query fields
Model Dropdown list
Label
Model
Helper text
Which Gemini model to use.
Slug
model
Required
true
Can have default value
false
File url Text input > File
Label
File URL
Helper text
The public URL of the file to analyze — Gemini supports documents (PDF, plain text), images (JPEG, PNG, WEBP, HEIC, HEIF), audio (MP3, WAV, FLAC, AAC, OGG), and short video (MP4, MOV, WEBM, and others
Slug
file_url
Required
true
Can have default value
true
Prompt Text input > Long text
Label
Prompt
Helper text
Tell Gemini what to do with the file (e.g. "Summarize this document" or "Describe what's in this image").
Slug
prompt
Required
true
Can have default value
true
Ingredients
Analysis
Gemini's analysis of the file.
Slug
analysis
Filter
Gemini.analyzeFile.Analysis
Type
String
Example
This document is a quarterly sales report covering Q1 2026...
File url used
The URL of the file that was analyzed.
Slug
file_url_used
Filter
Gemini.analyzeFile.FileUrlUsed
Type
Web URL
Example
https://example.com/report.pdf
Prompt used
The prompt that was sent to Gemini.
Slug
prompt_used
Filter
Gemini.analyzeFile.PromptUsed
Type
String
Example
Summarize this document.
Model used
The Gemini model that produced the response.