Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform input images with textual scene descriptions using BRIA API for AI artists to enhance visuals seamlessly.
The ShotByTextNode
is a powerful tool designed to transform an input image based on a textual scene description, leveraging the capabilities of the BRIA API. This node is particularly useful for AI artists who wish to enhance or modify images by providing a descriptive narrative of the desired scene. By integrating with the BRIA API, the node allows for the generation of lifestyle shots that align with the given textual description, offering a seamless way to create visually compelling content. The node's primary function is to process an image in conjunction with a scene description, optimizing the description if needed, and applying content moderation to ensure the output adheres to specified guidelines. This makes it an essential component for artists looking to automate and refine their creative workflows, providing a bridge between textual concepts and visual outputs.
The image
parameter is the initial visual input that you want to transform or enhance. It serves as the base image that will be processed in conjunction with the scene description. This parameter is crucial as it determines the starting point for the transformation process. The image should be provided in a compatible format, and if it is a tensor, it will be preprocessed into a suitable format for the API.
The scene_description
parameter is a string that describes the desired scene or modifications you want to apply to the input image. This description guides the transformation process, allowing the API to understand and implement the changes needed to achieve the desired visual outcome. The more detailed and specific the description, the more accurately the output will reflect your vision.
The optimize_description
parameter is an integer that indicates whether the scene description should be optimized for better results. A value of 1
(default) means optimization is enabled, while 0
disables it. Enabling optimization can enhance the quality and relevance of the output by refining the description to better suit the API's processing capabilities.
The api_key
is a string that provides authentication for accessing the BRIA API. It is essential for executing the node's function, as it verifies your access rights to use the API services. The default value is "BRIA_API_TOKEN"
, but you must replace it with a valid API key to ensure successful execution.
The content_moderation
parameter is a boolean that determines whether content moderation should be applied to the output image. The default value is False
, meaning moderation is disabled. Enabling this option ensures that the generated content adheres to specific guidelines and standards, which can be important for maintaining compliance with content policies.
The output_image
is the transformed image resulting from the execution of the node. It reflects the modifications and enhancements applied based on the scene description and other input parameters. This output is crucial as it represents the final visual product that you can use in your creative projects. The image is processed to maintain high quality and align with the original input's placement and quality settings.
scene_description
is as detailed and specific as possible to achieve the best results. A well-crafted description can significantly enhance the quality and relevance of the output image.api_key
to avoid execution errors. If you encounter issues, double-check that your API key is correctly entered and has the necessary permissions.optimize_description
to improve the alignment between your textual input and the visual output, especially if the initial results are not meeting your expectations.<status_code>
api_key
is correct and active. Check your network connection and ensure that the API endpoint URL is accurate.api_key
parameter is either empty or set to the default placeholder value.image
is not in a compatible format or is not properly preprocessed.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.