import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "kling-video/v4.0/video-edit", { input: { "prompt": "A cinematic scene at sunset", "duration": 10, "video_url": "https://example.com/input.mp4", "resolution": "1080p", "aspect_ratio": "adaptive" }, withPolling: true, },); console.log(result);Result
Demo sample · no AI jobPrice
Standard self-serve rates in USD per second of generated video. - Without video input: 720p: $0.1257; 1080p: $0.1879. - With video input: 720p: $0.1544; 1080p: $0.2336. Total price = selected rate × output duration in seconds. Input video duration is not added to the billed duration. Video input includes video-based elements.
View all pricing