Google Gemini - FCI icon

Google Gemini - FCI

Interact with Google Gemini AI models using direct URL and API Key

Overview

This node integrates with the Google Gemini API to generate videos based on textual prompts. It is designed for scenarios where users want to create short video clips automatically from descriptive text, such as marketing content, social media posts, or creative storytelling. For example, a user can input a prompt like "Panning wide shot of a calico kitten sleeping in the sunshine" and receive a generated video matching that description.

Properties

Name Meaning
Server URL The base URL of the Google Gemini API endpoint to send requests to (default: https://generativelanguage.googleapis.com).
API Key The API key credential used to authenticate requests to the Google Gemini API.
Model The specific video generation model to use, selectable from a list or by entering a model ID directly.
Prompt A text description detailing what the generated video should depict.
Return As Determines if the output is returned as a binary video file (video) or as a URL (url) to download later.
Options Additional settings for video generation:
- Number of Videos How many videos to generate in one request (1 to 4).
- Duration (Seconds) Length of each generated video clip, between 5 and 8 seconds.
- Aspect Ratio The video's aspect ratio; either widescreen (16:9) or portrait (9:16).
- Person Generation Controls whether people are allowed in the video: disallow, allow adult only, or allow all people.
- Put Output in Field The name of the binary property field where the video data will be stored if returning binary data.

Output

The node outputs JSON data containing information about the generated video(s). Depending on the "Return As" property:

  • If set to Video, the node returns the video content as binary data under the specified binary property field.
  • If set to URL, the node returns a URL string pointing to where the generated video can be downloaded later.

The exact structure of the JSON output includes metadata about the generated video(s), such as URLs or binary data references, but the source code does not provide further detail on the internal JSON schema.

Dependencies

  • Requires access to the Google Gemini API service.
  • An API key credential for authenticating requests to the Google Gemini API must be provided.
  • Network connectivity to the specified Server URL.
  • No other external dependencies are indicated in the provided source code.

Troubleshooting

  • Invalid API Key or Authentication Errors: Ensure the API key is valid and has permissions for video generation.
  • Model Not Found or Invalid Model ID: Verify the selected model exists and is supported by the API.
  • Prompt Too Vague or Unsupported: Provide clear and descriptive prompts to improve generation quality.
  • Exceeded Limits: The number of videos requested or duration may exceed allowed limits; adjust accordingly.
  • Network Issues: Confirm network connectivity to the API endpoint.
  • Binary Data Handling: When returning video as binary, ensure the specified output field name is unique and correctly referenced downstream.

Links and References

Discussion