video
from0.075 / s
Wan 2.7
Wan 2.7 - Reference to Video. Configured Alibaba route; cloned from wan-27/reference-to-video.
import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "wan/v2.7/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "720p", "aspect_ratio": "16:9", "prompt_extend": false, "negative_prompt": "" }, withPolling: true, },); console.log(result);Calling the API
Use wan/v2.7/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.7/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "720p", "aspect_ratio": "16:9", "prompt_extend": false, "negative_prompt": "" }, withPolling: true, },); console.log(result);Request parameters
promptstring · required
Write your prompt here
{
"type": "string",
"title": "Prompt",
"description": "Write your prompt here"
}image_urlsarray · optional
image urls
{
"type": "array",
"items": {
"type": "string",
"title": "Image",
"format": "uri"
}
}aspect_ratiostring · optional
Aspect Ratio
Options: 16:9, 9:16
Default: "16:9"
{
"enum": [
"16:9",
"9:16"
],
"type": "string",
"title": "Aspect Ratio",
"default": "16:9"
}resolutionstring · optional
resolution
Options: 720p, 1080p
Default: "720p"
{
"enum": [
"720p",
"1080p"
],
"type": "string",
"default": "720p"
}durationinteger · optional
Duration
Default: 5
{
"type": "integer",
"title": "Duration",
"default": 5,
"maximum": 10,
"minimum": 2
}seedinteger · optional
seed
{
"type": "integer",
"maximum": 2147483646,
"minimum": 1
}video_urlsarray · optional
video urls
{
"type": "array",
"items": {
"type": "string",
"title": "Video",
"format": "uri"
}
}prompt_extendboolean · optional
prompt extend
Default: false
{
"type": "boolean",
"default": false
}negative_promptstring · optional
Negative prompt
Default: ""
{
"type": "string",
"title": "Negative prompt",
"default": ""
}Price
Standard self-serve rates in USD per video second: 720p: $0.0750; 1080p: $0.1125. Total price = selected rate × output duration in seconds.
View all pricing