Venice AI

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

Actions9

Overview

This node integrates with the Venice AI platform to create vector embeddings from text input. It is useful for scenarios where you want to convert textual data into numerical vectors that capture semantic meaning, enabling tasks such as similarity search, clustering, or machine learning feature extraction.

For example, you can use this node to generate embeddings for product descriptions to later find similar products, or to embed customer feedback for sentiment analysis and categorization.

Properties

Name Meaning
Model Embedding model ID to use for generating embeddings (e.g., "text-embedding-bge-m3").
Input The text string for which embeddings will be generated.
Encoding Format The format of the output embedding vector: either "Float" (numeric array) or "Base64".

Output

The node outputs a JSON object containing the response from the Venice AI embeddings API. This typically includes the generated embedding vector in the specified encoding format. The exact structure depends on the API response but generally contains fields like the embedding array or its base64 representation.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Venice AI API key credential configured in n8n.
  • The node makes HTTP POST requests to the /embeddings endpoint of the Venice AI API.
  • No additional environment variables are needed beyond the API authentication setup.

Troubleshooting

  • Missing or invalid API credentials: Ensure your Venice AI API key is correctly set up in n8n credentials.
  • Invalid model ID: Use a valid embedding model supported by Venice AI; otherwise, the API may return errors.
  • Empty or invalid input text: The "Input" property must contain non-empty text; otherwise, the API might reject the request.
  • Unsupported encoding format: Choose either "float" or "base64" as encoding format; other values are not accepted.
  • API request failures: Network issues or API downtime can cause errors; check connectivity and Venice AI service status.

Links and References

Discussion