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.
danila013 /ghibli-easycontrol:f74e8ded
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run danila013/ghibli-easycontrol using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"danila013/ghibli-easycontrol:f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66",
{
input: {
seed: -1,
prompt: "Ghibli Studio style, Charming hand-drawn anime-style illustration",
input_image: "https://replicate.delivery/pbxt/MqtsNaNKhS8ikJIqM5nc0bI5U52obP9yEVqvFjxYFi9KvvqI/pexels-thegiansepillo-1595943-4154065.jpg",
lora_weight: 1,
guidance_scale: 3.5,
num_inference_steps: 25
}
}
);
// 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 danila013/ghibli-easycontrol using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"danila013/ghibli-easycontrol:f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66",
input={
"seed": -1,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"input_image": "https://replicate.delivery/pbxt/MqtsNaNKhS8ikJIqM5nc0bI5U52obP9yEVqvFjxYFi9KvvqI/pexels-thegiansepillo-1595943-4154065.jpg",
"lora_weight": 1,
"guidance_scale": 3.5,
"num_inference_steps": 25
}
)
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 danila013/ghibli-easycontrol 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": "danila013/ghibli-easycontrol:f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66",
"input": {
"seed": -1,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"input_image": "https://replicate.delivery/pbxt/MqtsNaNKhS8ikJIqM5nc0bI5U52obP9yEVqvFjxYFi9KvvqI/pexels-thegiansepillo-1595943-4154065.jpg",
"lora_weight": 1,
"guidance_scale": 3.5,
"num_inference_steps": 25
}
}' \
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": "2025-04-17T11:11:13.763762Z",
"created_at": "2025-04-17T11:10:59.715000Z",
"data_removed": false,
"error": null,
"id": "srbtjnz4gdrm80cp8drtfxj3mr",
"input": {
"seed": -1,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"input_image": "https://replicate.delivery/pbxt/MqtsNaNKhS8ikJIqM5nc0bI5U52obP9yEVqvFjxYFi9KvvqI/pexels-thegiansepillo-1595943-4154065.jpg",
"lora_weight": 1,
"guidance_scale": 3.5,
"num_inference_steps": 25
},
"logs": "Using seed: 3050913914\nApplying Ghibli LoRA from ./models/Ghibli.safetensors with weight 1.0\nLoading .safetensors checkpoint from ./models/Ghibli.safetensors\nLoaded input image from: /tmp/tmpmtxmpu9spexels-thegiansepillo-1595943-4154065.jpg with original size (2848, 4288)\nCalculated target dimensions: width=680, height=1024\nStarting image generation with target size 680x1024...\n<PIL.Image.Image image mode=RGB size=2848x4288 at 0x7D6E541B3760>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:13, 1.80it/s]\n 8%|▊ | 2/25 [00:00<00:10, 2.19it/s]\n 12%|█▏ | 3/25 [00:01<00:10, 2.06it/s]\n 16%|█▌ | 4/25 [00:01<00:10, 2.01it/s]\n 20%|██ | 5/25 [00:02<00:10, 1.98it/s]\n 24%|██▍ | 6/25 [00:03<00:09, 1.96it/s]\n 28%|██▊ | 7/25 [00:03<00:09, 1.95it/s]\n 32%|███▏ | 8/25 [00:04<00:08, 1.94it/s]\n 36%|███▌ | 9/25 [00:04<00:08, 1.94it/s]\n 40%|████ | 10/25 [00:05<00:07, 1.93it/s]\n 44%|████▍ | 11/25 [00:05<00:07, 1.93it/s]\n 48%|████▊ | 12/25 [00:06<00:06, 1.93it/s]\n 52%|█████▏ | 13/25 [00:06<00:06, 1.93it/s]\n 56%|█████▌ | 14/25 [00:07<00:05, 1.92it/s]\n 60%|██████ | 15/25 [00:07<00:05, 1.93it/s]\n 64%|██████▍ | 16/25 [00:08<00:04, 1.93it/s]\n 68%|██████▊ | 17/25 [00:08<00:04, 1.93it/s]\n 72%|███████▏ | 18/25 [00:09<00:03, 1.93it/s]\n 76%|███████▌ | 19/25 [00:09<00:03, 1.93it/s]\n 80%|████████ | 20/25 [00:10<00:02, 1.93it/s]\n 84%|████████▍ | 21/25 [00:10<00:02, 1.93it/s]\n 88%|████████▊ | 22/25 [00:11<00:01, 1.93it/s]\n 92%|█████████▏| 23/25 [00:11<00:01, 1.93it/s]\n 96%|█████████▌| 24/25 [00:12<00:00, 1.93it/s]\n100%|██████████| 25/25 [00:12<00:00, 1.93it/s]\n100%|██████████| 25/25 [00:12<00:00, 1.94it/s]\nImage generation took 13.47 seconds.\nLoRA unset and cache cleared.\nImage saved to ./outputs/37edb311-b6d1-4284-aebc-4d6bdc9cb354.png",
"metrics": {
"predict_time": 14.040576238,
"total_time": 14.048762
},
"output": "https://replicate.delivery/xezq/6Eek8vuCFZyTRySYkYnv5GsvTJRFTwBwHuj9qxIo2B1on0RKA/37edb311-b6d1-4284-aebc-4d6bdc9cb354.png",
"started_at": "2025-04-17T11:10:59.723186Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-bqjlhgm737v3zlfbngsq74meua52hsqaagyy575ij5vvxoeo7vua",
"get": "https://api.replicate.com/v1/predictions/srbtjnz4gdrm80cp8drtfxj3mr",
"cancel": "https://api.replicate.com/v1/predictions/srbtjnz4gdrm80cp8drtfxj3mr/cancel"
},
"version": "f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66"
}
Using seed: 3050913914
Applying Ghibli LoRA from ./models/Ghibli.safetensors with weight 1.0
Loading .safetensors checkpoint from ./models/Ghibli.safetensors
Loaded input image from: /tmp/tmpmtxmpu9spexels-thegiansepillo-1595943-4154065.jpg with original size (2848, 4288)
Calculated target dimensions: width=680, height=1024
Starting image generation with target size 680x1024...
<PIL.Image.Image image mode=RGB size=2848x4288 at 0x7D6E541B3760>
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:13, 1.80it/s]
8%|▊ | 2/25 [00:00<00:10, 2.19it/s]
12%|█▏ | 3/25 [00:01<00:10, 2.06it/s]
16%|█▌ | 4/25 [00:01<00:10, 2.01it/s]
20%|██ | 5/25 [00:02<00:10, 1.98it/s]
24%|██▍ | 6/25 [00:03<00:09, 1.96it/s]
28%|██▊ | 7/25 [00:03<00:09, 1.95it/s]
32%|███▏ | 8/25 [00:04<00:08, 1.94it/s]
36%|███▌ | 9/25 [00:04<00:08, 1.94it/s]
40%|████ | 10/25 [00:05<00:07, 1.93it/s]
44%|████▍ | 11/25 [00:05<00:07, 1.93it/s]
48%|████▊ | 12/25 [00:06<00:06, 1.93it/s]
52%|█████▏ | 13/25 [00:06<00:06, 1.93it/s]
56%|█████▌ | 14/25 [00:07<00:05, 1.92it/s]
60%|██████ | 15/25 [00:07<00:05, 1.93it/s]
64%|██████▍ | 16/25 [00:08<00:04, 1.93it/s]
68%|██████▊ | 17/25 [00:08<00:04, 1.93it/s]
72%|███████▏ | 18/25 [00:09<00:03, 1.93it/s]
76%|███████▌ | 19/25 [00:09<00:03, 1.93it/s]
80%|████████ | 20/25 [00:10<00:02, 1.93it/s]
84%|████████▍ | 21/25 [00:10<00:02, 1.93it/s]
88%|████████▊ | 22/25 [00:11<00:01, 1.93it/s]
92%|█████████▏| 23/25 [00:11<00:01, 1.93it/s]
96%|█████████▌| 24/25 [00:12<00:00, 1.93it/s]
100%|██████████| 25/25 [00:12<00:00, 1.93it/s]
100%|██████████| 25/25 [00:12<00:00, 1.94it/s]
Image generation took 13.47 seconds.
LoRA unset and cache cleared.
Image saved to ./outputs/37edb311-b6d1-4284-aebc-4d6bdc9cb354.png