defaultGhibli Studio style, Charming hand-drawn anime-style illustration
typetext
{
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqtrkwH9H0bCOMT7RtDAUJ44zIkuCW0sa1Lh03xg8pXH9r0q/pexels-murat-esibatir-360647-17430354.jpg",
"lora_weight": 1,
"num_inference_steps": 25,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"seed": -1
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_QS7**********************************
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 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: {
guidance_scale: 3.5,
input_image: "https://replicate.delivery/pbxt/MqtrkwH9H0bCOMT7RtDAUJ44zIkuCW0sa1Lh03xg8pXH9r0q/pexels-murat-esibatir-360647-17430354.jpg",
lora_weight: 1,
num_inference_steps: 25,
prompt: "Ghibli Studio style, Charming hand-drawn anime-style illustration",
seed: -1
}
}
);
// 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_QS7**********************************
This is your API token. Keep it to yourself.
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={
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqtrkwH9H0bCOMT7RtDAUJ44zIkuCW0sa1Lh03xg8pXH9r0q/pexels-murat-esibatir-360647-17430354.jpg",
"lora_weight": 1,
"num_inference_steps": 25,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"seed": -1
}
)
# 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_QS7**********************************
This is your API token. Keep it to yourself.
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": {
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqtrkwH9H0bCOMT7RtDAUJ44zIkuCW0sa1Lh03xg8pXH9r0q/pexels-murat-esibatir-360647-17430354.jpg",
"lora_weight": 1,
"num_inference_steps": 25,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"seed": -1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "s2qsw1ad0drme0cp8drtfjrtg8",
"model": "danila013/ghibli-easycontrol",
"version": "f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66",
"input": {
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqtrkwH9H0bCOMT7RtDAUJ44zIkuCW0sa1Lh03xg8pXH9r0q/pexels-murat-esibatir-360647-17430354.jpg",
"lora_weight": 1,
"num_inference_steps": 25,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"seed": -1
},
"logs": "Using seed: 1588765005\nApplying Ghibli LoRA from ./models/Ghibli.safetensors with weight 1.0\nLoading .safetensors checkpoint from ./models/Ghibli.safetensors\nLoaded input image from: /tmp/tmpd3u5zjsjpexels-murat-esibatir-360647-17430354.jpg with original size (3000, 2250)\nCalculated target dimensions: width=1024, height=768\nStarting image generation with target size 1024x768...\n<PIL.Image.Image image mode=RGB size=3000x2250 at 0x7D6E541B0790>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:14, 1.63it/s]\n 8%|▊ | 2/25 [00:01<00:11, 1.98it/s]\n 12%|█▏ | 3/25 [00:01<00:11, 1.85it/s]\n 16%|█▌ | 4/25 [00:02<00:11, 1.80it/s]\n 20%|██ | 5/25 [00:02<00:11, 1.77it/s]\n 24%|██▍ | 6/25 [00:03<00:10, 1.76it/s]\n 28%|██▊ | 7/25 [00:03<00:10, 1.75it/s]\n 32%|███▏ | 8/25 [00:04<00:09, 1.74it/s]\n 36%|███▌ | 9/25 [00:05<00:09, 1.73it/s]\n 40%|████ | 10/25 [00:05<00:08, 1.73it/s]\n 44%|████▍ | 11/25 [00:06<00:08, 1.73it/s]\n 48%|████▊ | 12/25 [00:06<00:07, 1.73it/s]\n 52%|█████▏ | 13/25 [00:07<00:06, 1.73it/s]\n 56%|█████▌ | 14/25 [00:08<00:06, 1.73it/s]\n 60%|██████ | 15/25 [00:08<00:05, 1.73it/s]\n 64%|██████▍ | 16/25 [00:09<00:05, 1.73it/s]\n 68%|██████▊ | 17/25 [00:09<00:04, 1.73it/s]\n 72%|███████▏ | 18/25 [00:10<00:04, 1.73it/s]\n 76%|███████▌ | 19/25 [00:10<00:03, 1.72it/s]\n 80%|████████ | 20/25 [00:11<00:02, 1.72it/s]\n 84%|████████▍ | 21/25 [00:12<00:02, 1.73it/s]\n 88%|████████▊ | 22/25 [00:12<00:01, 1.72it/s]\n 92%|█████████▏| 23/25 [00:13<00:01, 1.72it/s]\n 96%|█████████▌| 24/25 [00:13<00:00, 1.72it/s]\n100%|██████████| 25/25 [00:14<00:00, 1.72it/s]\n100%|██████████| 25/25 [00:14<00:00, 1.74it/s]\nImage generation took 14.97 seconds.\nLoRA unset and cache cleared.\nImage saved to ./outputs/c102aa3e-adb8-4692-a54d-a47bfba2dd95.png",
"output": "https://replicate.delivery/xezq/tneOiv7pXeri8U4HVb00icfLHyJHSLOgm4XDARCydOfz6kOSB/c102aa3e-adb8-4692-a54d-a47bfba2dd95.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-04-17T11:10:20.931Z",
"started_at": "2025-04-17T11:10:20.939212Z",
"completed_at": "2025-04-17T11:10:36.452905Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/s2qsw1ad0drme0cp8drtfjrtg8/cancel",
"get": "https://api.replicate.com/v1/predictions/s2qsw1ad0drme0cp8drtfjrtg8",
"stream": "https://stream.replicate.com/v1/files/bcwr-ctczobbgcp4j73tpjanv4g3m6ipo5vijrpqdrkxnnayoj3ufwasa",
"web": "https://replicate.com/p/s2qsw1ad0drme0cp8drtfjrtg8"
},
"metrics": {
"predict_time": 15.513693281,
"total_time": 15.521905
}
}
