The model does not consider the image address when creating videos. This causes the video generation process to use only the prompt...!!
The image address provided is direct and does not trigger any CORS (Cross-Origin Resource Sharing) errors.
puter.ai
.txt2vid("move it", {
model: "Wan-AI/Wan2.2-I2V-A14B",
image_url: "https://aiduni.ir/upload_images/1.png",
})
.then((videoElement) => {
document.body.appendChild(videoElement);
videoElement.addEventListener("loadeddata", () =>
videoElement.play().catch((error) => {
console.error("Error playing video:", error);
})
);
})
.catch((error) => {
console.error("Error creating video:", error);
});