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.
aaronaftab /mirage-ghibli:166efd15
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 aaronaftab/mirage-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"aaronaftab/mirage-ghibli:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
{
input: {
image: "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
model: "dev",
prompt: "GHBLI anime style photo",
go_fast: true,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 10,
output_quality: 80,
prompt_strength: 0.77,
extra_lora_scale: 1,
num_inference_steps: 38
}
}
);
// 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 aaronaftab/mirage-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"aaronaftab/mirage-ghibli:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
input={
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": True,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.77,
"extra_lora_scale": 1,
"num_inference_steps": 38
}
)
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 aaronaftab/mirage-ghibli 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": "aaronaftab/mirage-ghibli:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
"input": {
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.77,
"extra_lora_scale": 1,
"num_inference_steps": 38
}
}' \
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-01T02:13:55.245619Z",
"created_at": "2025-04-01T02:13:48.797000Z",
"data_removed": false,
"error": null,
"id": "gn15ezapfnrma0cnxwg8yprrbg",
"input": {
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.77,
"extra_lora_scale": 1,
"num_inference_steps": 38
},
"logs": "Img2img and inpainting not supported with fast fp8 inference; will run in bf16\nWeights already loaded\nLoaded LoRAs in 0.02s\nUsing seed: 4101\nPrompt: GHBLI anime style photo\nInput image size: 768x1024\n[!] Resizing input image from 768x1024 to 768x1024\n[!] img2img mode\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:04, 6.03it/s]\n 7%|▋ | 2/30 [00:00<00:05, 5.31it/s]\n 10%|█ | 3/30 [00:00<00:05, 5.12it/s]\n 13%|█▎ | 4/30 [00:00<00:05, 5.03it/s]\n 17%|█▋ | 5/30 [00:00<00:05, 4.98it/s]\n 20%|██ | 6/30 [00:01<00:04, 4.95it/s]\n 23%|██▎ | 7/30 [00:01<00:04, 4.94it/s]\n 27%|██▋ | 8/30 [00:01<00:04, 4.93it/s]\n 30%|███ | 9/30 [00:01<00:04, 4.92it/s]\n 33%|███▎ | 10/30 [00:02<00:04, 4.91it/s]\n 37%|███▋ | 11/30 [00:02<00:03, 4.91it/s]\n 40%|████ | 12/30 [00:02<00:03, 4.91it/s]\n 43%|████▎ | 13/30 [00:02<00:03, 4.90it/s]\n 47%|████▋ | 14/30 [00:02<00:03, 4.90it/s]\n 50%|█████ | 15/30 [00:03<00:03, 4.90it/s]\n 53%|█████▎ | 16/30 [00:03<00:02, 4.90it/s]\n 57%|█████▋ | 17/30 [00:03<00:02, 4.90it/s]\n 60%|██████ | 18/30 [00:03<00:02, 4.90it/s]\n 63%|██████▎ | 19/30 [00:03<00:02, 4.90it/s]\n 67%|██████▋ | 20/30 [00:04<00:02, 4.90it/s]\n 70%|███████ | 21/30 [00:04<00:01, 4.90it/s]\n 73%|███████▎ | 22/30 [00:04<00:01, 4.90it/s]\n 77%|███████▋ | 23/30 [00:04<00:01, 4.90it/s]\n 80%|████████ | 24/30 [00:04<00:01, 4.90it/s]\n 83%|████████▎ | 25/30 [00:05<00:01, 4.90it/s]\n 87%|████████▋ | 26/30 [00:05<00:00, 4.90it/s]\n 90%|█████████ | 27/30 [00:05<00:00, 4.90it/s]\n 93%|█████████▎| 28/30 [00:05<00:00, 4.90it/s]\n 97%|█████████▋| 29/30 [00:05<00:00, 4.90it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.90it/s]\n100%|██████████| 30/30 [00:06<00:00, 4.93it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 6.440367618,
"total_time": 6.448619
},
"output": [
"https://replicate.delivery/xezq/gFJeG888ltyHEioGbyfeuMBI8euc2Hxfos00Gc6OpjzZ8ejHF/out-0.webp"
],
"started_at": "2025-04-01T02:13:48.805251Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-utgont4f7o2jnefmhxaw4e7ayrpojinwacbg6hz3hqnzyq2vek6a",
"get": "https://api.replicate.com/v1/predictions/gn15ezapfnrma0cnxwg8yprrbg",
"cancel": "https://api.replicate.com/v1/predictions/gn15ezapfnrma0cnxwg8yprrbg/cancel"
},
"version": "166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f"
}
Img2img and inpainting not supported with fast fp8 inference; will run in bf16
Weights already loaded
Loaded LoRAs in 0.02s
Using seed: 4101
Prompt: GHBLI anime style photo
Input image size: 768x1024
[!] Resizing input image from 768x1024 to 768x1024
[!] img2img mode
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:04, 6.03it/s]
7%|▋ | 2/30 [00:00<00:05, 5.31it/s]
10%|█ | 3/30 [00:00<00:05, 5.12it/s]
13%|█▎ | 4/30 [00:00<00:05, 5.03it/s]
17%|█▋ | 5/30 [00:00<00:05, 4.98it/s]
20%|██ | 6/30 [00:01<00:04, 4.95it/s]
23%|██▎ | 7/30 [00:01<00:04, 4.94it/s]
27%|██▋ | 8/30 [00:01<00:04, 4.93it/s]
30%|███ | 9/30 [00:01<00:04, 4.92it/s]
33%|███▎ | 10/30 [00:02<00:04, 4.91it/s]
37%|███▋ | 11/30 [00:02<00:03, 4.91it/s]
40%|████ | 12/30 [00:02<00:03, 4.91it/s]
43%|████▎ | 13/30 [00:02<00:03, 4.90it/s]
47%|████▋ | 14/30 [00:02<00:03, 4.90it/s]
50%|█████ | 15/30 [00:03<00:03, 4.90it/s]
53%|█████▎ | 16/30 [00:03<00:02, 4.90it/s]
57%|█████▋ | 17/30 [00:03<00:02, 4.90it/s]
60%|██████ | 18/30 [00:03<00:02, 4.90it/s]
63%|██████▎ | 19/30 [00:03<00:02, 4.90it/s]
67%|██████▋ | 20/30 [00:04<00:02, 4.90it/s]
70%|███████ | 21/30 [00:04<00:01, 4.90it/s]
73%|███████▎ | 22/30 [00:04<00:01, 4.90it/s]
77%|███████▋ | 23/30 [00:04<00:01, 4.90it/s]
80%|████████ | 24/30 [00:04<00:01, 4.90it/s]
83%|████████▎ | 25/30 [00:05<00:01, 4.90it/s]
87%|████████▋ | 26/30 [00:05<00:00, 4.90it/s]
90%|█████████ | 27/30 [00:05<00:00, 4.90it/s]
93%|█████████▎| 28/30 [00:05<00:00, 4.90it/s]
97%|█████████▋| 29/30 [00:05<00:00, 4.90it/s]
100%|██████████| 30/30 [00:06<00:00, 4.90it/s]
100%|██████████| 30/30 [00:06<00:00, 4.93it/s]
Total safe images: 1 out of 1