defaultlite
typeenum
value typestring
optionslite, pro
{
"aspect_ratio": "1:1",
"camera_fixed": false,
"context_hint": "Rustling wheat, sharp bird call, wind gusts",
"duration": 5,
"enable_sound": true,
"enable_upscaling": true,
"model_quality": "lite",
"prompt": "A brilliant crimson cardinal bursting through a field of golden wheat, its scarlet feathers creating a striking contrast against the amber waves that bend and sway in the wind around it",
"resolution": "720p",
"target_fps": 60,
"target_resolution": "4k"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Pgg**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zsxkib/seedance-1-with-sound using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "1:1",
camera_fixed: false,
context_hint: "Rustling wheat, sharp bird call, wind gusts",
duration: 5,
enable_sound: true,
enable_upscaling: true,
model_quality: "lite",
prompt: "A brilliant crimson cardinal bursting through a field of golden wheat, its scarlet feathers creating a striking contrast against the amber waves that bend and sway in the wind around it",
resolution: "720p",
target_fps: 60,
target_resolution: "4k"
};
const output = await replicate.run("zsxkib/seedance-1-with-sound", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Pgg**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/seedance-1-with-sound using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/seedance-1-with-sound",
input={
"aspect_ratio": "1:1",
"camera_fixed": False,
"context_hint": "Rustling wheat, sharp bird call, wind gusts",
"duration": 5,
"enable_sound": True,
"enable_upscaling": True,
"model_quality": "lite",
"prompt": "A brilliant crimson cardinal bursting through a field of golden wheat, its scarlet feathers creating a striking contrast against the amber waves that bend and sway in the wind around it",
"resolution": "720p",
"target_fps": 60,
"target_resolution": "4k"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Pgg**********************************
This is your API token. Keep it to yourself.
Run zsxkib/seedance-1-with-sound using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"aspect_ratio": "1:1",
"camera_fixed": false,
"context_hint": "Rustling wheat, sharp bird call, wind gusts",
"duration": 5,
"enable_sound": true,
"enable_upscaling": true,
"model_quality": "lite",
"prompt": "A brilliant crimson cardinal bursting through a field of golden wheat, its scarlet feathers creating a striking contrast against the amber waves that bend and sway in the wind around it",
"resolution": "720p",
"target_fps": 60,
"target_resolution": "4k"
}
}' \
https://api.replicate.com/v1/models/zsxkib/seedance-1-with-sound/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "nk6y5t39rhrme0cr3qeap81jd0",
"model": "zsxkib/seedance-1-with-sound",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"camera_fixed": false,
"context_hint": "Rustling wheat, sharp bird call, wind gusts",
"duration": 5,
"enable_sound": true,
"enable_upscaling": true,
"model_quality": "lite",
"prompt": "A brilliant crimson cardinal bursting through a field of golden wheat, its scarlet feathers creating a striking contrast against the amber waves that bend and sway in the wind around it",
"resolution": "720p",
"target_fps": 60,
"target_resolution": "4k"
},
"logs": "",
"output": "https://replicate.delivery/xezq/5iTbONbICe31UqyimmMjufCLa9vpfgV8urwzoYJ0hJjzfBIUB/tmpvd2bie4g.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-18T14:07:21.028Z",
"started_at": "2025-07-18T14:07:27.822966Z",
"completed_at": "2025-07-18T14:11:05.921466Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/nk6y5t39rhrme0cr3qeap81jd0/cancel",
"children": "https://api.replicate.com/v1/predictions/nk6y5t39rhrme0cr3qeap81jd0/children",
"get": "https://api.replicate.com/v1/predictions/nk6y5t39rhrme0cr3qeap81jd0",
"root": "https://api.replicate.com/v1/predictions/nk6y5t39rhrme0cr3qeap81jd0",
"stream": "https://stream.replicate.com/v1/files/bcwr-7i74g6wtyalqv6mzfcej7figcdelygsdxsysc2mry2aa3mgpjo6q",
"web": "https://replicate.com/p/nk6y5t39rhrme0cr3qeap81jd0"
},
"metrics": {
"predict_time": 218.09849958,
"total_time": 224.893466
}
}