Venice AI

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

Actions9

Image → Edit

AI-generated

Overview

The node integrates with Venice AI to perform various AI-powered tasks. Specifically, for the Image - Edit operation, it allows users to edit an existing image based on textual instructions (an "edit prompt"). This is useful when you want to modify or enhance images programmatically by describing the desired changes in natural language.

Typical use cases include:

  • Adjusting or retouching photos automatically.
  • Adding or removing elements from images.
  • Applying artistic transformations or style changes described via text.

For example, you could upload a product photo and instruct the node to "remove the background" or "add a sunset sky," and the node will return the edited image accordingly.

Properties

Name Meaning
Image The name of the binary property containing the image data to be edited.
Edit Prompt Text instructions describing how the image should be edited (e.g., "make it brighter").

Output

The output contains the edited image as binary data under the binary field with the key data. The file is named edited_image.png. The json field is empty ({}) because the main result is the binary image data.

Example output structure:

{
  "json": {},
  "binary": {
    "data": {
      "data": "<binary image data>",
      "mimeType": "image/png",
      "fileName": "edited_image.png"
    }
  }
}

Dependencies

  • Requires an API key credential for Venice AI to authenticate requests.
  • The node calls the Venice AI /image/edit endpoint with the image and prompt.
  • 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

  • Error: No binary data property "X" found
    This error occurs if the specified binary property does not exist on the input item. Ensure that the input data includes the image binary data under the exact property name configured in the node.

  • API request failures
    If the Venice AI service returns errors, verify your API key validity and network connectivity. Also, check that the edit prompt is well-formed and not empty.

  • Empty or corrupted output image
    Make sure the input image is valid and supported by Venice AI. Large or unsupported formats might cause issues.

Links and References

Discussion