AltTextify icon

AltTextify

Generate alt text using AltTextify API

Overview

This node, named "AltTextify," generates descriptive alternative text (alt text) for images using the AltTextify API. It is designed to help users automatically create meaningful and SEO-optimized alt text for images by providing a publicly accessible image URL along with optional parameters such as language, keywords, product name, and brand name.

Common scenarios where this node is beneficial include:

  • Enhancing web accessibility by generating alt text for images on websites.
  • Improving SEO by including relevant keywords in alt text.
  • Automating alt text creation for e-commerce product images by incorporating product and brand names.
  • Supporting multilingual alt text generation by specifying different language codes.

Practical example:
A user can input an image URL of a product photo, specify the language as German (de), add keywords like "running shoes" and "lightweight," and provide the product and brand names. The node will then return an SEO-friendly alt text description in German that includes these details.

Properties

Name Meaning
Image URL A publicly accessible URL of the image in JPEG, PNG, GIF, WEBP, or BMP format.
Language Language code for the alt text output. Defaults to English (en). Accepts ISO 639-1 codes (e.g., pt, de).
Keywords Comma-separated list of keywords or phrases for SEO optimization. Only one or two keywords are used per alt text, but all are considered. Must be in English regardless of output language.
Product Name [Ecommerce] Name of the product to be included in the alt text (useful for e-commerce images).
Brand Name [Ecommerce] Brand name to be included in the alt text (useful for e-commerce images).

Output

The node outputs JSON data containing the generated alt text returned from the AltTextify API. The structure is:

{
  "alt_text": "Generated descriptive alt text string"
}

If an error occurs during processing, the output JSON contains an error field with the error message:

{
  "error": "Error message describing what went wrong"
}

The node does not output binary data.

Dependencies

  • Requires an API key credential for the AltTextify API.
  • Makes HTTP POST requests to https://api.alttextify.net/api/v1/image/url.
  • The node expects the image URL to be publicly accessible.
  • No additional environment variables or configurations are required beyond the API key.

Troubleshooting

  • Common issues:

    • Invalid or inaccessible image URL: Ensure the image URL is publicly accessible and points to a supported image format.
    • Missing or invalid API key: Verify that the API key credential is correctly configured.
    • Unsupported language code: Use valid ISO 639-1 language codes.
    • Keywords not in English: Keywords must be provided in English even if the alt text is generated in another language.
  • Common error messages:

    • "Invalid API key": Check your API key credential.
    • "Image URL not accessible": Confirm the image URL is reachable without authentication.
    • "Unsupported image format": Use JPEG, PNG, GIF, WEBP, or BMP formats.
    • Network or timeout errors: Check internet connectivity and API service status.

Links and References

Discussion