Readme
This model doesn't have a readme.
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run colinmcdonnell22/ghiblify using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"colinmcdonnell22/ghiblify:b4014c6ade5c1ac4c0d90ee5ea26ee9cf56ad28ee8a705737a0be6cdfdc3ac2a",
{
input: {
image: "https://replicate.delivery/pbxt/MjG5tBfn8ZkV6vgBMwQ8YH8gSlDGh0IOng2eURSSkzg4lPcu/Screenshot%202025-02-28%20at%201.12.06%E2%80%AFPM.png",
model: "dev",
prompt: "recreate this image in the style of ghibli",
go_fast: false,
lora_scale: 0.95,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "jpg",
guidance_scale: 3.5,
output_quality: 100,
prompt_strength: 0.65,
extra_lora_scale: 1,
num_inference_steps: 32
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 colinmcdonnell22/ghiblify using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"colinmcdonnell22/ghiblify:b4014c6ade5c1ac4c0d90ee5ea26ee9cf56ad28ee8a705737a0be6cdfdc3ac2a",
input={
"image": "https://replicate.delivery/pbxt/MjG5tBfn8ZkV6vgBMwQ8YH8gSlDGh0IOng2eURSSkzg4lPcu/Screenshot%202025-02-28%20at%201.12.06%E2%80%AFPM.png",
"model": "dev",
"prompt": "recreate this image in the style of ghibli",
"go_fast": False,
"lora_scale": 0.95,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.65,
"extra_lora_scale": 1,
"num_inference_steps": 32
}
)
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 colinmcdonnell22/ghiblify 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": "b4014c6ade5c1ac4c0d90ee5ea26ee9cf56ad28ee8a705737a0be6cdfdc3ac2a",
"input": {
"image": "https://replicate.delivery/pbxt/MjG5tBfn8ZkV6vgBMwQ8YH8gSlDGh0IOng2eURSSkzg4lPcu/Screenshot%202025-02-28%20at%201.12.06%E2%80%AFPM.png",
"model": "dev",
"prompt": "recreate this image in the style of ghibli",
"go_fast": false,
"lora_scale": 0.95,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.65,
"extra_lora_scale": 1,
"num_inference_steps": 32
}
}' \
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
{
"completed_at": "2025-03-26T22:30:16.650679Z",
"created_at": "2025-03-26T22:30:07.075000Z",
"data_removed": false,
"error": null,
"id": "4v5tgn5xwdrmc0cntj9rgnxadc",
"input": {
"image": "https://replicate.delivery/pbxt/MjG5tBfn8ZkV6vgBMwQ8YH8gSlDGh0IOng2eURSSkzg4lPcu/Screenshot%202025-02-28%20at%201.12.06%E2%80%AFPM.png",
"model": "dev",
"prompt": "recreate this image in the style of ghibli",
"go_fast": false,
"lora_scale": 0.95,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "jpg",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.65,
"extra_lora_scale": 1,
"num_inference_steps": 32
},
"logs": "free=26433366798336\nDownloading weights\n2025-03-26T22:30:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp_2gs7mjq/weights url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar\n2025-03-26T22:30:09Z | INFO | [ Complete ] dest=/tmp/tmp_2gs7mjq/weights size=\"172 MB\" total_elapsed=2.195s url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar\nDownloaded weights in 2.22s\nLoaded LoRAs in 2.80s\nUsing seed: 62803\nPrompt: recreate this image in the style of ghibli\nInput image size: 1900x1063\n[!] Resizing input image from 1900x1063 to 1440x816\n[!] img2img mode\n 0%| | 0/21 [00:00<?, ?it/s]\n 5%|▍ | 1/21 [00:00<00:04, 4.01it/s]\n 10%|▉ | 2/21 [00:00<00:05, 3.66it/s]\n 14%|█▍ | 3/21 [00:00<00:05, 3.55it/s]\n 19%|█▉ | 4/21 [00:01<00:04, 3.50it/s]\n 24%|██▍ | 5/21 [00:01<00:04, 3.48it/s]\n 29%|██▊ | 6/21 [00:01<00:04, 3.46it/s]\n 33%|███▎ | 7/21 [00:01<00:04, 3.45it/s]\n 38%|███▊ | 8/21 [00:02<00:03, 3.45it/s]\n 43%|████▎ | 9/21 [00:02<00:03, 3.44it/s]\n 48%|████▊ | 10/21 [00:02<00:03, 3.44it/s]\n 52%|█████▏ | 11/21 [00:03<00:02, 3.44it/s]\n 57%|█████▋ | 12/21 [00:03<00:02, 3.44it/s]\n 62%|██████▏ | 13/21 [00:03<00:02, 3.44it/s]\n 67%|██████▋ | 14/21 [00:04<00:02, 3.44it/s]\n 71%|███████▏ | 15/21 [00:04<00:01, 3.44it/s]\n 76%|███████▌ | 16/21 [00:04<00:01, 3.42it/s]\n 81%|████████ | 17/21 [00:04<00:01, 3.42it/s]\n 86%|████████▌ | 18/21 [00:05<00:00, 3.40it/s]\n 90%|█████████ | 19/21 [00:05<00:00, 3.44it/s]\n 95%|█████████▌| 20/21 [00:05<00:00, 3.44it/s]\n100%|██████████| 21/21 [00:06<00:00, 3.44it/s]\n100%|██████████| 21/21 [00:06<00:00, 3.46it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 9.551627303,
"total_time": 9.575679
},
"output": [
"https://replicate.delivery/xezq/ifg9pqEOMfrKlkHmhf6cWzwkn8ObCVwdZZFk1ipTDsRxPG5oA/out-0.jpg"
],
"started_at": "2025-03-26T22:30:07.099052Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-izp3jjzgwziophfxo6xrr4hsdrsbmprbo7mkl7azizwkwvzsrj7q",
"get": "https://api.replicate.com/v1/predictions/4v5tgn5xwdrmc0cntj9rgnxadc",
"cancel": "https://api.replicate.com/v1/predictions/4v5tgn5xwdrmc0cntj9rgnxadc/cancel"
},
"version": "b4014c6ade5c1ac4c0d90ee5ea26ee9cf56ad28ee8a705737a0be6cdfdc3ac2a"
}
free=26433366798336
Downloading weights
2025-03-26T22:30:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp_2gs7mjq/weights url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar
2025-03-26T22:30:09Z | INFO | [ Complete ] dest=/tmp/tmp_2gs7mjq/weights size="172 MB" total_elapsed=2.195s url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar
Downloaded weights in 2.22s
Loaded LoRAs in 2.80s
Using seed: 62803
Prompt: recreate this image in the style of ghibli
Input image size: 1900x1063
[!] Resizing input image from 1900x1063 to 1440x816
[!] img2img mode
0%| | 0/21 [00:00<?, ?it/s]
5%|▍ | 1/21 [00:00<00:04, 4.01it/s]
10%|▉ | 2/21 [00:00<00:05, 3.66it/s]
14%|█▍ | 3/21 [00:00<00:05, 3.55it/s]
19%|█▉ | 4/21 [00:01<00:04, 3.50it/s]
24%|██▍ | 5/21 [00:01<00:04, 3.48it/s]
29%|██▊ | 6/21 [00:01<00:04, 3.46it/s]
33%|███▎ | 7/21 [00:01<00:04, 3.45it/s]
38%|███▊ | 8/21 [00:02<00:03, 3.45it/s]
43%|████▎ | 9/21 [00:02<00:03, 3.44it/s]
48%|████▊ | 10/21 [00:02<00:03, 3.44it/s]
52%|█████▏ | 11/21 [00:03<00:02, 3.44it/s]
57%|█████▋ | 12/21 [00:03<00:02, 3.44it/s]
62%|██████▏ | 13/21 [00:03<00:02, 3.44it/s]
67%|██████▋ | 14/21 [00:04<00:02, 3.44it/s]
71%|███████▏ | 15/21 [00:04<00:01, 3.44it/s]
76%|███████▌ | 16/21 [00:04<00:01, 3.42it/s]
81%|████████ | 17/21 [00:04<00:01, 3.42it/s]
86%|████████▌ | 18/21 [00:05<00:00, 3.40it/s]
90%|█████████ | 19/21 [00:05<00:00, 3.44it/s]
95%|█████████▌| 20/21 [00:05<00:00, 3.44it/s]
100%|██████████| 21/21 [00:06<00:00, 3.44it/s]
100%|██████████| 21/21 [00:06<00:00, 3.46it/s]
Total safe images: 1 out of 1
This model costs approximately $0.011 to run on Replicate, or 90 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia H100 GPU hardware. Predictions typically complete within 8 seconds.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
free=26433366798336
Downloading weights
2025-03-26T22:30:07Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp_2gs7mjq/weights url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar
2025-03-26T22:30:09Z | INFO | [ Complete ] dest=/tmp/tmp_2gs7mjq/weights size="172 MB" total_elapsed=2.195s url=https://replicate.delivery/xezq/6isGxewRmSUwMqNfnYHOkcxj3k1IPUMRo8yNklWk5LbCEjcUA/trained_model.tar
Downloaded weights in 2.22s
Loaded LoRAs in 2.80s
Using seed: 62803
Prompt: recreate this image in the style of ghibli
Input image size: 1900x1063
[!] Resizing input image from 1900x1063 to 1440x816
[!] img2img mode
0%| | 0/21 [00:00<?, ?it/s]
5%|▍ | 1/21 [00:00<00:04, 4.01it/s]
10%|▉ | 2/21 [00:00<00:05, 3.66it/s]
14%|█▍ | 3/21 [00:00<00:05, 3.55it/s]
19%|█▉ | 4/21 [00:01<00:04, 3.50it/s]
24%|██▍ | 5/21 [00:01<00:04, 3.48it/s]
29%|██▊ | 6/21 [00:01<00:04, 3.46it/s]
33%|███▎ | 7/21 [00:01<00:04, 3.45it/s]
38%|███▊ | 8/21 [00:02<00:03, 3.45it/s]
43%|████▎ | 9/21 [00:02<00:03, 3.44it/s]
48%|████▊ | 10/21 [00:02<00:03, 3.44it/s]
52%|█████▏ | 11/21 [00:03<00:02, 3.44it/s]
57%|█████▋ | 12/21 [00:03<00:02, 3.44it/s]
62%|██████▏ | 13/21 [00:03<00:02, 3.44it/s]
67%|██████▋ | 14/21 [00:04<00:02, 3.44it/s]
71%|███████▏ | 15/21 [00:04<00:01, 3.44it/s]
76%|███████▌ | 16/21 [00:04<00:01, 3.42it/s]
81%|████████ | 17/21 [00:04<00:01, 3.42it/s]
86%|████████▌ | 18/21 [00:05<00:00, 3.40it/s]
90%|█████████ | 19/21 [00:05<00:00, 3.44it/s]
95%|█████████▌| 20/21 [00:05<00:00, 3.44it/s]
100%|██████████| 21/21 [00:06<00:00, 3.44it/s]
100%|██████████| 21/21 [00:06<00:00, 3.46it/s]
Total safe images: 1 out of 1