import { port } from "@portmoda/client";
const result = await port.subscribe("kling/kling-v2-master/image-to-video", {
input: {
prompt: 'A cute hamster lies leisurely on a lifebuoy, wearing fashionable sunglasses, and drifts with the gentle waves on the shimmering sea surface. The hamster reclines comfortably, enjoying a peaceful and pleasant time. Cartoon style, the camera follows the subject moving, with a heartwarming and high picture quality.',
negative_prompt: '',
guidance_scale: 0.5,
aspect_ratio: '16:9',
duration: 5,
start_image: 'https://assets.port.moda/uploads/1748811753168-05ceab0d.png'
},
logs: true,
onQueueUpdate: (update) => {
console.log(update)
},
});
console.log(result.data);
console.log(result.requestId);