PixVerse V6 — Text to video API
Text to video with PixVerse V6: request parameters, examples and response handling.
Endpoint: POST https://api.higgsfield.ai/pixverse/v6/text-to-video
Endpoint ID: pixverse/v6/text-to-video
#Usage notes
- duration is a number from 1 to 15, so the schema allows fractional values. If negative_prompt is supplied, it must contain 1–2,048 characters.
#Quick start
curl --request POST \
--url https://api.higgsfield.ai/pixverse/v6/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(
"pixverse/v6/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("pixverse/v6/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
Minimum characters: 1.
Maximum characters: 5000.
duration number (default: 5)
Requested output duration in seconds.
Minimum: 1.
Maximum: 15.
resolution string (default: 720p)
Output resolution tier.
Allowed values: "360p", "540p", "720p", "1080p".
aspect_ratio string (default: 16:9)
Output width-to-height ratio.
Allowed values: "16:9", "4:3", "1:1", "3:4", "9:16".
generate_audio boolean (default: true)
Generate audio with the video.
negative_prompt string
Content or visual features to avoid.
Minimum characters: 1.
Maximum characters: 2048.
Complete JSON schema
{
"type": "object",
"title": "PixVerse V6 Text to Video Playground",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"maximum": 2147483647,
"minimum": 0
},
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 5000,
"minLength": 1,
"description": "Write your prompt here"
},
"duration": {
"type": "number",
"title": "Duration",
"default": 5,
"maximum": 15,
"minimum": 1
},
"resolution": {
"enum": [
"360p",
"540p",
"720p",
"1080p"
],
"type": "string",
"title": "Resolution",
"default": "720p"
},
"aspect_ratio": {
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16"
],
"type": "string",
"title": "Aspect ratio",
"default": "16:9"
},
"generate_audio": {
"type": "boolean",
"title": "Generate audio",
"default": true
},
"negative_prompt": {
"type": "string",
"title": "Negative prompt",
"maxLength": 2048,
"minLength": 1
}
},
"additionalProperties": 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.