Interface GoogleGeminiNodeParameters

Source
interface GoogleGeminiNodeParameters {
    audioUrls?: string;
    binaryPropertyName?: string;
    documentUrls?: string;
    fileUrl?: string;
    imageUrls?: string;
    inputType?: "url" | "binary";
    jsonOutput?: boolean;
    messages?: {
        values: {
            content?: string;
            role?: "user" | "model";
        }[];
    };
    modelId?: { mode: "id"
    | "list"; value: string };
    operation?:
        | "upload"
        | "analyze"
        | "generate"
        | "message"
        | "download"
        | "transcribe";
    options?: | { maxOutputTokens?: number }
    | { endTime?: string; startTime?: string }
    | {
        binaryPropertyOutput?: string;
        sampleCount?: number;
    }
    | {
        candidateCount?: number;
        codeExecution?: boolean;
        frequencyPenalty?: number;
        maxOutputTokens?: number;
        maxToolsIterations?: number;
        presencePenalty?: number;
        systemMessage?: string;
        temperature?: number;
        topK?: number;
        topP?: number;
    }
    | { binaryPropertyOutput?: string }
    | {
        aspectRatio?: "16:9" | "9:16";
        binaryPropertyOutput?: string;
        durationSeconds?: number;
        personGeneration?:
            | "dont_allow"
            | "allow_adult"
            | "allow_all";
        sampleCount?: number;
    };
    prompt?: string;
    resource?: | "file"
    | "video"
    | "document"
    | "image"
    | "text"
    | "audio";
    returnAs?: "url"
    | "video";
    simplify?: boolean;
    text?: string;
    url?: string;
    videoUrls?: string;
}

Properties§

Source§

readonly audioUrls?: string

URL(s) of the audio(s) to analyze, multiple URLs can be added separated by comma

Source§

readonly binaryPropertyName?: string

Name of the binary field(s) which contains the audio(s), seperate multiple field names with commas Default: "data"

Source§

readonly documentUrls?: string

URL(s) of the document(s) to analyze, multiple URLs can be added separated by comma

Source§

readonly fileUrl?: string

URL of the file to upload

Source§

readonly imageUrls?: string

URL(s) of the image(s) to analyze, multiple URLs can be added separated by comma

Source§

readonly inputType?: "url" | "binary"

Default: "url"

Source§

readonly jsonOutput?: boolean

Whether to attempt to return the response in JSON format

Source§

readonly messages?: { values: { content?: string; role?: "user" | "model" }[] }

Default: {"values":[{"content":""}]} Type options: {"sortable":true,"multipleValues":true}

Source§

readonly modelId?: { mode: "id" | "list"; value: string }

Default: {"mode":"list","value":""}

Source§

readonly operation?:
    | "upload"
    | "analyze"
    | "generate"
    | "message"
    | "download"
    | "transcribe"

Default: "transcribe"

Source§

readonly options?:
    | { maxOutputTokens?: number }
    | { endTime?: string; startTime?: string }
    | {
        binaryPropertyOutput?: string;
        sampleCount?: number;
    }
    | {
        candidateCount?: number;
        codeExecution?: boolean;
        frequencyPenalty?: number;
        maxOutputTokens?: number;
        maxToolsIterations?: number;
        presencePenalty?: number;
        systemMessage?: string;
        temperature?: number;
        topK?: number;
        topP?: number;
    }
    | { binaryPropertyOutput?: string }
    | {
        aspectRatio?: "16:9" | "9:16";
        binaryPropertyOutput?: string;
        durationSeconds?: number;
        personGeneration?:
            | "dont_allow"
            | "allow_adult"
            | "allow_all";
        sampleCount?: number;
    }

Default: {}

Source§

readonly prompt?: string

A text description of the desired image(s) Type options: {"rows":2}

Source§

readonly resource?: "file" | "video" | "document" | "image" | "text" | "audio"

Default: "text"

Source§

readonly returnAs?: "url" | "video"

Whether to return the video as a binary file or a URL that can be used to download the video later Default: "video"

Source§

readonly simplify?: boolean

Whether to simplify the response or not Default: true

Source§

readonly text?: string

Default: "What's in this audio?" Type options: {"rows":2}

Source§

readonly url?: string

The URL from Google Gemini API to download the video from

Source§

readonly videoUrls?: string

URL(s) of the video(s) to analyze, multiple URLs can be added separated by comma