import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/vidu/q2/image-to-video/turbo", {
input: {
prompt: "A woman walking through a vibrant city street at night, neon lights reflecting off wet pavement.",
image_url: "https://storage.googleapis.com/falserverless/web-examples/vidu/stylish_woman.webp"
},
logs: true,
onQueueUpdate: (update) => {
if (update.status === "IN_PROGRESS") {
update.logs.map((log) => log.message).forEach(console.log);
}
},
});
console.log(result.data);
console.log(result.requestId);