video
from0.0752 / s
Wan 2.6
Wan 2.6 - Reference to Video. Configured Alibaba route; cloned from wan-26/references-to-video.
import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "wan/v2.6/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "720p", "video_urls": [ "https://example.com/input.mp4" ], "aspect_ratio": "16:9" }, withPolling: true, },); console.log(result);Calling the API
Use wan/v2.6/reference-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( "wan/v2.6/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "720p", "video_urls": [ "https://example.com/input.mp4" ], "aspect_ratio": "16:9" }, withPolling: true, },); console.log(result);Request parameters
promptstring · required
Write your prompt here
{
"type": "string",
"title": "Prompt",
"description": "Write your prompt here"
}durationinteger · optional
Duration
Options: 5, 10
Default: 5
{
"enum": [
5,
10
],
"type": "integer",
"title": "Duration",
"default": 5
}resolutionstring · optional
Resolution
Options: 720p, 1080p
Default: "720p"
{
"enum": [
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "720p"
}video_urlsarray · required
video urls
{
"type": "array",
"items": {
"type": "string",
"title": "Video URL",
"format": "uri"
},
"maxItems": 3,
"minItems": 1
}aspect_ratiostring · optional
aspect ratio
Options: 16:9, 9:16, 1:1, 4:3, 3:4
Default: "16:9"
{
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"type": "string",
"default": "16:9"
}Price
Standard self-serve rates in USD per video second: 720p: $0.0752; 1080p: $0.1129. Total price = selected rate × output duration in seconds.
View all pricing