Google Gemini
Node: googleGemini · Full type: @n8n/n8n-nodes-langchain.googleGemini · Version: 1.1
Credentials
googlePalmApi (alias: @google)
CREDENTIAL @google = googlePalmApi "My Google Gemini"
Operations
Resource: audio
analyze
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
text |
string |
"What's in this audio?" |
|
inputType |
options |
"url" |
url, binary |
audioUrls |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
simplify |
boolean |
true |
|
options |
collection |
{} |
keys: maxOutputTokens |
transcribe
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
inputType |
options |
"url" |
url, binary |
audioUrls |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
simplify |
boolean |
true |
|
options |
collection |
{} |
keys: startTime, endTime |
Resource: document
analyze
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
text |
string |
"What's in this document?" |
|
inputType |
options |
"url" |
url, binary |
documentUrls |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
simplify |
boolean |
true |
|
options |
collection |
{} |
keys: maxOutputTokens |
Resource: fileSearch
createStore
| Parameter |
Type |
Default |
Details |
displayName |
string |
"" |
required |
deleteStore
| Parameter |
Type |
Default |
Details |
fileSearchStoreName |
string |
"" |
required |
force |
boolean |
false |
|
listStores
| Parameter |
Type |
Default |
Details |
pageSize |
number |
10 |
|
pageToken |
string |
"" |
|
uploadToStore
| Parameter |
Type |
Default |
Details |
fileSearchStoreName |
string |
"" |
required |
displayName |
string |
"" |
required |
inputType |
options |
"url" |
url, binary |
fileUrl |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
Resource: image
analyze
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
text |
string |
"What's in this image?" |
|
inputType |
options |
"url" |
url, binary |
imageUrls |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
simplify |
boolean |
true |
|
options |
collection |
{} |
keys: maxOutputTokens |
generate
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
prompt |
string |
"" |
|
options |
collection |
{} |
keys: sampleCount, binaryPropertyOutput |
edit
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
prompt |
string |
"" |
|
images |
fixedCollection |
{...} |
groups: values |
options |
collection |
{} |
keys: binaryPropertyOutput |
Resource: file
upload
| Parameter |
Type |
Default |
Details |
inputType |
options |
"url" |
url, binary |
fileUrl |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
Resource: text
message
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
messages |
fixedCollection |
{...} |
groups: values |
simplify |
boolean |
true |
|
jsonOutput |
boolean |
false |
|
builtInTools |
collection |
{} |
keys: googleSearch, googleMaps, urlContext, fileSearch, codeExecution |
options |
collection |
{} |
keys: includeMergedResponse, systemMessage, codeExecution, frequencyPenalty, maxOutputTokens, candidateCount, ... |
Resource: video
analyze
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
text |
string |
"What's in this video?" |
|
inputType |
options |
"url" |
url, binary |
videoUrls |
string |
"" |
|
binaryPropertyName |
string |
"data" |
|
simplify |
boolean |
true |
|
options |
collection |
{} |
keys: maxOutputTokens |
generate
| Parameter |
Type |
Default |
Details |
modelId |
resourceLocator |
{...} |
required; modes: list, id |
prompt |
string |
"" |
|
returnAs |
options |
"video" |
video, url |
options |
collection |
{} |
keys: sampleCount, durationSeconds, aspectRatio, personGeneration, binaryPropertyOutput |
download
| Parameter |
Type |
Default |
Details |
url |
string |
"" |
|
options |
collection |
{} |
keys: binaryPropertyOutput |
Parameter Details
options children:
| Parameter |
Type |
Default |
Details |
maxOutputTokens |
number |
300 |
|
images children:
values group:
| Parameter |
Type |
Default |
Details |
binaryPropertyName |
string |
"data" |
|
messages children:
values group:
| Parameter |
Type |
Default |
Details |
content |
string |
"" |
|
role |
options |
"user" |
user, model |
builtInTools children:
| Parameter |
Type |
Default |
Details |
googleSearch |
boolean |
true |
|
googleMaps |
collection |
{...} |
keys: latitude, longitude |
urlContext |
boolean |
true |
|
fileSearch |
collection |
{...} |
keys: fileSearchStoreNames, metadataFilter |
codeExecution |
boolean |
true |
|
Example
NODE "googleGemini" @google AS "Google Gemini" {
resource: "audio",
operation: "analyze",
displayName: {{ $json.displayName }},
fileSearchStoreName: {{ $json.fileSearchStoreName }}
}