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: "Campfire at night in a snowy forest with starry sky in the background.",
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": "Campfire at night in a snowy forest with starry sky in the background.",
"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": "Campfire at night in a snowy forest with starry sky in the background.",
"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:08:56.096303Z",
"created_at": "2023-11-04T23:02:37.539901Z",
"data_removed": false,
"error": null,
"id": "y4k2ktrbnmjcjaso2ytlvvn2he",
"input": {
"task": "text2video",
"prompt": "Campfire at night in a snowy forest with starry sky in the background.",
"save_fps": 10,
"ddim_steps": 50,
"unconditional_guidance_scale": 12
},
"logs": "Using seed: 43046\nSeed set to 43046\nDDIM scale True\nddim device cuda:0",
"metrics": {
"predict_time": 209.039388,
"total_time": 378.556402
},
"output": "https://replicate.delivery/pbxt/QoymBeTHlNRvZSVJJDt2yOx7sceyB57VHduddydsdDwHEI1RA/output.mp4",
"started_at": "2023-11-04T23:05:27.056915Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/y4k2ktrbnmjcjaso2ytlvvn2he",
"cancel": "https://api.replicate.com/v1/predictions/y4k2ktrbnmjcjaso2ytlvvn2he/cancel"
},
"version": "75e2458cd5b752530d79666df06c3cc57ec5bf1906fd906cd415bb7dd570500b"
}
Using seed: 43046
Seed set to 43046
DDIM scale True
ddim device cuda:0