Jiemeng icon

Jiemeng

Use Jiemeng API to generate videos from images and prompts

Video Generation → Image to Video

AI-generated

Overview

This node integrates with the Jiemeng API to generate videos from a single image and a descriptive prompt. It is designed for scenarios where users want to create dynamic video content based on static images enhanced by textual guidance, such as marketing videos, social media content, or creative storytelling.

For example, you can provide an image URL of a landscape and a prompt describing a sunrise scene, and the node will generate a video that animates the image according to the prompt.

Properties

Name Meaning
Image URL The URL of the image to use as the base for the video.
Prompt The text prompt that guides how the video should be generated from the image.

Output

The node outputs JSON data containing details about the video generation task:

  • success: Boolean indicating if the generation was successful.
  • taskId: The unique identifier of the generation task.
  • status: The final status of the task (e.g., "done", "succeeded").
  • videoUrl: The URL of the generated video (if available).
  • model: The model used for generation.
  • usage: Information about resource usage during generation.
  • createdAt: Timestamp when the task was created.
  • updatedAt: Timestamp of the last update to the task.
  • originalResponse: The full raw response from the API for further inspection.

If the node encounters errors and is set to continue on failure, it outputs error details including message, code, type, HTTP status, and suggestions for resolution.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Jiemeng API.
  • Makes HTTP requests to the Jiemeng API endpoints hosted in the Beijing region.
  • Needs network access to https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks.

Troubleshooting

Common Issues

  • Task creation failure: If no task ID is returned, the generation request likely failed.
  • Timeouts: The node waits up to 5 minutes for the video generation to complete; longer tasks will cause a timeout error.
  • API authentication errors: Invalid or expired API keys will cause authorization failures.
  • Endpoint errors: Using incorrect API URLs or regions may result in "Not Found" errors.
  • Task failure statuses: Tasks can fail or be canceled due to invalid inputs or service issues.

Error Messages and Resolutions

  • "Failed to create generation task. No task ID returned."
    Check your API key validity and ensure the request payload is correct.

  • "Task failed with status: failed" or "Task failed with status: canceled"
    Review the prompt and image URL for correctness; check API service status.

  • "Task timed out after 5 minutes."
    The generation took too long; try simplifying the prompt or retry later.

  • Authorization errors (Unauthorized)
    Verify the API key is valid, has sufficient permissions, and is not expired.

  • Endpoint errors (InvalidEndpoint.NotFound)
    Confirm the API endpoint URL matches the expected region and service.

The node provides suggestions for common error codes to help resolve issues.

Links and References

Discussion