ImageRouter icon

ImageRouter

Generate AI images and videos through ImageRouter.io

Overview

This node integrates with the ImageRouter.io API to generate AI-created images and videos. Specifically, for the Video resource with the Text to Video operation, it converts a text prompt into a video using a specified AI model. This is useful in scenarios such as creating marketing videos, social media content, or visual storytelling from textual descriptions without needing manual video editing skills.

For example, a user can input a descriptive prompt like "A futuristic cityscape at sunset" and receive an AI-generated video matching that description.

Properties

Name Meaning
Model The AI model used for generation (e.g., "test/test").
Prompt Text description that guides the video generation.
Quality Generation quality level; options: auto, low, medium, high.
Size Output video resolution, either "auto" or custom dimensions in "WIDTHxHEIGHT" format.
Response Format Format of the response; options are URL (link to the generated video) or Base64 JSON.

Output

The node outputs an array of items where each item's json property contains the API response data from ImageRouter.io. For the Text to Video operation, this typically includes:

  • A URL link to the generated video if Response Format is set to URL.
  • Or a Base64-encoded JSON string representing the video data if Response Format is set to b64_json.

No binary data output is directly handled by this node for this operation.

Dependencies

  • Requires an API key credential for ImageRouter.io configured in n8n.
  • The node makes HTTP requests to https://api.imagerouter.io/v1/openai/videos/generations.
  • Proper network access to the ImageRouter.io API endpoint is necessary.

Troubleshooting

  • Binary Property Not Found: If you specify a binary property for image/video input but it does not exist on the input item, the node will throw an error indicating the missing property.
  • API Authentication Errors: Ensure the API key credential is correctly set up and valid.
  • Invalid Model or Prompt: Using unsupported models or empty prompts may cause API errors.
  • Unsupported Size or Quality: Providing invalid size strings or unsupported quality options might lead to request failures.
  • Network Issues: Connectivity problems to the API endpoint will result in HTTP request errors.

To resolve these issues, verify all input parameters, credentials, and network connectivity.

Links and References

Discussion