Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Loads and formats input files for use with the Gemini API. This node allows users to include text (.txt) and PDF (.pdf) files as input context for the Gemini model. Files are converted to the appropriate format required by the API and can be chained together to include multiple files in a single request.

Inputs

ParameterData TypeRequiredRangeDescription
fileCOMBOYesMultiple options availableInput files to include as context for the model. Only accepts text (.txt) and PDF (.pdf) files for now. Files must be smaller than the maximum input file size limit.
GEMINI_INPUT_FILESGEMINI_INPUT_FILESNoN/AAn optional additional file(s) to batch together with the file loaded from this node. Allows chaining of input files so that a single message can include multiple input files.
Note: The file parameter only displays text (.txt) and PDF (.pdf) files that are smaller than the maximum input file size limit. Files are automatically filtered and sorted by name.

Outputs

Output NameData TypeDescription
GEMINI_INPUT_FILESGEMINI_INPUT_FILESFormatted file data ready for use with Gemini LLM nodes, containing the loaded file content in the appropriate API format.