typetext
{
"aspect_ratio": "1:1",
"duration": 5,
"generate_audio": false,
"prompt": "8 directional character sprite animation. Use [Image1] for the character appearance and pixel-art style. Use [Video1] for the running motion, timing, eight viewing directions, and 3x3 layout. Replace each mannequin with the corresponding character view from [Image1]. Keep the center cell empty, the camera fixed, and each character in its own cell facing the same direction throughout. Continue the same running cycle for the full duration. Plain gray background.",
"reference_images": [
"data:image/png;base64,..."
],
"reference_videos": [
"data:video/mp4;base64,..."
],
"resolution": "480p",
"seed": 42
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_2S5**********************************
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 bytedance/seedance-2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "1:1",
duration: 5,
generate_audio: false,
prompt: "8 directional character sprite animation. Use [Image1] for the character appearance and pixel-art style. Use [Video1] for the running motion, timing, eight viewing directions, and 3x3 layout. Replace each mannequin with the corresponding character view from [Image1]. Keep the center cell empty, the camera fixed, and each character in its own cell facing the same direction throughout. Continue the same running cycle for the full duration. Plain gray background.",
reference_images: ["data:image/png;base64,..."],
reference_videos: ["data:video/mp4;base64,..."],
resolution: "480p",
seed: 42
};
const output = await replicate.run("bytedance/seedance-2.0", { 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_2S5**********************************
This is your API token. Keep it to yourself.
import replicate
Run bytedance/seedance-2.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"bytedance/seedance-2.0",
input={
"aspect_ratio": "1:1",
"duration": 5,
"generate_audio": False,
"prompt": "8 directional character sprite animation. Use [Image1] for the character appearance and pixel-art style. Use [Video1] for the running motion, timing, eight viewing directions, and 3x3 layout. Replace each mannequin with the corresponding character view from [Image1]. Keep the center cell empty, the camera fixed, and each character in its own cell facing the same direction throughout. Continue the same running cycle for the full duration. Plain gray background.",
"reference_images": ["data:image/png;base64,..."],
"reference_videos": ["data:video/mp4;base64,..."],
"resolution": "480p",
"seed": 42
}
)
# 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_2S5**********************************
This is your API token. Keep it to yourself.
Run bytedance/seedance-2.0 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",
"duration": 5,
"generate_audio": false,
"prompt": "8 directional character sprite animation. Use [Image1] for the character appearance and pixel-art style. Use [Video1] for the running motion, timing, eight viewing directions, and 3x3 layout. Replace each mannequin with the corresponding character view from [Image1]. Keep the center cell empty, the camera fixed, and each character in its own cell facing the same direction throughout. Continue the same running cycle for the full duration. Plain gray background.",
"reference_images": ["data:image/png;base64,..."],
"reference_videos": ["data:video/mp4;base64,..."],
"resolution": "480p",
"seed": 42
}
}' \
https://api.replicate.com/v1/models/bytedance/seedance-2.0/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "actssx3r5xrmt0d0p11afdy2w4",
"model": "bytedance/seedance-2.0",
"version": "hidden",
"input": {
"aspect_ratio": "1:1",
"duration": 5,
"generate_audio": false,
"prompt": "8 directional character sprite animation. Use [Image1] for the character appearance and pixel-art style. Use [Video1] for the running motion, timing, eight viewing directions, and 3x3 layout. Replace each mannequin with the corresponding character view from [Image1]. Keep the center cell empty, the camera fixed, and each character in its own cell facing the same direction throughout. Continue the same running cycle for the full duration. Plain gray background.",
"reference_images": [
"data:image/png;base64,..."
],
"reference_videos": [
"data:video/mp4;base64,..."
],
"resolution": "480p",
"seed": 42
},
"logs": "Using seed: 42\nGenerating video... (request ID: cgt-20260918004546-49rmm)\nGenerated video in 167.5sec\nDownloading 1330584 bytes\nDownloaded 1.27MB in 7.91sec",
"output": "https://replicate.delivery/xezq/DJRjmTOtgHJgJJtbPV8ki3eapDFPyuIfkSVfUnXj29FMfy5cB/tmph01e_oem.mp4",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-09-17T16:45:41.295Z",
"started_at": "2026-09-17T16:45:41.626633Z",
"completed_at": "2026-09-17T16:48:38.306657Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/actssx3r5xrmt0d0p11afdy2w4/cancel",
"get": "https://api.replicate.com/v1/predictions/actssx3r5xrmt0d0p11afdy2w4",
"stream": "https://stream.replicate.com/v1/files/jbxs-d4tjqn6o7h7murifc35pz2e4hwdtomxenoq3swo2eklqikdfd4cq",
"web": "https://replicate.com/p/actssx3r5xrmt0d0p11afdy2w4"
},
"metrics": {
"model_variant": "video_in",
"predict_time": 176.680024674,
"resolution_target": "480p",
"token_output_count": 86800,
"total_time": 177.011657953,
"video_output_duration_seconds": 5
}
}