video
from0.094 / s
Kling 4.0 Flash
Animate one image as the first frame of a 720p video with Kling 4.0 Flash. Add an optional prompt and choose a duration from 3 to 20 seconds. Output dimensions follow the input image.
import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "kling-video/v4.0-flash/image-to-video", { input: { "prompt": "", "duration": 10, "image_url": "https://example.com/input.jpg", "resolution": "720p" }, withPolling: true, },); console.log(result);Calling the API
Use kling-video/v4.0-flash/image-to-video with the Higgsfield API. Keep credentials on your server.
import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "kling-video/v4.0-flash/image-to-video", { input: { "prompt": "", "duration": 10, "image_url": "https://example.com/input.jpg", "resolution": "720p" }, withPolling: true, },); console.log(result);Request parameters
promptstring · optional
prompt
Default: ""
{
"type": "string",
"default": ""
}durationinteger · optional
Requested output duration in seconds, from 3 to 20.
Default: 10
{
"type": "integer",
"default": 10,
"maximum": 20,
"minimum": 3,
"description": "Requested output duration in seconds, from 3 to 20."
}image_urlstring · required
image url
{
"type": "string",
"format": "uri",
"minLength": 1
}resolutionstring · optional
resolution
Options: 720p
Default: "720p"
{
"enum": [
"720p"
],
"type": "string",
"default": "720p"
}Price
From $0.0940 per second.
View all pricing