Google Gemini

App · AI Models · 14 actions

Write, read files, draw pictures, make videos, speak, transcribe and create embeddings with Google's Gemini models.

Actions

ActionWhat it does
Ask GeminiSend a prompt to a Gemini model and get back its written response.
Convert text to speechRead text aloud in one of Gemini's 30 voices and save it as a WAV file, such as a voicemail greeting or a spoken summary.
Count tokensCount how many tokens a text is for a Gemini model, to check a prompt fits before sending it or to estimate what it will cost.
Create a File Search storeMake a File Search store: a place on Google's side to keep files, such as policies or manuals, for 'Ask Gemini' to look answers up in and cite.
Create embeddingsTurn texts into vectors for semantic search, finding similar items or grouping them, ready to store in a vector database.
Delete a File Search storeDelete a File Search store and every file in it, for good.
Edit an imageChange a picture as you describe, such as removing the background, swapping the colors or adding a caption, or combine several pictures into one, with Gemini's Nano Banana models.
Extract dataPull the fields you name out of text or files, such as the total on a photographed receipt or the dates in a PDF contract, ready for a spreadsheet or a later step.
Generate a videoMake a short video with sound, 3 to 15 seconds long, from a description with Gemini Omni Flash, optionally bringing a picture to life.
Generate an imageDraw a picture from a description with Gemini's Nano Banana models, optionally working from reference pictures to edit them or keep a product or a face consistent.
List File Search storesList the File Search stores your API key's project has, with how many files each holds.
List modelsList the Gemini models your API key can use, with what each is for and how much it takes in and writes.
Transcribe audioTurn a recording into text with Gemini 3.5 Transcribe, in any of 85 languages, optionally telling speakers apart and timing every word.
Upload a file to a File Search storeAdd a file to a File Search store, such as a PDF, a Word document or a text file, and wait until Gemini has read it, so 'Ask Gemini' can answer from it in the next step.

Ask Gemini

Send a prompt to a Gemini model and get back its written response. Add pictures, PDFs, recordings or videos for it to read along with the prompt. Let it read the links in the prompt, run code, use Google Maps or answer from a File Search store, and see what it drew on.

Inputs

