Seedance 2.5 — Text to video API
Text to video with Seedance 2.5: request parameters, examples and response handling.
Endpoint: POST https://api.higgsfield.ai/bytedance/seedance-2.5/text-to-video
Endpoint ID: bytedance/seedance-2.5/text-to-video
#Usage notes
- Use publicly accessible media URLs; asset:// references are rejected for these endpoints.
- Provide a nonblank prompt. This endpoint does not use media inputs; use the image-to-video or reference-to-video endpoint instead.
#Quick start
curl --request POST \
--url https://api.higgsfield.ai/bytedance/seedance-2.5/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(
"bytedance/seedance-2.5/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("bytedance/seedance-2.5/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
prompt string required
Write your prompt here
Minimum characters: 1.
duration integer (default: 5)
Requested output duration in seconds.
Minimum: 4.
Maximum: 30.
resolution string (default: 720p)
Output resolution tier.
Allowed values: "480p", "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", "21:9".
bitrate_mode string (default: high)
Allowed values: "standard", "high".
output_format string (default: mp4)
Output file format.
Allowed values: "mp4", "mov".
generate_audio boolean (default: true)
Generate audio with the video.
Complete JSON schema
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"description": "Write your prompt here"
},
"duration": {
"type": "integer",
"default": 5,
"maximum": 30,
"minimum": 4
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"default": "720p"
},
"aspect_ratio": {
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"21:9"
],
"type": "string",
"default": "16:9"
},
"bitrate_mode": {
"enum": [
"standard",
"high"
],
"type": "string",
"default": "high"
},
"output_format": {
"enum": [
"mp4",
"mov"
],
"type": "string",
"default": "mp4"
},
"generate_audio": {
"type": "boolean",
"default": true
}
},
"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.