Wan 3.0 Prime
Generate videos guided by reference images with Wan 3.0 Prime.
import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS,}); const result = await higgsfield.subscribe( "alibaba/wan-3.0-prime/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "1080p", "aspect_ratio": "adaptive", "prompt_extend": false, "generate_audio": true, "enable_thinking": false }, withPolling: true, },); console.log(result);Calling the API
Use alibaba/wan-3.0-prime/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( "alibaba/wan-3.0-prime/reference-to-video", { input: { "prompt": "A cinematic scene at sunset", "duration": 5, "resolution": "1080p", "aspect_ratio": "adaptive", "prompt_extend": false, "generate_audio": true, "enable_thinking": false }, withPolling: true, },); console.log(result);Request parameters
promptstring · required
Write your prompt here
{
"type": "string",
"title": "Prompt",
"description": "Write your prompt here"
}seedinteger · optional
Seed
{
"type": "integer",
"title": "Seed",
"maximum": 2147483647,
"minimum": 0
}durationinteger · optional
2-30 seconds.
Default: 5
{
"type": "integer",
"title": "Duration (sec)",
"default": 5,
"maximum": 30,
"minimum": 2,
"description": "2-30 seconds."
}file_urlstring · optional
One document (docx/xlsx/pptx/pdf/md). Forces deep thinking.
{
"type": "string",
"title": "Reference Document",
"format": "uri",
"description": "One document (docx/xlsx/pptx/pdf/md). Forces deep thinking."
}link_urlstring · optional
One public page. Forces deep thinking. Not combinable with file_url.
{
"type": "string",
"title": "Reference Web Page",
"format": "uri",
"description": "One public page. Forces deep thinking. Not combinable with file_url."
}audio_urlsarray · optional
Up to 5 files, 30s total. WAV or MP3.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference Audio",
"maxItems": 5,
"description": "Up to 5 files, 30s total. WAV or MP3."
}image_urlsarray · optional
Reference Images
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference Images",
"maxItems": 10
}resolutionstring · optional
Resolution
Options: 480p, 720p, 1080p
Default: "1080p"
{
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "1080p"
}video_urlsarray · optional
Up to 5 clips, 30s total, each 1-30s.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Reference Videos",
"maxItems": 5,
"description": "Up to 5 clips, 30s total, each 1-30s."
}aspect_ratiostring · optional
Aspect Ratio
Options: 16:9, 4:3, 1:1, 3:4, 9:16, adaptive
Default: "adaptive"
{
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"adaptive"
],
"type": "string",
"title": "Aspect Ratio",
"default": "adaptive"
}prompt_extendboolean · optional
Enable Alibaba automatic prompt rewriting. Set false to disable it. Always enabled when file_url or link_url is provided.
Default: false
{
"type": "boolean",
"title": "Prompt Expansion",
"default": false,
"description": "Enable Alibaba automatic prompt rewriting. Set false to disable it. Always enabled when file_url or link_url is provided."
}generate_audioboolean · optional
Sound
Default: true
{
"type": "boolean",
"title": "Sound",
"default": true
}enable_thinkingboolean · optional
Deep Thinking
Default: false
{
"type": "boolean",
"title": "Deep Thinking",
"default": false
}Price
Standard self-serve rates in USD per second of generated video. - Without video input: 480p: $0.0510; 720p: $0.1050; 1080p: $0.2100. - With video input: 480p: $0.1013; 720p: $0.2084; 1080p: $0.4341. Total price = selected rate × output duration in seconds. Input video duration is not added to the billed duration.
View all pricing