defaultClose-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k.
typetext
{
"fps": 24,
"guidance_scale": 5.5,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "Close-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_JfO**********************************
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 genmoai/mochi-1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"genmoai/mochi-1:1944af04d098ef69bed7f9d335d102e652203f268ec4aaa2d836f6217217e460",
{
input: {
fps: 24,
guidance_scale: 5.5,
num_frames: 121,
num_inference_steps: 30,
prompt: "Close-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k."
}
}
);
// 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_JfO**********************************
This is your API token. Keep it to yourself.
import replicate
Run genmoai/mochi-1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"genmoai/mochi-1:1944af04d098ef69bed7f9d335d102e652203f268ec4aaa2d836f6217217e460",
input={
"fps": 24,
"guidance_scale": 5.5,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "Close-up of a chameleon's eye, with its scaly skin changing color. Ultra high 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_JfO**********************************
This is your API token. Keep it to yourself.
Run genmoai/mochi-1 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": "genmoai/mochi-1:1944af04d098ef69bed7f9d335d102e652203f268ec4aaa2d836f6217217e460",
"input": {
"fps": 24,
"guidance_scale": 5.5,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "Close-up of a chameleon\'s eye, with its scaly skin changing color. Ultra high resolution 4k."
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "41vmsc96vxrm80ckg17awwyc6m",
"model": "genmoai/mochi-1",
"version": "1944af04d098ef69bed7f9d335d102e652203f268ec4aaa2d836f6217217e460",
"input": {
"fps": 24,
"guidance_scale": 5.5,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "Close-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k."
},
"logs": "Using seed: 48484\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:16<07:48, 16.16s/it]\n 7%|▋ | 2/30 [00:21<04:39, 9.99s/it]\n 10%|█ | 3/30 [00:28<03:46, 8.39s/it]\n 13%|█▎ | 4/30 [00:34<03:18, 7.64s/it]\n 17%|█▋ | 5/30 [00:41<03:00, 7.23s/it]\n 20%|██ | 6/30 [00:47<02:47, 6.99s/it]\n 23%|██▎ | 7/30 [00:54<02:37, 6.84s/it]\n 27%|██▋ | 8/30 [01:00<02:28, 6.74s/it]\n 30%|███ | 9/30 [01:07<02:20, 6.67s/it]\n 33%|███▎ | 10/30 [01:13<02:12, 6.62s/it]\n 37%|███▋ | 11/30 [01:20<02:05, 6.59s/it]\n 40%|████ | 12/30 [01:26<01:58, 6.57s/it]\n 43%|████▎ | 13/30 [01:33<01:51, 6.55s/it]\n 47%|████▋ | 14/30 [01:39<01:44, 6.54s/it]\n 50%|█████ | 15/30 [01:46<01:37, 6.53s/it]\n 53%|█████▎ | 16/30 [01:52<01:31, 6.52s/it]\n 57%|█████▋ | 17/30 [01:59<01:24, 6.52s/it]\n 60%|██████ | 18/30 [02:06<01:18, 6.51s/it]\n 63%|██████▎ | 19/30 [02:12<01:11, 6.51s/it]\n 67%|██████▋ | 20/30 [02:19<01:05, 6.51s/it]\n 70%|███████ | 21/30 [02:25<00:58, 6.51s/it]\n 73%|███████▎ | 22/30 [02:31<00:52, 6.50s/it]\n 77%|███████▋ | 23/30 [02:38<00:45, 6.50s/it]\n 80%|████████ | 24/30 [02:44<00:38, 6.49s/it]\n 83%|████████▎ | 25/30 [02:51<00:32, 6.49s/it]\n 87%|████████▋ | 26/30 [02:57<00:25, 6.49s/it]\n 90%|█████████ | 27/30 [03:04<00:19, 6.49s/it]\n 93%|█████████▎| 28/30 [03:11<00:13, 6.52s/it]\n 97%|█████████▋| 29/30 [03:17<00:06, 6.51s/it]\n100%|██████████| 30/30 [03:24<00:00, 6.51s/it]\n100%|██████████| 30/30 [03:24<00:00, 6.80s/it]",
"output": "https://replicate.delivery/xezq/AF0YFy7wRq4YOJC20hGKxkN7Q0y7opcXkQdfx3mG21Df2Y2TA/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-12-01T03:40:25.695Z",
"started_at": "2024-12-01T03:41:20.870831Z",
"completed_at": "2024-12-01T03:45:02.340601Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/41vmsc96vxrm80ckg17awwyc6m/cancel",
"get": "https://api.replicate.com/v1/predictions/41vmsc96vxrm80ckg17awwyc6m",
"stream": "https://stream.replicate.com/v1/files/bcwr-7e4enlphbmwnz6o5ulpjnkzcjd2bnobfkjzfwn4penkqivlf6s7q",
"web": "https://replicate.com/p/41vmsc96vxrm80ckg17awwyc6m"
},
"metrics": {
"predict_time": 221.469770524,
"total_time": 276.645601
}
}