Wan 3.0 — Text to video API
Text to video with Wan 3.0: request parameters, examples and response handling.
Endpoint: POST https://api.higgsfield.ai/alibaba/wan-3.0/text-to-video
Endpoint ID: alibaba/wan-3.0/text-to-video
#Usage notes
- This endpoint generates from text; use the separate image or reference endpoint for media inputs.
- The schema accepts seed=0, but the current implementation only forwards a nonzero seed.
#Quick start
curl --request POST \
--url https://api.higgsfield.ai/alibaba/wan-3.0/text-to-video \
--header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
--header "Content-Type: application/json" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
--data '{
"prompt": "A cinematic wide shot of ocean waves at sunset, with gentle camera movement."
}'
import higgsfield_client
arguments = (
{'prompt': 'A cinematic wide shot of ocean waves at sunset, with gentle camera '
'movement.'}
)
result = higgsfield_client.subscribe(
"alibaba/wan-3.0/text-to-video",
arguments=arguments,
)
print(result["video"]["url"])
import { config, higgsfield } from "@higgsfield/client/v2";
config({ credentials: process.env.HF_CREDENTIALS });
const result = await higgsfield.subscribe("alibaba/wan-3.0/text-to-video", {
input:
{
"prompt": "A cinematic wide shot of ocean waves at sunset, with gentle camera movement."
},
withPolling: true,
});
if (result.status === "completed") {
console.log(result.video?.url);
}
#Input schema
seed integer
Seed used to control generation randomness.
Minimum: 0.
Maximum: 2147483647.
prompt string required
Write your prompt here
duration integer (default: 5)
2-30 seconds.
Minimum: 2.
Maximum: 30.
resolution string (default: 1080p)
Output resolution tier.
Allowed values: "480p", "720p", "1080p".
aspect_ratio string (default: adaptive)
Output width-to-height ratio.
Allowed values: "16:9", "4:3", "1:1", "3:4", "9:16", "adaptive".
generate_audio boolean (default: true)
Generate audio with the video.
enable_thinking boolean (default: false)
Enable model reasoning.
Complete JSON schema
{
"type": "object",
"title": "Wan 3.0 Text to Video",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 2147483647,
"minimum": 0
},
"prompt": {
"type": "string",
"title": "Prompt",
"description": "Write your prompt here"
},
"duration": {
"type": "integer",
"title": "Duration (sec)",
"default": 5,
"maximum": 30,
"minimum": 2,
"description": "2-30 seconds."
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "1080p"
},
"aspect_ratio": {
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"adaptive"
],
"type": "string",
"title": "Aspect Ratio",
"default": "adaptive"
},
"generate_audio": {
"type": "boolean",
"title": "Sound",
"default": true
},
"enable_thinking": {
"type": "boolean",
"title": "Deep Thinking",
"default": false
}
}
}
#Response
Submission returns a request handle. Poll status_url until status is completed, or use webhooks.
{
"status": "queued",
"request_id": "REQUEST_ID",
"status_url": "https://api.higgsfield.ai/requests/REQUEST_ID/status",
"cancel_url": "https://api.higgsfield.ai/requests/REQUEST_ID/cancel"
}
A completed response includes the following output fields:
{
"status": "completed",
"request_id": "REQUEST_ID",
"video": {
"url": "https://example.com/output.mp4"
}
}
See idempotent requests, polling, request errors and authentication for shared request handling.