defaultA striking mallard floats effortlessly on the sparkling pond.
typetext
{
"condition": "pose",
"guidance_scale": 12.5,
"is_long_video": true,
"num_inference_steps": 50,
"prompt": "James bond moonwalk on the beach, animation style.",
"smoother_steps": "19, 20",
"video_length": 15,
"video_path": "https://replicate.delivery/pbxt/Itp2gAJAkjTrIpLElNLmXjCtwLv5LnQTR2qWE15Qav0eyktR/moonwalk.mp4"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_d54**********************************
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 cjwbw/controlvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/controlvideo:91710b3f53c9c1cb958e7bf0ea982d21b666f6a3ff28c1670ee0c08355ced925",
{
input: {
condition: "pose",
guidance_scale: 12.5,
is_long_video: true,
num_inference_steps: 50,
prompt: "James bond moonwalk on the beach, animation style.",
smoother_steps: "19, 20",
video_length: 15,
video_path: "https://replicate.delivery/pbxt/Itp2gAJAkjTrIpLElNLmXjCtwLv5LnQTR2qWE15Qav0eyktR/moonwalk.mp4"
}
}
);
// 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_d54**********************************
This is your API token. Keep it to yourself.
import replicate
Run cjwbw/controlvideo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/controlvideo:91710b3f53c9c1cb958e7bf0ea982d21b666f6a3ff28c1670ee0c08355ced925",
input={
"condition": "pose",
"guidance_scale": 12.5,
"is_long_video": True,
"num_inference_steps": 50,
"prompt": "James bond moonwalk on the beach, animation style.",
"smoother_steps": "19, 20",
"video_length": 15,
"video_path": "https://replicate.delivery/pbxt/Itp2gAJAkjTrIpLElNLmXjCtwLv5LnQTR2qWE15Qav0eyktR/moonwalk.mp4"
}
)
# 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_d54**********************************
This is your API token. Keep it to yourself.
Run cjwbw/controlvideo 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 $'{
"version": "cjwbw/controlvideo:91710b3f53c9c1cb958e7bf0ea982d21b666f6a3ff28c1670ee0c08355ced925",
"input": {
"condition": "pose",
"guidance_scale": 12.5,
"is_long_video": true,
"num_inference_steps": 50,
"prompt": "James bond moonwalk on the beach, animation style.",
"smoother_steps": "19, 20",
"video_length": 15,
"video_path": "https://replicate.delivery/pbxt/Itp2gAJAkjTrIpLElNLmXjCtwLv5LnQTR2qWE15Qav0eyktR/moonwalk.mp4"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "jqjkpj2fz5cevfksaibt4ipfka",
"model": "cjwbw/controlvideo",
"version": "91710b3f53c9c1cb958e7bf0ea982d21b666f6a3ff28c1670ee0c08355ced925",
"input": {
"condition": "pose",
"guidance_scale": 12.5,
"is_long_video": true,
"num_inference_steps": 50,
"prompt": "James bond moonwalk on the beach, animation style.",
"smoother_steps": "19, 20",
"video_length": 15,
"video_path": "https://replicate.delivery/pbxt/Itp2gAJAkjTrIpLElNLmXjCtwLv5LnQTR2qWE15Qav0eyktR/moonwalk.mp4"
},
"logs": "Using seed: 8820\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:01<01:24, 1.73s/it]\n 4%|▍ | 2/50 [00:03<01:22, 1.72s/it]\n 6%|▌ | 3/50 [00:05<01:19, 1.70s/it]\n 8%|▊ | 4/50 [00:06<01:17, 1.68s/it]\n 10%|█ | 5/50 [00:08<01:16, 1.70s/it]\n 12%|█▏ | 6/50 [00:10<01:14, 1.70s/it]\n 14%|█▍ | 7/50 [00:11<01:12, 1.69s/it]\n 16%|█▌ | 8/50 [00:13<01:11, 1.69s/it]\n 18%|█▊ | 9/50 [00:15<01:08, 1.68s/it]\n 20%|██ | 10/50 [00:16<01:06, 1.67s/it]\n 22%|██▏ | 11/50 [00:18<01:05, 1.68s/it]\n 24%|██▍ | 12/50 [00:20<01:03, 1.67s/it]\n 26%|██▌ | 13/50 [00:21<01:02, 1.68s/it]\n 28%|██▊ | 14/50 [00:23<00:59, 1.64s/it]\n 30%|███ | 15/50 [00:25<00:57, 1.65s/it]\n 32%|███▏ | 16/50 [00:26<00:56, 1.67s/it]\n 34%|███▍ | 17/50 [00:28<00:54, 1.66s/it]\n 36%|███▌ | 18/50 [00:30<00:53, 1.67s/it]\n 38%|███▊ | 19/50 [00:31<00:52, 1.68s/it]\n 40%|████ | 20/50 [00:33<00:50, 1.68s/it]\n 42%|████▏ | 21/50 [00:35<00:48, 1.68s/it]\n 44%|████▍ | 22/50 [00:36<00:46, 1.67s/it]\n 46%|████▌ | 23/50 [00:38<00:44, 1.66s/it]\n 48%|████▊ | 24/50 [00:40<00:43, 1.65s/it]\n 50%|█████ | 25/50 [00:41<00:41, 1.66s/it]\n 52%|█████▏ | 26/50 [00:43<00:40, 1.68s/it]\n 54%|█████▍ | 27/50 [00:45<00:38, 1.66s/it]\n 56%|█████▌ | 28/50 [00:46<00:36, 1.66s/it]\n 58%|█████▊ | 29/50 [00:48<00:35, 1.68s/it]\n 60%|██████ | 30/50 [00:50<00:33, 1.67s/it]\n 62%|██████▏ | 31/50 [00:52<00:37, 1.98s/it]\n 64%|██████▍ | 32/50 [00:55<00:39, 2.20s/it]\n 66%|██████▌ | 33/50 [00:57<00:34, 2.03s/it]\n 68%|██████▊ | 34/50 [00:59<00:31, 1.94s/it]\n 70%|███████ | 35/50 [01:00<00:27, 1.85s/it]\n 72%|███████▏ | 36/50 [01:02<00:24, 1.77s/it]\n 74%|███████▍ | 37/50 [01:03<00:22, 1.74s/it]\n 76%|███████▌ | 38/50 [01:05<00:20, 1.70s/it]\n 78%|███████▊ | 39/50 [01:07<00:18, 1.67s/it]\n 80%|████████ | 40/50 [01:08<00:16, 1.68s/it]\n 82%|████████▏ | 41/50 [01:10<00:15, 1.69s/it]\n 84%|████████▍ | 42/50 [01:12<00:13, 1.70s/it]\n 86%|████████▌ | 43/50 [01:13<00:11, 1.69s/it]\n 88%|████████▊ | 44/50 [01:15<00:10, 1.69s/it]\n 90%|█████████ | 45/50 [01:17<00:08, 1.68s/it]\n 92%|█████████▏| 46/50 [01:18<00:06, 1.68s/it]\n 94%|█████████▍| 47/50 [01:20<00:05, 1.68s/it]\n 96%|█████████▌| 48/50 [01:22<00:03, 1.66s/it]\n 98%|█████████▊| 49/50 [01:23<00:01, 1.65s/it]\n100%|██████████| 50/50 [01:25<00:00, 1.65s/it]\n100%|██████████| 50/50 [01:25<00:00, 1.71s/it]",
"output": "https://replicate.delivery/pbxt/bjMfMw6atg0uLK4kWkZeSCNi9y0kITd66AdnBP1lOu3QLFARA/out.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-05-28T00:29:34.646169Z",
"started_at": "2023-05-28T00:29:34.567495Z",
"completed_at": "2023-05-28T00:31:12.724074Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/jqjkpj2fz5cevfksaibt4ipfka/cancel",
"get": "https://api.replicate.com/v1/predictions/jqjkpj2fz5cevfksaibt4ipfka"
},
"metrics": {
"predict_time": 98.156579,
"total_time": 98.077905
}
}