ComfyUI > Nodes > world weaver > Gemini API (World Weaver)

ComfyUI Node: Gemini API (World Weaver)

Class Name

WW_GeminiAPI

Category
Creepybits/API
Author
creepybits (Account age: 2257days)
Extension
world weaver
Latest Updated
2026-03-28
Github Stars
0.03K

How to Install world weaver

Install this extension via the ComfyUI Manager by searching for world weaver
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter world weaver 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

Gemini API (World Weaver) Description

Facilitates interaction with Google's Gemini AI for generating multimodal content via remote API.

Gemini API (World Weaver):

The WW_GeminiAPI node is designed to facilitate interaction with Google's Gemini AI model through a remote API, enabling the generation of multimodal content such as text and images. This node is part of the World Weaver suite and serves as a bridge to leverage the capabilities of the Gemini model, which is known for its ability to process and generate content based on diverse input types, including text, images, audio, and video. By utilizing this node, you can create more relevant and meaningful responses by providing various types of contextual inputs. The node's primary function is to send requests to the Gemini API, process the responses, and deliver the generated content back to the user. This makes it an essential tool for AI artists looking to enhance their creative workflows with advanced AI-generated content.

Gemini API (World Weaver) Input Parameters:

model

The model parameter specifies the version or type of the Gemini AI model you wish to interact with. This parameter is crucial as it determines the capabilities and features available for content generation. Different models may offer varying levels of sophistication and support for different modalities. Ensure you select a model that aligns with your content generation needs.

response_modalities

The response_modalities parameter defines the type of content you expect from the Gemini API, such as "IMAGE" or "TEXT". This parameter impacts the node's execution by instructing the API on what kind of output to generate. The default value is typically set to include both text and image modalities, but you can specify a single modality if desired.

aspect_ratio

The aspect_ratio parameter is used to configure the dimensions of the generated images. If not specified, it defaults to "auto", which allows the system to determine the best aspect ratio based on the input content. This parameter is important for ensuring that the generated images meet your specific size requirements.

system_prompt

The system_prompt parameter allows you to provide additional instructions or context to the Gemini AI model. This can help guide the content generation process and ensure that the output aligns with your creative vision. The system prompt is optional but can be a powerful tool for refining the generated content.

Gemini API (World Weaver) Output Parameters:

generated_image

The generated_image output parameter provides the image content generated by the Gemini AI model. This output is crucial for visual artists who rely on AI-generated imagery as part of their creative process. The generated image is typically returned in a format that can be easily integrated into your existing workflows.

generated_text

The generated_text output parameter delivers the text content generated by the Gemini AI model. This output is valuable for creators who need textual content to accompany their visual works or for those focusing on text-based projects. The generated text is designed to be coherent and contextually relevant based on the input provided.

Gemini API (World Weaver) Usage Tips:

  • To optimize the quality of the generated content, ensure that your input data is clear and well-structured. Providing detailed and relevant context can significantly enhance the relevance of the output.
  • Experiment with different models and response modalities to find the best combination for your specific project needs. Each model may offer unique strengths that can be leveraged for different types of content.

Gemini API (World Weaver) Common Errors and Solutions:

InvalidModelError

  • Explanation: This error occurs when the specified model is not recognized by the Gemini API.
  • Solution: Verify that the model name is correct and corresponds to a supported version of the Gemini AI model.

UnsupportedModalityError

  • Explanation: This error is triggered when an unsupported response modality is requested.
  • Solution: Ensure that the response_modalities parameter is set to either "IMAGE", "TEXT", or both, as these are the supported modalities.

AspectRatioError

  • Explanation: This error arises when an invalid aspect ratio is provided.
  • Solution: Check that the aspect_ratio parameter is set to a valid value, such as "auto" or a specific numerical ratio, to avoid this error.

Gemini API (World Weaver) Related Nodes

Go back to the extension to check out more related nodes.
world weaver
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Gemini API (World Weaver)