Close menu
Explore Plans
Mobile menu Close menu
Gemini

Analyze a file

Pro plus icon 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 code
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 code
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 code
Gemini.analyzeFile.PromptUsed
Type
String
Example
Summarize this document.

Model used The Gemini model that produced the response.

Slug
model_used
Filter code
Gemini.analyzeFile.ModelUsed
Type
String
Example
gemini-2.5-flash

Created at When the response was generated.

Slug
created_at
Filter code
Gemini.analyzeFile.CreatedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00