Venice AI

Use Venice AI for chat, image generation, embeddings, and more

Actions9

Overview

The node provides an interface to Venice AI's image upscaling capabilities. It allows users to enhance the resolution of images by a specified scale factor (from 1x to 4x). Additionally, it offers an option to apply enhancement styles during upscaling, such as artistic effects or texture improvements (e.g., "gold", "marble"). This node is useful for improving image quality for printing, detailed analysis, or creative projects where higher resolution images are required without losing detail.

Practical examples:

  • Upscaling low-resolution photos to prepare them for large-format printing.
  • Enhancing digital artwork by increasing resolution and optionally applying stylistic enhancements.
  • Improving clarity of images used in presentations or marketing materials.

Properties

Name Meaning
Image Name of the binary property containing the input image to be upscaled.
Scale Upscale factor specifying how much to enlarge the image; valid values are 1 to 4.
Enhance Boolean flag to enable additional enhancement during upscaling.
Enhance Prompt Style description to apply when enhancement is enabled (e.g., "gold", "marble").

Output

The output contains the upscaled image in binary form under the binary field with the key data. The filename is set to "upscaled_image.png". The json field is empty ({}) since the main result is the binary image data.

Dependencies

  • Requires an API key credential for Venice AI to authenticate requests.
  • The node uses Venice AI's /image/upscale endpoint to perform the upscaling operation.
  • The input image must be provided as binary data in the specified binary property.
  • n8n environment must support handling binary data inputs and outputs.

Troubleshooting

  • Missing Binary Data Property: If the specified binary property does not exist on the input item, the node throws an error indicating the missing property. Ensure the input contains the image binary data under the correct property name.
  • Invalid Scale Value: The scale must be between 1 and 4. Values outside this range may cause errors or unexpected behavior.
  • Enhance Prompt Usage: When enhancement is enabled but no prompt is provided, the node proceeds without style customization. Providing an invalid or unsupported style string might lead to suboptimal results.
  • API Errors: Network issues or invalid API credentials will cause request failures. Verify that the API key is correctly configured and has sufficient permissions.
  • Binary Data Handling: Ensure that the workflow properly handles binary data outputs, especially if subsequent nodes expect JSON or other formats.

Links and References

Discussion