ComfyUI > Nodes > Comfyui_Comfly_v2 > Comfly Gemini API

ComfyUI Node: Comfly Gemini API

Class Name

ComflyGeminiAPI

Category
Comfly-v2/Comfly_Gemini
Author
ainewsto (Account age: 1002days)
Extension
Comfyui_Comfly_v2
Latest Updated
2025-06-06
Github Stars
0.04K

How to Install Comfyui_Comfly_v2

Install this extension via the ComfyUI Manager by searching for Comfyui_Comfly_v2
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui_Comfly_v2 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Comfly Gemini API Description

Facilitates interaction with Gemini multimodal LLM via remote API for generating rich, multimodal content easily.

Comfly Gemini API:

The ComflyGeminiAPI node is designed to facilitate interaction with the Gemini multimodal large language model (LLM) via a remote API. This node is part of a broader system that allows you to leverage the capabilities of advanced AI models for generating content based on various input types, such as text, images, audio, and video. The primary goal of this node is to provide a seamless interface for accessing the Gemini model's powerful generative capabilities, enabling you to create rich, multimodal content with ease. By integrating this node into your workflow, you can harness the potential of state-of-the-art AI technology to enhance your creative projects, whether you're generating text, images, or other media types.

Comfly Gemini API Input Parameters:

prompt

The prompt parameter is a string input that serves as the initial text or query to guide the content generation process. It is a required field and can be multiline, allowing you to provide detailed instructions or context for the AI model to consider during content creation. The quality and specificity of the prompt can significantly impact the relevance and creativity of the generated output, making it a crucial component in achieving desired results.

model

The model parameter specifies the version of the Gemini model to be used for content generation. It is a string input with a default value of "gemini-2.0-flash-exp-image," and it allows you to select from different model versions, each potentially offering unique capabilities or optimizations. Choosing the appropriate model version can influence the style, speed, and quality of the generated content, so it's important to select one that aligns with your project goals.

Comfly Gemini API Output Parameters:

ui

The ui output parameter is a dictionary that contains information about the generated content, specifically focusing on video outputs. It includes details such as the video name and the path name, which can be used to identify and access the generated video content. This output is essential for integrating the generated media into your projects, providing a straightforward way to retrieve and utilize the results of the content generation process.

Comfly Gemini API Usage Tips:

  • To optimize the quality of the generated content, ensure that your prompt is clear, specific, and detailed. Providing context or examples can help guide the AI model to produce more relevant and creative outputs.
  • Experiment with different model versions to find the one that best suits your needs. Each version may have unique strengths, so testing multiple options can help you achieve the desired balance of quality and performance.

Comfly Gemini API Common Errors and Solutions:

Invalid model selection

  • Explanation: This error occurs when an unsupported or incorrect model version is specified in the model parameter.
  • Solution: Verify that the model version you are using is supported by the ComflyGeminiAPI. Refer to the available model options and ensure that the specified model name matches one of the valid entries.

Prompt too long

  • Explanation: This error arises when the prompt exceeds the maximum allowed length for input text.
  • Solution: Shorten the prompt to fit within the character limit. Focus on including only the most essential information and instructions to guide the content generation process effectively.

Comfly Gemini API Related Nodes

Go back to the extension to check out more related nodes.
Comfyui_Comfly_v2
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.