Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
cjwbw /videocrafter:75e2458c
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/videocrafter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/videocrafter:75e2458cd5b752530d79666df06c3cc57ec5bf1906fd906cd415bb7dd570500b",
{
input: {
task: "text2video",
prompt: "A tiger walks in the forest, photorealistic, 4k, high definition",
save_fps: 10,
ddim_steps: 50,
unconditional_guidance_scale: 12
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run cjwbw/videocrafter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/videocrafter:75e2458cd5b752530d79666df06c3cc57ec5bf1906fd906cd415bb7dd570500b",
input={
"task": "text2video",
"prompt": "A tiger walks in the forest, photorealistic, 4k, high definition",
"save_fps": 10,
"ddim_steps": 50,
"unconditional_guidance_scale": 12
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/videocrafter 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/videocrafter:75e2458cd5b752530d79666df06c3cc57ec5bf1906fd906cd415bb7dd570500b",
"input": {
"task": "text2video",
"prompt": "A tiger walks in the forest, photorealistic, 4k, high definition",
"save_fps": 10,
"ddim_steps": 50,
"unconditional_guidance_scale": 12
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-11-04T23:01:11.335719Z",
"created_at": "2023-11-04T22:57:42.608647Z",
"data_removed": false,
"error": null,
"id": "loe2qxzbumbyyekovrbmyjcupq",
"input": {
"task": "text2video",
"prompt": "A tiger walks in the forest, photorealistic, 4k, high definition",
"save_fps": 10,
"ddim_steps": 50,
"unconditional_guidance_scale": 12
},
"logs": "Using seed: 23224\nSeed set to 23224\nDDIM scale True\nddim device cuda:0",
"metrics": {
"predict_time": 208.770097,
"total_time": 208.727072
},
"output": "https://replicate.delivery/pbxt/Y6PY6xd42to6FJM9FWao0mBa5CJrV1LhZF9P9pZChWlNfj6IA/output.mp4",
"started_at": "2023-11-04T22:57:42.565622Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/loe2qxzbumbyyekovrbmyjcupq",
"cancel": "https://api.replicate.com/v1/predictions/loe2qxzbumbyyekovrbmyjcupq/cancel"
},
"version": "75e2458cd5b752530d79666df06c3cc57ec5bf1906fd906cd415bb7dd570500b"
}
Using seed: 23224
Seed set to 23224
DDIM scale True
ddim device cuda:0