PromptprompttextRequired
The message or question to send to Gemini.
Modelmodeltext
Which Gemini model answers. Defaults to Gemini 3.8 Flash. A free API key can't use Gemini 4 Argon; turn on billing for it. You can also type any other Gemini model id.One of: gemini-3.8-flash (Gemini 3.8 Flash), gemini-3.6-flash (Gemini 3.6 Flash), gemini-3.5-flash-lite (Gemini 3.5 Flash-Lite (fastest, lowest cost)), gemini-4-argon (Gemini 4 Argon (most capable, needs billing)), gemini-3.5-flash (Gemini 3.5 Flash (older)), gemini-3.1-flash-lite (Gemini 3.1 Flash-Lite (older, retires May 2027)). Default: gemini-3.8-flash.
Instructionssystem_instructiontext
Standing instructions for how to answer: a role, a tone, a format, such as 'Answer in one short paragraph for a customer'.
Filesfileslist
Pictures, PDFs, recordings, videos or text files for Gemini to read with the prompt: upload them, pick files from an earlier step, or paste public web addresses, including links to public YouTube videos. Up to 10 files and 20 MB together.
Temperaturetemperaturenumber
How varied the answer is, from 0 (focused and repeatable) to 2 (more creative). Leave blank for Google's default, which Google recommends for Gemini 3 models.
Maximum length (tokens)max_output_tokensnumber
The most tokens the answer may use, thinking included; a token is about three quarters of a word. Leave blank for the model's own limit.
Thinkingthinkingtext
How hard the model thinks before it answers. More thinking is slower and uses more tokens, and helps with hard problems.One of: default (The model's own default), low (Low (quicker, cheaper)), medium, high (High (slower, for hard problems)). Default: default.
Answer from a File Search storefile_search_storetext
A File Search store for Gemini to look the answer up in, filled with 'Upload a file to a File Search store'. The files it used come back as citations. Leave blank to answer from the prompt and files alone.
Read links in the promptread_linkstrue/false
Let Gemini open the web addresses in the prompt, up to 20, and answer from those pages, such as 'Summarize https://...'. The pages it read come back as citations.Default: false.
Run coderun_codetrue/false
Let Gemini write and run Python to work the answer out, for sums, dates and data. The code and what it printed come back too.Default: false.
Use Google Mapsgoogle_mapstrue/false
Let Gemini look places up on Google Maps, for questions such as 'cafes near Union Square open now'. Name the place in the prompt. The places come back as citations; Google asks that they are shown with the answer. English only, and billed after 5,000 a month.Default: false.

Outputs

citationslist
What the answer drew on, each source once; empty when it drew on nothing outside the prompt.
code_runslist
The code Gemini ran, with Run code on.
finish_reasontext
Why it stopped: STOP when it finished, MAX_TOKENS when it ran out of room.
input_tokensnumber
Tokens read, files included.
modeltext
The model that answered.
output_tokensnumber
Tokens written.
response_texttext
Gemini's answer.
thinking_tokensnumber
Tokens spent thinking, billed as output.
total_tokensnumber
All of them together.
was_cut_offtrue/false
Whether the answer stopped at the token limit.
Example output
{
  "citations": [
    {
      "source": "file",
      "text": "Orders ship within one business day.",
      "title": "Returns policy.pdf",
      "url": ""
    }
  ],
  "code_runs": [],
  "finish_reason": "STOP",
  "input_tokens": 24,
  "model": "gemini-3.8-flash",
  "output_tokens": 12,
  "response_text": "Thanks for getting in touch. Your order shipped today.",
  "thinking_tokens": 96,
  "total_tokens": 132,
  "was_cut_off": false
}

Convert text to speech

Read text aloud in one of Gemini's 30 voices and save it as a WAV file, such as a voicemail greeting or a spoken summary.

Inputs

TexttexttextRequired
What to say.
Voicevoicetext
Whose voice reads it. Defaults to Kore.One of: Achernar (Achernar (soft)), Achird (Achird (friendly)), Algenib (Algenib (gravelly)), Algieba (Algieba (smooth)), Alnilam (Alnilam (firm)), Aoede (Aoede (breezy)), Autonoe (Autonoe (bright)), Callirrhoe (Callirrhoe (easy-going)), Charon (Charon (informative)), Despina (Despina (smooth)), and 20 more. Default: Kore.
How to say itstyletext
The delivery, in a few words, such as 'cheerful and friendly' or 'speaking slowly'. Leave blank for a natural reading, which Google recommends trying first.
Modelmodeltext
Which speech model reads it. Defaults to Gemini 3.8 Flash TTS.One of: gemini-3.8-flash-tts (Gemini 3.8 Flash TTS (studio quality)), gemini-3.8-flash-lite-tts (Gemini 3.8 Flash-Lite TTS (faster, lower cost)). Default: gemini-3.8-flash-tts.

Outputs

character_countnumber
How many characters were read.
content_typetext
The file's type, such as image/png or audio/wav.
document_reftext
The saved file, for steps that take a file.
duration_secondsnumber
How long the recording is, in seconds.
filenametext
The file's name.
modeltext
The speech model used.
size_bytesnumber
The file's size in bytes.
urltext
A link that opens the file in Lodol.
voicetext
The voice that read it.
Example output
{
  "character_count": 42,
  "content_type": "audio/wav",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "duration_seconds": 4.04,
  "filename": "gemini-speech.wav",
  "model": "gemini-3.8-flash-tts",
  "size_bytes": 194274,
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef",
  "voice": "Kore"
}

Count tokens

Count how many tokens a text is for a Gemini model, to check a prompt fits before sending it or to estimate what it will cost.

Inputs

TexttexttextRequired
The text to count.
Modelmodeltext
The model whose tokens to count. Defaults to Gemini 3.8 Flash. You can also type any other Gemini model id.One of: gemini-3.8-flash (Gemini 3.8 Flash), gemini-3.6-flash (Gemini 3.6 Flash), gemini-3.5-flash-lite (Gemini 3.5 Flash-Lite (fastest, lowest cost)), gemini-4-argon (Gemini 4 Argon (most capable, needs billing)), gemini-3.5-flash (Gemini 3.5 Flash (older)), gemini-3.1-flash-lite (Gemini 3.1 Flash-Lite (older, retires May 2027)). Default: gemini-3.8-flash.

Outputs

character_countnumber
How many characters it is.
modeltext
The model counted for.
token_countnumber
How many tokens it is.
Example output
{
  "character_count": 42,
  "model": "gemini-3.8-flash",
  "token_count": 9
}

Create a File Search store

Make a File Search store: a place on Google's side to keep files, such as policies or manuals, for 'Ask Gemini' to look answers up in and cite. Fill it with 'Upload a file to a File Search store'.

Inputs

NamenametextRequired
A name to know the store by, such as 'Returns policies'.

Outputs

created_attext
When it was made.
file_countnumber
Files read in and ready to answer from.
files_being_readnumber
Files Google is still reading in.
files_failednumber
Files Google could not read in.
nametext
The store's name.
size_bytesnumber
How much the store holds, in bytes.
store_idtext
The store's id, for the other File Search steps.
Example output
{
  "created_at": "2026-11-09T10:15:00+00:00",
  "file_count": 0,
  "files_being_read": 0,
  "files_failed": 0,
  "name": "Returns policies",
  "size_bytes": 0,
  "store_id": "fileSearchStores/returns-policies-a1b2c3d4e5"
}

Create embeddings

Turn texts into vectors for semantic search, finding similar items or grouping them, ready to store in a vector database.

Inputs

TextstextslistRequired
The texts to embed, one per entry, up to 250. Each comes back as one vector, in the same order.
What they're fortasktext
How the vectors will be used, which tunes them for it. For search, embed the documents as documents and the searches as search queries.One of: search_document (Documents to be searched), search_query (Search queries), question (Questions to answer from documents), fact_check (Claims to check against documents), code_query (Queries for code), classification (Texts to sort into categories), clustering (Texts to group by topic), similarity (Texts to compare for similar meaning). Default: search_document.
Modelmodeltext
Which embedding model to use. Defaults to Gemini Embedding 2. Vectors from different models can't be compared with each other.One of: gemini-embedding-2 (Gemini Embedding 2), gemini-embedding-001 (Gemini Embedding 001 (older)). Default: gemini-embedding-2.
Dimensionsdimensionsnumber
How many numbers each vector has, from 128 to 3,072, for a vector database that expects a set size. Google suggests 768, 1,536 or 3,072. Leave blank for 3,072.

Outputs

countnumber
How many vectors there are.
dimensionsnumber
How many numbers each vector has.
embeddinglist
The first text's vector.
embeddingslist
One vector per text, in the same order.
modeltext
The embedding model used.
tasktext
What the vectors are tuned for.
Example output
{
  "count": 2,
  "dimensions": 3,
  "embedding": [
    0.012,
    -0.043,
    0.031
  ],
  "embeddings": [
    [
      0.012,
      -0.043,
      0.031
    ],
    [
      0.018,
      -0.039,
      0.027
    ]
  ],
  "model": "gemini-embedding-2",
  "task": "search_document"
}

Delete a File Search store

Delete a File Search store and every file in it, for good. Steps that answer from it stop finding anything there.

Inputs

File Search storestoretextRequired
The store, picked from your stores, or its id from an earlier step, such as fileSearchStores/my-store-a1b2c3.

Outputs

deletedtrue/false
Whether the store is gone.
store_idtext
The store deleted.
Example output
{
  "deleted": true,
  "store_id": "fileSearchStores/returns-policies-a1b2c3d4e5"
}

Edit an image

Change a picture as you describe, such as removing the background, swapping the colors or adding a caption, or combine several pictures into one, with Gemini's Nano Banana models. The new pictures are saved as files for later steps.

Inputs

PicturesimageslistRequired
The picture to change, or several to combine: upload them, pick files from an earlier step, or paste public web addresses. PNG, JPEG or WebP, up to 14 and 20 MB together.
What to changeinstructiontextRequired
The change, in plain words, such as 'Remove the background', 'Make it look like a watercolour' or 'Put the person from the first picture in the second'.
Modelmodeltext
Which Nano Banana model edits it. Defaults to Nano Banana 2.1. The image models need billing turned on for the API key's Google Cloud project.One of: gemini-nano-banana-2.1 (Nano Banana 2.1), gemini-3.1-flash-lite-image (Nano Banana 2 Lite (fastest, lowest cost)), gemini-3-pro-image (Nano Banana Pro (finest detail and lettering)), gemini-3.1-flash-image (Nano Banana 2 (older)). Default: gemini-nano-banana-2.1.
Shapeaspect_ratiotext
The new picture's shape. Leave blank to keep the shape of the picture you gave it.One of: 1:1 (Square (1:1)), 3:2 (Landscape (3:2)), 4:3 (Landscape (4:3)), 16:9 (Widescreen (16:9)), 21:9 (Ultrawide (21:9)), 2:3 (Portrait (2:3)), 3:4 (Portrait (3:4)), 4:5 (Portrait (4:5)), 9:16 (Tall (9:16)).
Resolutionresolutiontext
How many pixels across: 1K, 2K or 4K. Larger pictures cost more. Leave blank for the model's default.One of: 1K, 2K, 4K.

Outputs

content_typetext
The file's type, such as image/png or audio/wav.
document_reftext
The saved file, for steps that take a file.
documentslist
Every picture saved, in order.
filenametext
The file's name.
image_countnumber
How many pictures Gemini made.
modeltext
The model that made them.
size_bytesnumber
The file's size in bytes.
texttext
Anything Gemini wrote with the pictures.
urltext
A link that opens the file in Lodol.
Example output
{
  "content_type": "image/png",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "documents": [
    {
      "content_type": "image/png",
      "document_ref": "doc_0123456789abcdef0123456789abcdef",
      "filename": "gemini-image-1.png",
      "size_bytes": 1482211,
      "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
    }
  ],
  "filename": "gemini-image-1.png",
  "image_count": 1,
  "model": "gemini-nano-banana-2.1",
  "size_bytes": 1482211,
  "text": "",
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}

Extract data

Pull the fields you name out of text or files, such as the total on a photographed receipt or the dates in a PDF contract, ready for a spreadsheet or a later step.

Inputs

Texttexttext
The text to pull the fields out of, such as an email or an invoice. Leave blank when the files hold everything.
Filesfileslist
Pictures, PDFs or other files to read: upload them, pick files from an earlier step, or paste public web addresses, including links to public YouTube videos. Up to 10 files and 20 MB together.
Fieldsfieldslist
The pieces of information you want, one per entry. Add what each means after a colon to steer it: 'total: the amount due in dollars'. A field the material doesn't state comes back empty.
JSON Schemajson_schematext
Instead of 'Fields', paste a JSON Schema whose root is an object, for numbers, lists or nested fields.
Instructionsinstructionstext
Extra rules, such as 'Write dates as YYYY-MM-DD'.
Modelmodeltext
Which Gemini model reads the material. Defaults to Gemini 3.8 Flash. You can also type any other Gemini model id.One of: gemini-3.8-flash (Gemini 3.8 Flash), gemini-3.6-flash (Gemini 3.6 Flash), gemini-3.5-flash-lite (Gemini 3.5 Flash-Lite (fastest, lowest cost)), gemini-4-argon (Gemini 4 Argon (most capable, needs billing)), gemini-3.5-flash (Gemini 3.5 Flash (older)), gemini-3.1-flash-lite (Gemini 3.1 Flash-Lite (older, retires May 2027)). Default: gemini-3.8-flash.

Outputs

dataobject
The fields, by name; null where the material doesn't say.
found_fieldslist
The fields Gemini filled in.
input_tokensnumber
Tokens read.
missing_fieldslist
The fields it left empty.
modeltext
The model that read it.
output_tokensnumber
Tokens written.
Example output
{
  "data": {
    "due_date": null,
    "total": "$412.50",
    "vendor": "Coastal Marine Supply"
  },
  "found_fields": [
    "vendor",
    "total"
  ],
  "input_tokens": 318,
  "missing_fields": [
    "due_date"
  ],
  "model": "gemini-3.8-flash",
  "output_tokens": 31
}

Generate a video

Make a short video with sound, 3 to 15 seconds long, from a description with Gemini Omni Flash, optionally bringing a picture to life. It takes a few minutes, and the video is saved as a file for later steps.

Inputs

DescriptionprompttextRequired
What happens in the video: the subject, the action, the setting, the camera and the sound, such as 'A paper boat drifts down a rainy street, slow camera follow, rain sounds'. Say what to leave out in words too.
Starting picturestart_imagetext
A picture for the video to start from and bring to life: upload it, pick a file from an earlier step, or paste its public web address. Leave blank to make the video from the description alone.
Length (seconds)durationnumber
How long the video is, from 3 to 15 seconds. Leave blank for 10.
Shapeaspect_ratiotext
Widescreen, or tall for phones. Defaults to widescreen.One of: 16:9 (Widescreen (16:9)), 9:16 (Tall, for phones (9:16)). Default: 16:9.
Resolutionresolutiontext
How sharp the video is. Defaults to 720p; 1080p and 4K are made at 720p and upscaled, and make larger files.One of: 720p, 1080p (1080p (upscaled)), 4k (4K (upscaled)), 360p (360p (smallest file)). Default: 720p.
Modelmodeltext
Which video model makes it. Defaults to Gemini Omni Flash, which needs billing turned on for the API key's Google Cloud project. You can also type another Gemini video model id.One of: gemini-omni-1.2-flash (Gemini Omni Flash). Default: gemini-omni-1.2-flash.

Outputs

aspect_ratiotext
Its shape: 16:9 or 9:16.
content_typetext
The file's type, such as image/png or audio/wav.
document_reftext
The saved file, for steps that take a file.
duration_secondsnumber
How long the video is, in seconds.
filenametext
The file's name.
job_idtext
Google's id for the job that made it.
modeltext
The model that made it.
resolutiontext
Its resolution, such as 720p.
size_bytesnumber
The file's size in bytes.
urltext
A link that opens the file in Lodol.
Example output
{
  "aspect_ratio": "16:9",
  "content_type": "video/mp4",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "duration_seconds": 10,
  "filename": "gemini-video.mp4",
  "job_id": "v1_ChdvR2ZVYXZ0Rk1aU3l6N0lQel9xNjhBYxIXb0dmVWF2dEZNWlN5ejdJUHpfcTY4QWM",
  "model": "gemini-omni-1.2-flash",
  "resolution": "720p",
  "size_bytes": 6291456,
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}

Generate an image

Draw a picture from a description with Gemini's Nano Banana models, optionally working from reference pictures to edit them or keep a product or a face consistent. The pictures are saved as files for later steps.

Inputs

DescriptionprompttextRequired
What to draw: the subject, the setting, the style and the mood. With reference pictures, say how to use them, such as 'Put this product on a beach at sunset'.
Modelmodeltext
Which Nano Banana model draws it. Defaults to Nano Banana 2.1. The image models need billing turned on for the API key's Google Cloud project.One of: gemini-nano-banana-2.1 (Nano Banana 2.1), gemini-3.1-flash-lite-image (Nano Banana 2 Lite (fastest, lowest cost)), gemini-3-pro-image (Nano Banana Pro (finest detail and lettering)), gemini-3.1-flash-image (Nano Banana 2 (older)). Default: gemini-nano-banana-2.1.
Shapeaspect_ratiotext
The picture's shape. Leave blank for a square.One of: 1:1 (Square (1:1)), 3:2 (Landscape (3:2)), 4:3 (Landscape (4:3)), 16:9 (Widescreen (16:9)), 21:9 (Ultrawide (21:9)), 2:3 (Portrait (2:3)), 3:4 (Portrait (3:4)), 4:5 (Portrait (4:5)), 9:16 (Tall (9:16)).
Resolutionresolutiontext
How many pixels across: 1K, 2K or 4K. Larger pictures cost more. Leave blank for the model's default.One of: 1K, 2K, 4K.
Reference picturesreference_imageslist
Pictures to work from, to edit or to keep consistent with, such as a product photo or a logo: upload them, pick files from an earlier step, or paste public web addresses. Up to 14.

Outputs

content_typetext
The file's type, such as image/png or audio/wav.
document_reftext
The saved file, for steps that take a file.
documentslist
Every picture saved, in order.
filenametext
The file's name.
image_countnumber
How many pictures Gemini made.
modeltext
The model that made them.
size_bytesnumber
The file's size in bytes.
texttext
Anything Gemini wrote with the pictures.
urltext
A link that opens the file in Lodol.
Example output
{
  "content_type": "image/png",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "documents": [
    {
      "content_type": "image/png",
      "document_ref": "doc_0123456789abcdef0123456789abcdef",
      "filename": "gemini-image-1.png",
      "size_bytes": 1482211,
      "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
    }
  ],
  "filename": "gemini-image-1.png",
  "image_count": 1,
  "model": "gemini-nano-banana-2.1",
  "size_bytes": 1482211,
  "text": "",
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}

List File Search stores

List the File Search stores your API key's project has, with how many files each holds.

Inputs

None.

Outputs

countnumber
How many stores there are.
store_idslist
The stores' ids.
storeslist
Every store.
Example output
{
  "count": 1,
  "store_ids": [
    "fileSearchStores/returns-policies-a1b2c3d4e5"
  ],
  "stores": [
    {
      "created_at": "2026-11-09T10:15:00+00:00",
      "file_count": 3,
      "files_being_read": 0,
      "files_failed": 0,
      "name": "Returns policies",
      "size_bytes": 482133,
      "store_id": "fileSearchStores/returns-policies-a1b2c3d4e5"
    }
  ]
}

List models

List the Gemini models your API key can use, with what each is for and how much it takes in and writes.

Inputs

Can docapabilitytext
Only list models that do this. Leave on 'Anything' for every model.One of: all (Anything), text (Write and read text), image (Make pictures), speech (Speak text aloud), transcription (Transcribe speech), embedding (Create embeddings). Default: all.

Outputs

countnumber
How many models there are.
model_idslist
The models' ids.
modelslist
Every model listed, in Google's order.
Example output
{
  "count": 1,
  "model_ids": [
    "gemini-3.8-flash"
  ],
  "models": [
    {
      "capability": "text",
      "description": "Our most capable Flash model.",
      "id": "gemini-3.8-flash",
      "input_token_limit": 1048576,
      "name": "Gemini 3.8 Flash",
      "output_token_limit": 65536,
      "supported_actions": [
        "generateContent",
        "countTokens"
      ]
    }
  ]
}

Transcribe audio

Turn a recording into text with Gemini 3.5 Transcribe, in any of 85 languages, optionally telling speakers apart and timing every word.

Inputs

RecordingaudiotextRequired
The recording to transcribe: upload it, pick a file from an earlier step, or paste its public web address. WAV, MP3, M4A, AAC, FLAC, OGG, Opus or WebM, up to 20 MB.
Languagelanguagetext
The language spoken, as a code such as en-US or es-ES, or several separated by commas. Leave blank to detect it.
Transcript stylemodetext
Word for word, or cleaned up with fillers and repeats removed and numbers formatted. A cleaned-up transcript can't tell speakers apart or time each word.One of: verbatim (Word for word), smart (Cleaned up (fillers removed, numbers formatted)). Default: verbatim.
Tell speakers apartspeakerstrue/false
Label who said each part, for up to 8 speakers (more than 2 is experimental).Default: false.
Time each wordword_timestampstrue/false
Give each word its start and end time in the recording. Google notes this can make the transcript slightly less accurate.Default: false.
Words to listen forvocabularylist
Names, products and terms the recording uses, one per entry, so they come out spelled right. Can't be used with speakers or word timing.

Outputs

input_tokensnumber
Tokens the recording counted as.
modetext
verbatim or smart.
modeltext
The model that transcribed it.
segmentslist
The transcript turn by turn.
speakerslist
The speakers heard, when they are told apart.
texttext
The whole transcript.
wordslist
Each word with its speaker and times, when asked for.
Example output
{
  "input_tokens": 211,
  "mode": "verbatim",
  "model": "gemini-3.5-transcribe",
  "segments": [
    {
      "speaker": "",
      "text": "Our invoice number is INV-2041 and the total is $400."
    }
  ],
  "speakers": [],
  "text": "Our invoice number is INV-2041 and the total is $400.",
  "words": []
}

Upload a file to a File Search store

Add a file to a File Search store, such as a PDF, a Word document or a text file, and wait until Gemini has read it, so 'Ask Gemini' can answer from it in the next step. Reading a file in is billed by Google like embeddings.

Inputs

File Search storestoretextRequired
The store, picked from your stores, or its id from an earlier step, such as fileSearchStores/my-store-a1b2c3.
FilefiletextRequired
The file to add: upload it, pick a file from an earlier step, or paste its public web address. Up to 100 MB.
Name in citationsdisplay_nametext
What answers call the file when they cite it. Leave blank for the file's own name.

Outputs

content_typetext
The file's type, such as application/pdf.
file_idtext
Google's id for the file in the store.
file_nametext
What citations call it.
size_bytesnumber
The file's size in bytes.
store_idtext
The store it was added to.
Example output
{
  "content_type": "application/pdf",
  "file_id": "fileSearchStores/returns-policies-a1b2c3d4e5/documents/returns-policy-pdf-f6g7h8",
  "file_name": "Returns policy.pdf",
  "size_bytes": 482133,
  "store_id": "fileSearchStores/returns-policies-a1b2c3d4e5"
}

On this page