1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/670f8365f552c2dfdc91742a-v1";
const data = {
product_image: "publicly accessible image link",
prompt_video: "the user input string"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
1
2
3
4
5
{
"poll_url": "<base_url>/requests/<some_request_id>",
"request_id": "some_request_id",
"status": "QUEUED"
}
You can poll the above link to get the status and output of your request.
1
2
3
{
"video_output": "any user input string"
}
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
AI Product Video Generator is a cutting-edge tool designed to transform product images into dynamic videos. This workflow leverages advanced AI to create engaging promotional content, perfect for showcasing your products in a visually appealing way.
The AI Product Video Generator workflow integrates several key components for seamless video creation:
Image Input Node: This is where you upload the product image. It serves as the foundational visual element for the video.
GPT-4o Model: The input image and textual description are processed here. The model interprets the desired camera effects and scene details based on your input.
Luma Image-to-Video Node: This node generates the video, transforming the static image into a moving visual narrative according to the specified camera actions and effects.
Output Node: The final video is rendered and displayed here, ready for download or further editing.
Each node plays a vital role in converting static images into vibrant video content, enabling a streamlined workflow from start to finish.
Input Image: Upload a photo of your product, such as furniture.
Enter Details: Describe the desired video scene. For example, "patio sofa bench in back yard, camera zooming in ultra slow motion."
Generate Video: The workflow processes the input and produces a captivating video featuring the product with the specified effects.
E-commerce Listings: Enhance product listings with dynamic videos to attract more customers.
Marketing Campaigns: Generate attention-grabbing videos for social media and email marketing.
Product Demonstrations: Showcase the features and utility of products in a visually engaging way.
Virtual Catalogs: Create immersive virtual catalogs that present products in motion, adding depth and interest to traditional browsing.