defaultClose-up of a chameleon's eye, with its scaly skin changing color. Ultra high resolution 4k.
typetext
{
"fps": 24,
"guidance_scale": 6,
"hf_lora": "svjack/mochi_game_mix_early_lora",
"lora_scale": 1,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night",
"seed": 29655
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Hi0**********************************
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-lora 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-lora:bad496d88086d5f60307291a512fdcb4fab0b30027e7ccbcc2ecf5e6606d5e20",
{
input: {
fps: 24,
guidance_scale: 6,
hf_lora: "svjack/mochi_game_mix_early_lora",
lora_scale: 1,
num_frames: 121,
num_inference_steps: 30,
prompt: "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night",
seed: 29655
}
}
);
// 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_Hi0**********************************
This is your API token. Keep it to yourself.
import replicate
Run genmoai/mochi-1-lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"genmoai/mochi-1-lora:bad496d88086d5f60307291a512fdcb4fab0b30027e7ccbcc2ecf5e6606d5e20",
input={
"fps": 24,
"guidance_scale": 6,
"hf_lora": "svjack/mochi_game_mix_early_lora",
"lora_scale": 1,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night",
"seed": 29655
}
)
# 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_Hi0**********************************
This is your API token. Keep it to yourself.
Run genmoai/mochi-1-lora 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-lora:bad496d88086d5f60307291a512fdcb4fab0b30027e7ccbcc2ecf5e6606d5e20",
"input": {
"fps": 24,
"guidance_scale": 6,
"hf_lora": "svjack/mochi_game_mix_early_lora",
"lora_scale": 1,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night",
"seed": 29655
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "fvd2ksf5mdrme0ckh8st63h9dr",
"model": "genmoai/mochi-1-lora",
"version": "bad496d88086d5f60307291a512fdcb4fab0b30027e7ccbcc2ecf5e6606d5e20",
"input": {
"fps": 24,
"guidance_scale": 6,
"hf_lora": "svjack/mochi_game_mix_early_lora",
"lora_scale": 1,
"num_frames": 121,
"num_inference_steps": 30,
"prompt": "The video opens with a close-up of a woman in a white and purple outfit, holding a glowing purple butterfly. She has dark hair and walks gracefully through a traditional Japanese-style village at night",
"seed": 29655
},
"logs": "Using seed: 29655\nLoading LoRA: svjack/mochi_game_mix_early_lora with scale of: 1.0\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:13<06:43, 13.90s/it]\n 7%|▋ | 2/30 [00:19<04:16, 9.17s/it]\n 10%|█ | 3/30 [00:26<03:36, 8.03s/it]\n 13%|█▎ | 4/30 [00:33<03:14, 7.50s/it]\n 17%|█▋ | 5/30 [00:39<03:00, 7.21s/it]\n 20%|██ | 6/30 [00:46<02:48, 7.04s/it]\n 23%|██▎ | 7/30 [00:53<02:39, 6.92s/it]\n 27%|██▋ | 8/30 [00:59<02:30, 6.85s/it]\n 30%|███ | 9/30 [01:06<02:22, 6.80s/it]\n 33%|███▎ | 10/30 [01:13<02:15, 6.76s/it]\n 37%|███▋ | 11/30 [01:19<02:08, 6.74s/it]\n 40%|████ | 12/30 [01:26<02:01, 6.73s/it]\n 43%|████▎ | 13/30 [01:33<01:54, 6.71s/it]\n 47%|████▋ | 14/30 [01:40<01:47, 6.71s/it]\n 50%|█████ | 15/30 [01:46<01:40, 6.70s/it]\n 53%|█████▎ | 16/30 [01:53<01:33, 6.71s/it]\n 57%|█████▋ | 17/30 [02:00<01:27, 6.71s/it]\n 60%|██████ | 18/30 [02:06<01:20, 6.71s/it]\n 63%|██████▎ | 19/30 [02:13<01:13, 6.71s/it]\n 67%|██████▋ | 20/30 [02:20<01:07, 6.72s/it]\n 70%|███████ | 21/30 [02:27<01:00, 6.72s/it]\n 73%|███████▎ | 22/30 [02:33<00:53, 6.72s/it]\n 77%|███████▋ | 23/30 [02:40<00:47, 6.72s/it]\n 80%|████████ | 24/30 [02:47<00:40, 6.72s/it]\n 83%|████████▎ | 25/30 [02:53<00:33, 6.72s/it]\n 87%|████████▋ | 26/30 [03:00<00:26, 6.72s/it]\n 90%|█████████ | 27/30 [03:07<00:20, 6.72s/it]\n 93%|█████████▎| 28/30 [03:14<00:13, 6.71s/it]\n 97%|█████████▋| 29/30 [03:20<00:06, 6.72s/it]\n100%|██████████| 30/30 [03:27<00:00, 6.72s/it]\n100%|██████████| 30/30 [03:27<00:00, 6.92s/it]",
"output": "https://replicate.delivery/xezq/VYnnolFFDr6TNFIXBiFtZVnD6pxokCUFyZNwkxadIyResg7JA/output.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-12-03T01:47:57.219Z",
"started_at": "2024-12-03T01:49:05.248171Z",
"completed_at": "2024-12-03T01:52:57.624942Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/fvd2ksf5mdrme0ckh8st63h9dr/cancel",
"get": "https://api.replicate.com/v1/predictions/fvd2ksf5mdrme0ckh8st63h9dr",
"stream": "https://stream.replicate.com/v1/files/bcwr-uzeze4rhn6q73xu6r4hecvrvzo7ajdcevaalbp6g5jskmxguiiia",
"web": "https://replicate.com/p/fvd2ksf5mdrme0ckh8st63h9dr"
},
"metrics": {
"predict_time": 232.376770539,
"total_time": 300.405942
}
}