defaultGhibli Studio style, Charming hand-drawn anime-style illustration
typetext
{
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqttCzfvz4i89q2lXt5qEXhgq2IaGSLpISfmOEgUUDp37y3M/pexels-rdne-12405351.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_6dU**********************************
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/MqttCzfvz4i89q2lXt5qEXhgq2IaGSLpISfmOEgUUDp37y3M/pexels-rdne-12405351.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_6dU**********************************
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/MqttCzfvz4i89q2lXt5qEXhgq2IaGSLpISfmOEgUUDp37y3M/pexels-rdne-12405351.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_6dU**********************************
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/MqttCzfvz4i89q2lXt5qEXhgq2IaGSLpISfmOEgUUDp37y3M/pexels-rdne-12405351.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": "tfnrjxxqbxrma0cp8ds9bcs2jg",
"model": "danila013/ghibli-easycontrol",
"version": "f74e8dedd3ac3bc9e9d992fec9a12d62639e6f9bfc5bbf00a1edcca29673da66",
"input": {
"guidance_scale": 3.5,
"input_image": "https://replicate.delivery/pbxt/MqttCzfvz4i89q2lXt5qEXhgq2IaGSLpISfmOEgUUDp37y3M/pexels-rdne-12405351.jpg",
"lora_weight": 1,
"num_inference_steps": 25,
"prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration",
"seed": -1
},
"logs": "Using seed: 3089188954\nApplying Ghibli LoRA from ./models/Ghibli.safetensors with weight 1.0\nLoading .safetensors checkpoint from ./models/Ghibli.safetensors\nLoaded input image from: /tmp/tmpf79aj4llpexels-rdne-12405351.jpg with original size (6720, 4480)\nCalculated target dimensions: width=1024, height=680\nStarting image generation with target size 1024x680...\n<PIL.Image.Image image mode=RGB size=6720x4480 at 0x7D6E5441A4D0>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:13, 1.81it/s]\n 8%|▊ | 2/25 [00:00<00:10, 2.20it/s]\n 12%|█▏ | 3/25 [00:01<00:10, 2.07it/s]\n 16%|█▌ | 4/25 [00:01<00:10, 2.02it/s]\n 20%|██ | 5/25 [00:02<00:10, 1.99it/s]\n 24%|██▍ | 6/25 [00:03<00:09, 1.97it/s]\n 28%|██▊ | 7/25 [00:03<00:09, 1.96it/s]\n 32%|███▏ | 8/25 [00:04<00:08, 1.95it/s]\n 36%|███▌ | 9/25 [00:04<00:08, 1.95it/s]\n 40%|████ | 10/25 [00:05<00:07, 1.94it/s]\n 44%|████▍ | 11/25 [00:05<00:07, 1.94it/s]\n 48%|████▊ | 12/25 [00:06<00:06, 1.94it/s]\n 52%|█████▏ | 13/25 [00:06<00:06, 1.94it/s]\n 56%|█████▌ | 14/25 [00:07<00:05, 1.93it/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.95it/s]\nImage generation took 13.55 seconds.\nLoRA unset and cache cleared.\nImage saved to ./outputs/9d0add95-1838-4ff1-b61e-4c7f7f35a92e.png",
"output": "https://replicate.delivery/xezq/2GoewrJrBd0ncKnokJ0efVWe2rNIxDa9PiceXNf9cnuyBU6IF/9d0add95-1838-4ff1-b61e-4c7f7f35a92e.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-04-17T11:11:53.695Z",
"started_at": "2025-04-17T11:11:53.703957Z",
"completed_at": "2025-04-17T11:12:07.957257Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/tfnrjxxqbxrma0cp8ds9bcs2jg/cancel",
"get": "https://api.replicate.com/v1/predictions/tfnrjxxqbxrma0cp8ds9bcs2jg",
"stream": "https://stream.replicate.com/v1/files/bcwr-esobllrkdracmfyayduv5z2zx3rdejvirqoixcjuyujmw7jple7q",
"web": "https://replicate.com/p/tfnrjxxqbxrma0cp8ds9bcs2jg"
},
"metrics": {
"predict_time": 14.253300035,
"total_time": 14.262257
}
}
